Function at 0x140009520
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 qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x2998
call fcn.14014a550
sub rsp, rax
mov rax, qword [0x1401deb80]
xor rax, rsp
mov qword [rsp + 0x2980], rax
cmp qword [rsp + 0x29b0], 0
je 0x140009576
cmp qword [rsp + 0x29b8], 0
je 0x140009576
cmp qword [rsp + 0x29c0], 0
jne 0x14000957d
xor eax, eax
jmp 0x1400099cb
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_26
rep stosb byte [rdi], al
mov dword [rsp + 0xd0], Ordinal_26
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe0], 1
xor r9d, r9d
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400099c3
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xf0], WSAGetLastError
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x148], rax
movzx eax, byte [rsp + 0x29d0]
test eax, eax
je 0x14000965d
mov dword [rsp + 0x68], 1
jmp 0x140009665
mov dword [rsp + 0x68], 0
movzx eax, word [rsp + 0x68]
mov word [rsp + 0x130], ax
mov dword [rsp + 0x12c], 0x101
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_26
rep stosb byte [rdi], al
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x802
rep stosb byte [rdi], al
mov r8, 0xffffffffffffffff
mov dx, 0x5c
mov rcx, qword [rsp + 0x29c0]
call fcn.1400099f0
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x14000974a
mov rax, qword [rsp + 0x29c0]
mov rcx, qword [rsp + 0xa0]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0x400
jbe 0x140009728
mov qword [rsp + 0x90], 0x400
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x29c0]
lea rcx, [rsp + 0x160]
call fcn.1401531ec
mov byte [rsp + 0x50], 1
lea rax, [rsp + 0x970]
mov rdi, rax
xor eax, eax
mov ecx, 0x2002
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x29c0]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x970]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x98]
movzx eax, word [rax]
mov word [rsp + 0x52], ax
mov rax, qword [rsp + 0x70]
movzx ecx, word [rsp + 0x52]
mov word [rax], cx
mov rax, qword [rsp + 0x98]
add rax, 2
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x70]
add rax, 2
mov qword [rsp + 0x70], rax
cmp word [rsp + 0x52], 0
jne 0x140009788
lea rax, [rsp + 0x970]
mov qword [rsp + 0x58], rax
sub qword [rsp + 0x58], 2
add qword [rsp + 0x58], 2
mov rax, qword [rsp + 0x58]
cmp word [rax], 0
jne 0x1400097e2
mov rax, qword [rsp + 0x58]
lea rcx, [0x1401b259c]
mov rdi, rax
mov rsi, rcx
mov ecx, 4
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x970]
mov qword [rsp + 0x60], rax
sub qword [rsp + 0x60], 2
add qword [rsp + 0x60], 2
mov rax, qword [rsp + 0x60]
cmp word [rax], 0
jne 0x14000981f
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x29c8]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x14000983f
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x14000986a
lea rax, [rsp + 0x160]
mov qword [rsp + 0xa8], rax
jmp 0x140009876
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x970]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400099aa
mov edx, dword [rsp + 0x29d8]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jne 0x14000998e
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14000998e
mov eax, dword [rsp + 0x54]
cmp rax, qword [rsp + 0x29b8]
jbe 0x140009949
mov eax, dword [rsp + 0x29b8]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jbe 0x14000998e
mov dword [rsp + 0x6c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6c]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x29b0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000998e
mov eax, dword [rsp + 0x6c]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x2980]
xor rcx, rsp
call fcn.140149a30
add rsp, 0x2998
pop rdi
pop rsi
ret