Function at 0x40aa22
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0xc
call fcn.00438977
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x48
call fcn.00438977
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
push 0x10
call fcn.00438977
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 1
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40ab27
push 6
call fcn.0043896b
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x10]
add ebx, 0x2c
mov dword [ebp - 0x28], ebx
push 0x80000301
push 0
push pe_nt_image_headers32
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.00439d20
add esp, 0x1c
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 0
mov ebx, dword [ebp - 0x10]
add ebx, 0x40
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x44
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
push 0
mov ebx, 0x8d4
call fcn.0043acb0
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jg 0x40adc0
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.command.com__c
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.00438977
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x28]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40acf3
push 6
call fcn.0043896b
add esp, 4
push eax
mov ebx, dword [ebp - 0x30]
push ebx
mov edi, dword [ebp - 0x34]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040a9eb
call fcn.0040a9eb
call fcn.0040a9eb
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00438983
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40adbb
push ebx
call fcn.00438983
add esp, 4
jmp 0x40afbb
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.cmd.exe__c
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.00438977
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x28]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40aef3
push 6
call fcn.0043896b
add esp, 4
push eax
mov ebx, dword [ebp - 0x30]
push ebx
mov edi, dword [ebp - 0x34]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040a9eb
call fcn.0040a9eb
call fcn.0040a9eb
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00438983
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40afbb
push ebx
call fcn.00438983
add esp, 4
mov dword [ebp - 0x28], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40afdd
push 6
call fcn.0043896b
add esp, 4
cmp dword [ebp - 0x18], 0xffffffff
je 0x40b1eb
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40b021
push 6
call fcn.0043896b
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x40b14e
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x1bc
call fcn.00439cf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b05e
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b07b
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40b09b
push 6
call fcn.0043896b
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40b0c0
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x19c
call fcn.00439b50
add esp, 0x28
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
cmp ecx, reloc.WSOCK32.dll_connect
je 0x40b0f4
push 5
call fcn.0043896b
add esp, 4
push dword [ebp - 0x30]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, reloc.WSOCK32.dll_connect
je 0x40b121
cmp ecx, reloc.WSOCK32.dll_getpeername
jne 0x40b131
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b131
push ebx
call fcn.00438983
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b145
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x40b1b0
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40b17c
push 6
call fcn.0043896b
add esp, 4
cmp dword [ebp - 0x24], 0x103
je 0x40b1b0
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40b1ab
push 6
call fcn.0043896b
add esp, 4
jmp 0x40b1eb
push 0
mov ebx, 0x350
call fcn.0043ad30
add esp, 4
mov dword [ebp - 0x28], esp
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40b1e6
push 6
call fcn.0043896b
add esp, 4
jmp 0x40afdd
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40b215
push 6
call fcn.0043896b
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40b242
push 6
call fcn.0043896b
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40b25e
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00438977
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b263
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b287
push ebx
call fcn.00438983
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b29b
push ebx
call fcn.00438983
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b2af
push ebx
call fcn.00438983
add esp, 4
pop ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b2d4
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b2e4
push ebx
call fcn.00438983
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4