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

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x2848]
mov eax, 0x2948
call fcn.1401345a0
sub rsp, rax
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rbp + 0x2830], rax
mov rsi, r9
mov rbx, r8
mov r14, rcx
test rcx, rcx
je 0x140006101
test rbx, rbx
je 0x140006101
mov qword [rsp + 0x2978], rdi
lea r8, [rsp + 0x68]
xor edi, edi
mov qword [rsp + 0x68], SafeArrayCopy
xor r9d, r9d
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400060f4
xorps xmm0, xmm0
mov qword [rsp + 0x2940], r15
xor eax, eax
mov dword [rbp - 0x60], 0x68
lea rcx, [rbp - 0x60]
mov dword [rbp + 4], eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rsp + 0x60]
lea rcx, [rbp + 0x10]
xorps xmm0, xmm0
mov qword [rbp], rax
xor r15b, r15b
mov qword [rbp - 8], rax
xor edx, edx
mov word [rbp - 0x20], di
mov r8d, 0x802
mov dword [rbp - 0x24], 0x101
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
call fcn.140138ba0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140005f10
lea r8, [rbx - 2]
lea r8, [r8 + rax*2]
cmp r8, rbx
jb 0x140005f63
nop dword [rax + rax]
sub r8, 2
cmp word [r8], 0x5c
je 0x140005f42
cmp r8, rbx
jae 0x140005f30
jmp 0x140005f63
sub r8, rbx
lea rcx, [rbp + 0x10]
sar r8, 1
mov eax, 0x400
cmp r8, rax
mov rdx, rbx
cmova r8, rax
call fcn.14013d10c
mov r15b, 1
xor edx, edx
lea rcx, [rbp + 0x820]
mov r8d, 0x2002
call fcn.140138ba0
lea rcx, [rbp + 0x820]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140005f90
lea rcx, [rbp + 0x820]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140005fb0
mov eax, dword [0x1401a6680]
mov dword [rcx], eax
lea rcx, [rbp + 0x820]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140005fd0
xor edx, edx
nop dword [rax]
movzx eax, word [rsi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140005fe0
lea rcx, [rbp - 0x80]
test r15b, r15b
mov qword [rsp + 0x48], rcx
lea rax, [rbp + 0x10]
cmove rax, rdi
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
lea rdx, [rbp + 0x820]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], edi
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r15, qword [rsp + 0x2940]
test eax, eax
je 0x1400060de
mov rcx, qword [rbp - 0x80]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400060ca
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x50], edi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400060ca
mov r8d, dword [rsp + 0x50]
cmp r8d, 0xfff
jbe 0x1400060a1
mov r8d, 0xfff
mov dword [rsp + 0x50], r8d
jmp 0x1400060a6
test r8d, r8d
je 0x1400060ca
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x54]
mov rdx, r14
mov dword [rsp + 0x54], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400060ca
mov edi, dword [rsp + 0x54]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rdi, qword [rsp + 0x2978]
jmp 0x140006103
xor eax, eax
mov rcx, qword [rbp + 0x2830]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x2948
pop r14
pop rsi
pop rbx
pop rbp
ret