Function at 0x40ae66
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x3c
call fcn.0043e388
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
push 0x46a2f3
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004010c1
add esp, 8
cmp eax, 0
jne 0x40b018
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
push 0
mov ebx, 0x104
call fcn.00440210
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aee2
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40af12
mov eax, 0x46a2f3
push eax
push 2
mov ebx, 0x138
call fcn.0043ef20
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0x46a2fc
push dword [ebp - 0x10]
call fcn.004010c1
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40af56
push ebx
call fcn.0043e38e
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40afa8
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
push 0x46a2fc
mov ebx, dword [ebp - 0x10]
push dword [ebx]
mov ecx, 2
call fcn.004019df
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40afa2
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
push 0
mov ebx, pe_nt_image_headers32
call fcn.00440f40
add esp, 4
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
mov ecx, 2
call fcn.004019df
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40aff7
push ebx
call fcn.0043e38e
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b00d
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
jmp 0x40b058
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40b03f
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b052
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x40b07f
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b092
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov eax, str.runas
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b0b9
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xa
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0x40
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x46fa65]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b115
push 0x274
push 0x402da14
push 6
call fcn.0043e37c
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b146
push 0x2a8
push 0x402da14
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 1
jne 0x40b18f
mov ebx, dword [ebp - 4]
add ebx, 0x38
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push 0xffffffff
mov ebx, dword [ebp - 0xc]
push dword [ebx]
xor eax, eax
call dword [0x46fa69]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b18f
push 0x316
push 0x402da14
push 6
call fcn.0043e37c
add esp, 0xc
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x40b1a0
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b1b8
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b1cc
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b1e0
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b1f4
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b208
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
call fcn.0043e38e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14