Function at 0x140036cf0
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
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x1402f2300]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x60], rcx
mov dword [rsp + 0x58], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r14d, r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], recv
mov byte [rcx], r14b
mov dword [rsp + 0x58], 1
mov dword [rbp - 0x78], 0x18
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], r14
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 0x140036ef4
mov dword [rbp - 0x50], 0x68
xorps xmm0, 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
movups xmmword [rbp + 8], xmm0
mov dword [rbp - 0x14], 0x101
mov rax, qword [rsp + 0x68]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov word [rbp - 0x10], r14w
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140036dd8
mov r8, qword [rbx]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbx + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov r8, rdi
xor edx, edx
lea rcx, [rbp + 0x20]
call fcn.1400308d0
mov dword [rsp + 0x58], 3
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rcx, qword [rbp + 0x20]
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140036e34
mov rbx, qword [rbx]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rcx
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rdx, qword [rbp + 0x20]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140036f20
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 rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140036ef4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036eee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037105
call fcn.14014d4dc
nop
mov rax, rsi
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.14014d830
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov edx, gethostbyname
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
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 0x140037086
nop word [rax + rax]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140037086
cmp eax, 0x3ff
mov r8d, 0x3ff
ja 0x140036f8c
mov r8d, eax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
lea rdx, [rbp + 0x60]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037086
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140037086
cmp rax, 0x400
jae 0x14003710b
mov byte [rbp + rax + 0x60], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r14
lea rax, [rbp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140036fe4
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.1400036c0
nop
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0xf
cmova rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x50]
mov rcx, rsi
call fcn.14000fbe0
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140037052
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003704d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400370ff
call fcn.14014d4dc
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
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 0x140036f70
test ebx, ebx
jne 0x140036f20
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 rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140036ef4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036eee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037105
jmp 0x140036eee
call fcn.1401538c4
nop
call fcn.1401538c4
nop
call fcn.14014dbe8
int3