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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400fec00]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x54], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], r12
mov ebx, r12d
mov qword [rbp + 0x30], rbx
mov r15d, send
mov qword [rbp + 0x38], r15
mov byte [rbp + 0x20], bl
mov dword [rsp + 0x78], 0x18
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x80], r12
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140081458
mov byte [r14 + 0x20], al
mov dword [rsp + 0x54], 1
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], send
mov byte [rbp + 0x20], 0
mov rax, r14
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400b3f50
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rdi, [rbp - 0x50]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rbp - 0x50], 0x68
mov dword [rbp - 0x14], 0x101
mov word [rbp - 0x10], r12w
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp], rax
mov rax, qword [rsp + 0x70]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
cmp qword [rsi + 0x18], 0xf
jbe 0x1400814b1
mov rsi, qword [rsi]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14008150f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [r14 + 0x20], 0
jmp 0x140081415
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
mov qword [rbp + 0x58], r12
mov ecx, 0x2027
call fcn.1400b4098
mov rcx, rax
test rax, rax
je 0x1400816e1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
add rax, 0x2000
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x58], rax
mov rcx, qword [rbp + 0x48]
lea rdi, [rcx + 0x2000]
xor edx, edx
mov r8d, 0x2000
call fcn.1400c1030
mov qword [rbp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x40]
mov r8d, 0x2000
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008165d
movzx edi, byte [rsp + 0x50]
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x14008165d
mov esi, eax
mov rax, r15
sub rax, rbx
cmp rsi, rax
ja 0x140081615
lea rax, [rbx + rsi]
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x20]
cmp r15, 0xf
cmova rax, qword [rbp + 0x20]
add rbx, rax
mov r8d, esi
mov rdx, qword [rbp + 0x48]
mov rcx, rbx
call fcn.1400c0990
mov byte [rbx + rsi], 0
jmp 0x14008162e
mov qword [rsp + 0x20], rsi
mov r9, qword [rbp + 0x48]
movzx r8d, dil
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.140045830
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x40]
mov r8d, 0x2000
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008165d
mov r15, qword [rbp + 0x38]
mov rbx, qword [rbp + 0x30]
jmp 0x1400815d0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], send
mov byte [rbp + 0x20], 0
mov byte [r14 + 0x20], 1
mov dword [rsp + 0x54], 1
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14008141d
mov rdx, qword [rbp + 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400816cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400816e1
call fcn.1400b3f70
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r12
jmp 0x14008141d
call fcn.140097c38
int3