Function at 0x140002650
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 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x58], rcx
mov qword [rbp + 0x18], rcx
call fcn.1400013d0
mov rcx, rax
test rax, rax
je 0x140002a8d
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x18], rbx
mov dword [rbp - 0x78], 0x18
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x68], 1
xor esi, esi
mov qword [rbp - 0x70], rsi
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
jne 0x14000279b
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], esi
jl 0x14000270a
cmp rax, qword [rbx - 0x18]
jne 0x14000270a
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x140002740
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x140002a87
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov r9d, dword [rbx - 0x10]
inc r9d
mov r8, rbx
movsxd rdx, r9d
lea rcx, [rax + 0x18]
call fcn.140005c30
lea rax, [rdi + 0x18]
mov qword [r13], rax
mov r13, 0xffffffffffffffff
lock xadd dword [rbx - 8], r13d
sub r13d, 1
jg 0x140002769
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
mov rdi, qword [rsp + 0x58]
mov rax, rdi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140006e40
mov rbx, qword [rsp + 0x580]
add rsp, 0x530
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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], si
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000283d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400026e8
mov r13, 0xffffffffffffffff
nop dword [rax]
nop dword [rax + rax]
mov edx, 0x32
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsp + 0x50]
mov dword [rbp + 0x14], esi
mov dword [rbp + 0x10], esi
mov qword [rsp + 0x28], rsi
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 0x1400029cb
nop word [rax + rax]
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x1400029cb
cmp eax, 0x3ff
jbe 0x1400028b7
mov eax, 0x3ff
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x14]
mov r8d, eax
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400029cb
mov eax, dword [rbp + 0x14]
test eax, eax
je 0x1400029cb
cmp rax, 0x400
jae 0x140002aa3
mov byte [rbp + rax + 0x20], 0
lea rcx, [rbp + 0x20]
mov rax, r13
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140002900
lea r12, [rbp + 0x20]
lea rsi, [rbp + 0x20]
sub rsi, rbx
mov r15d, dword [rbx - 0x10]
test eax, eax
js 0x140002a98
movsxd rdx, eax
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, r15d
jl 0x140002a98
lea edi, [r15 + rax]
test edi, edi
js 0x140002a98
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000296c
mov edx, edi
lea rcx, [rbp + 0x18]
call fcn.140005cc0
mov rbx, qword [rbp + 0x18]
cmp rsi, r15
ja 0x140002975
lea r12, [rsi + rbx]
movsxd rdx, r14d
lea rcx, [r15 + rbx]
mov r9d, r14d
mov r8, r12
call fcn.140005c30
cmp edi, dword [rbx - 0xc]
jg 0x140002a98
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov byte [rax + rbx], 0
xor esi, esi
mov dword [rbp + 0x14], esi
mov dword [rbp + 0x10], esi
mov qword [rsp + 0x28], rsi
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 0x1400028a0
cmp byte [rsp + 0x50], 0
je 0x140002850
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]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140002a25
cmp rax, qword [rbx - 0x18]
jne 0x140002a25
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x140002a57
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x140002a87
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov r9d, dword [rbx - 0x10]
inc r9d
mov r8, rbx
movsxd rdx, r9d
lea rcx, [rdi + 0x18]
call fcn.140005c30
lea rax, [rdi + 0x18]
mov rdi, qword [rsp + 0x58]
mov qword [rdi], rax
lock xadd dword [rbx - 8], r13d
sub r13d, 1
jg 0x14000276e
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [r8 + 8]
jmp 0x14000276e
call fcn.140005c20
nop
mov ecx, 0x80004005
call fcn.1400012a0
nop
mov ecx, 0x80070057
call fcn.1400012a0
int3
call fcn.1400071dc
int3