Function at 0x140006300
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 + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x50], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], SafeArrayGetLBound
mov byte [rcx], r15b
mov dword [rsp + 0x50], 1
mov dword [rbp - 0x78], reloc.OLEAUT32.dll_SafeArrayGetElement
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], r15
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140006573
mov dword [rbp - 0x60], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
mov dword [rbp - 0x24], 0x101
mov rax, qword [rsp + 0x68]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov word [rbp - 0x20], r15w
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xorps xmm1, xmm1
movups xmmword [rbp + 0x18], xmm1
mov qword [rbp + 0x28], rax
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140006404
mov rcx, qword [rbx]
mov rsi, rcx
lea rdi, [rcx + rax*2]
jmp 0x14000640b
lea rdi, [rbx + rax*2]
mov rsi, rbx
movdqu xmmword [rbp + 0x18], xmm0
mov rax, r15
mov qword [rbp + 0x28], rax
mov rbx, rdi
sub rbx, rsi
sar rbx, 1
je 0x1400064aa
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140006723
add rbx, rbx
jne 0x140006443
mov rax, r15
jmp 0x140006480
cmp rbx, 0x1000
jb 0x140006478
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140006711
call fcn.140027cd8
mov rcx, rax
test rax, rax
je 0x140006717
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140006480
mov rcx, rbx
call fcn.140027cd8
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
add rbx, rax
mov qword [rbp + 0x28], rbx
sub rdi, rsi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14004cde0
mov qword [rbp + 0x20], rbx
mov rax, qword [rbp + 0x28]
jmp 0x1400064ae
mov rbx, qword [rbp + 0x20]
mov word [rbp + 0x10], r15w
cmp rbx, rax
je 0x1400064c3
mov word [rbx], r15w
add qword [rbp + 0x20], 2
jmp 0x1400064d3
lea r8, [rbp + 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.140015540
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400065b0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140006573
mov rax, qword [rbp + 0x28]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000656d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006717
call fcn.140027a30
nop
mov rax, r14
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140027a10
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, 0x32
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov dword [rbp + 0x14], r15d
mov dword [rbp + 0x10], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140006697
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x140006697
cmp eax, 0x3ff
mov r8d, 0x3ff
ja 0x14000660e
mov r8d, eax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x14]
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006697
mov eax, dword [rbp + 0x14]
test eax, eax
je 0x140006697
cmp rax, 0x400
jae 0x14000671d
mov byte [rbp + rax + 0x30], 0
lea rax, [rbp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140006650
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.14000c910
mov dword [rbp + 0x14], r15d
mov dword [rbp + 0x10], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400065f3
test ebx, ebx
jne 0x1400065b0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140006573
mov rax, qword [rbp + 0x28]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000656d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006717
jmp 0x14000656d
call fcn.140001690
int3
call fcn.140033f90
nop
call fcn.140027b40
nop
call fcn.140014d40
int3