Function at 0x40b218
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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
cmp dword [ebp + 0xc], 0
je 0x40b267
push 0x46a2f3
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004010c1
add esp, 8
cmp eax, 0
je 0x40b267
xor eax, eax
jmp 0x40b26c
mov eax, 1
test eax, eax
je 0x40b3de
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 8], ebx
push 0
mov ebx, 0x104
call fcn.00440210
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b2a8
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 8], ebx
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40b2d8
mov eax, 0x46a2f3
push eax
push 2
mov ebx, 0x138
call fcn.0043ef20
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x46a2fc
push dword [ebp - 0xc]
call fcn.004010c1
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b31c
push ebx
call fcn.0043e38e
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x40b36e
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
push 0x46a2fc
mov ebx, dword [ebp - 0xc]
push dword [ebx]
mov ecx, 2
call fcn.004019df
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b368
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
push 0
mov ebx, pe_nt_image_headers32
call fcn.00440f40
add esp, 4
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
mov ecx, 2
call fcn.004019df
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b3bd
push ebx
call fcn.0043e38e
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b3d3
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
jmp 0x40b41e
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40b405
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 - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b418
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x40b445
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 - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b458
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov eax, str.runas
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b47f
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0xa
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0x100
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b4db
push 0x28e
push 0x4010197
push 6
call fcn.0043e37c
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteEx]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b50c
push 0x2cd
push 0x4010197
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setne al
jmp 0x40b520
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b538
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b54c
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b560
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b574
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b588
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
call fcn.0043e38e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10