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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423615
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x12c8
call fcn.0040b920
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1294], edx
mov esi, ecx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
push 0xb0
mov dword [ebp - 0x12a0], eax
lea eax, [ebp - 0x1118]
push 0
push eax
mov dword [ebp - 0x1298], edi
mov dword [ebp - 0x129c], 0
call fcn.0040c560
add esp, 8
lea ecx, [ebp - 0x1118]
call fcn.004072e0
mov edx, 0x42ba38
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1108]
call fcn.00408320
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x40329b
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.00409900
add esp, 4
mov edx, str.__x__
mov ecx, eax
call fcn.00408320
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
jbe 0x4032bf
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00409900
add esp, 4
mov edx, str.___o_
mov ecx, eax
call fcn.00408320
mov ecx, eax
mov eax, dword [ebp - 0x1294]
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x4032eb
mov eax, dword [eax]
push edx
mov edx, eax
call fcn.00409900
add esp, 4
mov edx, 0x42ba40
mov ecx, eax
call fcn.00408320
mov byte [ebp - 4], 1
xor eax, eax
mov edx, dword [ebp - 0x10c4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1064], xmm0
mov word [ebp - 0x1064], ax
mov dword [ebp - 0x12a8], eax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x129c], 8
movq qword [ebp - 0x12b0], xmm0
cmp al, 2
je 0x40337e
mov eax, dword [ebp - 0x10e0]
mov ecx, dword [eax]
test ecx, ecx
je 0x40337e
mov eax, dword [ebp - 0x10f0]
cmp ecx, dword [ebp - 0x10c8]
cmovb ecx, dword [ebp - 0x10c8]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
mov eax, ecx
mov esi, ecx
jmp 0x4033be
xor eax, eax
xor esi, esi
test dl, 4
jne 0x4033b2
mov eax, dword [ebp - 0x10e4]
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x4033b2
mov eax, dword [ebp - 0x10f4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10d4]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
mov eax, ecx
mov esi, ecx
jmp 0x4033be
mov ecx, dword [ebp - 0x12ac]
mov edx, dword [ebp - 0x12b0]
test edx, edx
je 0x403406
cmp eax, 7
ja 0x4033ec
add esi, esi
mov dword [ebp - 0x1054], ecx
push esi
push edx
lea eax, [ebp - 0x1064]
push eax
call fcn.0040bfd0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x1064], ax
jmp 0x403406
push edx
mov byte [ebp - 0x1294], 0
push dword [ebp - 0x1294]
push ecx
lea ecx, [ebp - 0x1064]
call fcn.00409030
mov dword [ebp - 4], 0
mov dword [ebp - 0x129c], 4
lea eax, [ebp - 0x1064]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1048]
call fcn.004076d0
mov byte [ebp - 4], 3
mov esi, edi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x12a4], eax
mov dword [ebp - 0x1294], edi
jbe 0x403450
mov esi, dword [edi]
mov dword [ebp - 0x1294], esi
test eax, eax
je 0x403536
push pe_nt_image_headers32
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.0040c560
add esp, 0xc
mov ecx, 0x42ba64
mov edx, pe_nt_image_headers32
movzx eax, word [ecx]
cmp ax, dx
jae 0x4034d1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x1218], 1
cmp ecx, 0x42ba68
jne 0x403478
mov eax, dword [edi + 0x10]
mov ecx, 0xffffffff
dec eax
cmp eax, 0xffffffff
cmovb ecx, eax
lea edx, [esi + ecx*2]
mov ecx, pe_nt_image_headers32
nop dword [eax]
movzx eax, word [edx]
cmp ax, cx
jae 0x4034c2
cmp byte [ebp + eax - 0x1218], 0
jne 0x4034cb
cmp edx, esi
je 0x403536
sub edx, 2
jmp 0x4034b0
sub edx, esi
sar edx, 1
jmp 0x403539
mov eax, dword [ebp - 0x12a4]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
lea edx, [esi + ecx*2]
movzx edi, word [edx]
mov eax, 0x5c
mov ecx, 0x42ba64
lea esi, [eax - 0x5a]
cmp ax, di
je 0x403526
cmp esi, 1
je 0x40350e
movzx eax, word [ecx + 2]
add ecx, 2
dec esi
cmp ax, di
jne 0x4034f8
test ecx, ecx
jne 0x403526
cmp edx, dword [ebp - 0x1294]
je 0x40351b
sub edx, 2
jmp 0x4034e3
mov edi, dword [ebp - 0x1298]
or edx, 0xffffffff
jmp 0x403539
sub edx, dword [ebp - 0x1294]
mov edi, dword [ebp - 0x1298]
sar edx, 1
jmp 0x403539
or edx, 0xffffffff
xorps xmm0, xmm0
cmp edx, 0xffffffff
je 0x403585
cmp dword [edi + 0x10], edx
movups xmmword [ebp - 0x12d4], xmm0
cmovb edx, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x12c4], 0
mov dword [ebp - 0x12c0], 0
jbe 0x40356b
mov edi, dword [edi]
push edx
push edi
lea ecx, [ebp - 0x12d4]
call fcn.00408ce0
lea eax, [ebp - 0x12d4]
mov ecx, 0x15
jmp 0x4035bd
push 0
push 0x42ba6c
lea ecx, [ebp - 0x12bc]
mov dword [ebp - 0x12ac], 0
movups xmmword [ebp - 0x12bc], xmm0
mov dword [ebp - 0x12a8], 0
call fcn.00408ce0
lea eax, [ebp - 0x12bc]
mov ecx, 6
movups xmm0, xmmword [eax]
xor edx, edx
movups xmmword [ebp - 0x1030], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1020], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 5
test cl, 2
je 0x403642
mov eax, dword [ebp - 0x12a8]
and ecx, 0xfffffffd
mov dword [ebp - 0x1298], ecx
cmp eax, 7
jbe 0x403642
mov edx, dword [ebp - 0x12bc]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403632
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
mov ecx, dword [ebp - 0x1298]
add esp, 8
mov byte [ebp - 4], 6
test cl, 1
je 0x40368b
mov ecx, dword [ebp - 0x12c0]
cmp ecx, 7
jbe 0x40368b
mov edx, dword [ebp - 0x12d4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403681
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x1244]
push 0
push eax
lea eax, [ebp - 0x1224]
mov dword [ebp - 0x121c], 0
push eax
lea eax, [ebp - 0x121c]
mov dword [ebp - 0x1224], 0
push eax
mov dword [ebp - 0x1220], 0
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x1244], 0xc
mov dword [ebp - 0x123c], 1
mov dword [ebp - 0x1240], 0
call edi
test eax, eax
je 0x403ab3
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x121c]
call esi
test eax, eax
jne 0x403729
push dword [ebp - 0x121c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1224]
call esi
jmp 0x403ab3
push 0
lea eax, [ebp - 0x1244]
push eax
lea eax, [ebp - 0x1228]
push eax
lea eax, [ebp - 0x1220]
push eax
call edi
test eax, eax
je 0x40370e
push 0
push 1
push dword [ebp - 0x1220]
call esi
test eax, eax
jne 0x403781
push dword [ebp - 0x121c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1224]
call esi
push dword [ebp - 0x1220]
call esi
push dword [ebp - 0x1228]
call esi
jmp 0x403ab3
mov eax, dword [ebp - 0x1224]
lea edx, [ebp - 0x1238]
xorps xmm0, xmm0
mov dword [ebp - 0x1254], eax
mov eax, dword [ebp - 0x1228]
lea ecx, [ebp - 0x1048]
push edx
movlpd qword [ebp - 0x1264], xmm0
lea edx, [ebp - 0x1290]
or dword [ebp - 0x1264], 0x100
cmp dword [ebp - 0x101c], 7
push edx
mov dword [ebp - 0x1250], eax
lea eax, [ebp - 0x1030]
cmova eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x1034], 7
push eax
cmova ecx, dword [ebp - 0x1048]
push 0
push 0x8000000
push 1
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x128c], xmm0
movlpd qword [ebp - 0x1284], xmm0
movlpd qword [ebp - 0x127c], xmm0
movlpd qword [ebp - 0x1274], xmm0
movlpd qword [ebp - 0x126c], xmm0
movlpd qword [ebp - 0x125c], xmm0
mov dword [ebp - 0x1290], 0x44
movups xmmword [ebp - 0x1238], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x1224]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
push dword [ebp - 0x1228]
call edi
test esi, esi
jne 0x40386d
push dword [ebp - 0x121c]
call edi
push dword [ebp - 0x1220]
call edi
jmp 0x403ab3
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x104c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x121c]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403957
nop
mov eax, dword [ebp - 0x104c]
test eax, eax
je 0x403957
cmp eax, 0x1000
jae 0x403cd8
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp + eax - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x40392c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ad42
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1018]
push edi
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
mov ecx, dword [ebp - 0x12a0]
push esi
call fcn.00407d20
push esi
call fcn.0040ab02
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x104c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x121c]
call edi
test eax, eax
jne 0x4038a0
push 0
lea eax, [ebp - 0x104c]
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1220]
call edi
test eax, eax
je 0x403a35
nop dword [eax]
mov eax, dword [ebp - 0x104c]
test eax, eax
je 0x403a35
cmp eax, 0x1000
jae 0x403cd8
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp + eax - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x403a0c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ad42
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1018]
push edi
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
mov ecx, dword [ebp - 0x12a0]
push esi
call fcn.00407d20
push esi
call fcn.0040ab02
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
push 0
lea eax, [ebp - 0x104c]
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1220]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403980
push 0xffffffffffffffff
push dword [ebp - 0x1238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x1068], 0
push eax
push dword [ebp - 0x1238]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1238]
test eax, eax
jne 0x403a8c
call esi
push dword [ebp - 0x1234]
call esi
push dword [ebp - 0x121c]
call esi
push dword [ebp - 0x1220]
call esi
jmp 0x403ab3
call esi
push dword [ebp - 0x1234]
call esi
push dword [ebp - 0x121c]
call esi
push dword [ebp - 0x1220]
call esi
cmp dword [ebp - 0x1068], 0
je 0x403bb7
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x403af3
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ae9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp ecx, 7
jbe 0x403b4c
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [ebp - 0x1050]
xor eax, eax
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
cmp ecx, 7
jbe 0x403ba5
mov edx, dword [ebp - 0x1064]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
lea ecx, [ebp - 0x1118]
call fcn.00403cf0
xor al, al
jmp 0x403cba
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x403bf7
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403bed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp ecx, 7
jbe 0x403c54
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [ebp - 0x1050]
xor eax, eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
cmp ecx, 7
jbe 0x403cad
mov edx, dword [ebp - 0x1064]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ca3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cdd
push ecx
push edx
call fcn.0040ad34
add esp, 8
lea ecx, [ebp - 0x1118]
call fcn.00403cf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040aaf4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040ac29
call fcn.00411475
int3