Function at 0x401000
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55438b
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5ad218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], edx
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x438], 0xc
mov dword [ebp - 0x430], 1
mov dword [ebp - 0x434], 0
call edi
test eax, eax
jne 0x401095
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052bb2e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x414]
call esi
test eax, eax
je 0x401077
push 0
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x401077
push 0
push 1
push dword [ebp - 0x428]
call esi
test eax, eax
je 0x401077
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00401b50
lea esi, [eax + 0x10]
mov dword [ebp - 0x420], esi
push 0x44
xorps xmm0, xmm0
lea eax, [ebp - 0x490]
mov dword [ebp - 4], 0
push 0
push eax
movq qword [ebp - 0x448], xmm0
movq qword [ebp - 0x440], xmm0
call fcn.0052d860
mov eax, dword [ebp - 0x41c]
or dword [ebp - 0x464], 0x100
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x424]
add esp, 0x10
mov dword [ebp - 0x490], 0x44
mov dword [ebp - 0x458], eax
cmp dword [esi - 4], 1
jle 0x401165
push dword [esi - 0xc]
lea ecx, [ebp - 0x420]
call fcn.004017a0
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x490]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.0052bbbc
add esp, 8
test eax, eax
js 0x4012cf
cmp eax, dword [esi - 8]
jg 0x4012cf
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x4012a7
push dword [ebp - 0x448]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x444]
call ebx
push dword [ebp - 0x424]
call ebx
push dword [ebp - 0x428]
call ebx
push dword [ebp - 0x41c]
call ebx
push 4
call fcn.00406287
add esp, 4
test eax, eax
je 0x401202
mov ecx, eax
call fcn.00401a30
mov edi, eax
jmp 0x401204
xor edi, edi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0052d860
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401292
nop
cmp dword [ebp - 0x418], 0
je 0x401292
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004012e0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0052d860
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401240
mov eax, dword [ebp - 0x42c]
push dword [ebp - 0x414]
mov dword [eax], edi
call ebx
mov edi, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4012c8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x401079
push 0x80070057
call fcn.00401b00
int3