Function at 0x10002170
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
mov eax, 0x6088
call fcn.1002f510
push esi
push edi
xor esi, esi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], si
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x6098]
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.100019b0
xor edx, edx
add esp, 8
mov dword [esp + 0x28], edx
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], edx
push esi
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
setne al
test al, al
jne 0x10002207
pop edi
mov eax, 0xfffffed3
pop esi
add esp, 0x6088
ret
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x4c]
push ecx
push edx
push esi
push esi
push esi
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], eax
push 1
push esi
lea eax, [esp + 0xac]
push esi
push eax
push esi
mov word [esp + 0xa4], si
mov dword [esp + 0xa0], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
test al, al
jne 0x10002283
pop edi
mov eax, 0xfffffed2
pop esi
add esp, 0x6088
ret
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push ecx
call edi
mov edx, dword [esp + 0x30]
push edx
call edi
mov eax, dword [esp + 0x28]
push eax
call edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x2099]
mov byte [esp + 0x2098], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4000
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
stosb byte es:[edi], al
call fcn.1011fa4c
add esp, 4
mov ebp, eax
mov dword [esp + 0x14], ebp
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x24]
mov edi, 0x4000
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x20a4]
push 0x4000
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10002440
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000241d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20a0]
push 0x4000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100022ee
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, edi
jbe 0x100023dc
mov eax, dword [esp + 0x18]
add edi, 0x4000
sub eax, 0
mov dword [esp + 0x2c], edi
je 0x100023a9
dec eax
jne 0x100023dc
push edi
mov dword [esp + 0x1c], 0
call fcn.1011fa4c
mov ecx, esi
mov ebp, eax
mov edx, ecx
mov esi, ebx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1011fa75
add esp, 8
xor ebx, ebx
jmp 0x100023dc
push edi
mov dword [esp + 0x1c], 1
call fcn.1011fa4c
mov ecx, esi
mov ebx, eax
mov eax, ecx
mov esi, ebp
mov edi, ebx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x1c], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1011fa75
add esp, 8
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x2098]
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xa
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
jmp 0x100022ee
mov eax, dword [esp + 0x60a4]
dec eax
test eax, eax
mov dword [esp + 0x60a4], eax
jle 0x10002440
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100022ee
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x609c]
mov byte [eax + esi], 0
mov edx, dword [esp + 0x20]
push edx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x6088
ret