Function at 0x4040c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cc02b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf4]
mov edi, ecx
lea eax, [esp + 0xc0]
xor ebx, ebx
push eax
mov ecx, ebp
mov dword [esp + 0x2c], edi
mov byte [edi], bl
call fcn.00416370
add esp, 4
mov dword [esp + 0xec], ebx
push 4
push str..exe
lea esi, [esp + 0x90]
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
call fcn.00405810
mov eax, esi
lea esi, [esp + 0xc0]
call fcn.00419f30
test eax, eax
mov esi, 8
setne byte [esp + 0x1b]
cmp dword [esp + 0xa0], esi
jb 0x404185
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004a85e6
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x4044a3
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
cmp dword [esp + 0xd8], esi
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x1b], bl
jae 0x4041cc
lea eax, [esp + 0xc4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x1c]
push edx
push 1
push ebx
push eax
push closesocket
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
je 0x4041f7
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
jmp 0x404399
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
mov byte [esp + 0xf4], 3
call fcn.004192b0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40423e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x9c], ebx
mov dword [esp + 0x20], ebx
jne 0x4042a9
cmp dword [esp + 0xd8], esi
mov eax, dword [esp + 0xc4]
jae 0x404262
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0xa8]
push str._s_shellOpencommand
push ecx
call fcn.0041a480
add esp, 0xc
cmp dword [esp + 0xbc], esi
mov esi, dword [esp + 0xa8]
jae 0x40428f
lea esi, [esp + 0xa8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4042a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
jmp 0x404305
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x4042c0
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0xa8]
push str._s_shellOpencommand
push eax
call fcn.0041a480
add esp, 0xc
cmp dword [esp + 0xbc], esi
mov esi, dword [esp + 0xa8]
jae 0x4042ed
lea esi, [esp + 0xa8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404300
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push esi
push closesocket
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
je 0x404322
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
jmp 0x404368
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404335
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x28]
mov byte [edx], 1
cmp dword [ebp + 0x18], 8
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], ebx
jb 0x404350
mov eax, dword [ebp + 4]
jmp 0x404353
lea eax, [ebp + 4]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x24], eax
mov byte [esp + 0xec], 2
cmp dword [esp + 0xa0], 8
jb 0x40438a
mov eax, dword [esp + 0x8c]
push eax
call fcn.004a85e6
add esp, 4
cmp byte [esp + 0x1b], bl
mov esi, 8
jne 0x40442d
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xec], 4
mov byte [ecx], bl
cmp dword [ebp + 0x18], esi
jb 0x4043cb
mov eax, dword [ebp + 4]
jmp 0x4043ce
lea eax, [ebp + 4]
push eax
lea edx, [esp + 0x8c]
push str._select___s
push edx
call fcn.0041a480
mov eax, dword [esp + 0x98]
add esp, 0xc
cmp dword [esp + 0xa0], esi
jae 0x4043fb
lea eax, [esp + 0x8c]
push 1
push ebx
push eax
push str.Explorer.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x24], eax
jb 0x40442d
mov eax, dword [esp + 0x8c]
push eax
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0x24], 0x20
seta byte [esp + 0x1b]
cmp dword [esp + 0xbc], esi
jb 0x404450
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004a85e6
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
je 0x40447d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xd8], esi
mov dword [esp + 0x20], ebx
jb 0x40449a
mov edx, dword [esp + 0xc4]
push edx
call fcn.004a85e6
add esp, 4
mov al, byte [esp + 0x1b]
jmp 0x404531
xor eax, eax
push 0x40
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x44]
push ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.004b1550
add esp, 0xc
cmp dword [ebp + 0x18], esi
mov dword [esp + 0x3c], 0x44
jb 0x4044d7
mov eax, dword [ebp + 4]
jmp 0x4044da
lea eax, [ebp + 4]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404513
cmp dword [esp + 0xd8], esi
jb 0x40450f
mov eax, dword [esp + 0xc4]
push eax
call fcn.004a85e6
add esp, 4
xor al, al
jmp 0x404531
cmp dword [esp + 0xd8], esi
mov byte [edi], 1
jb 0x40452f
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.004a85e6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004a85d7
add esp, 0xdc
ret 4