Function at 0x140065d70
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 + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x1402b4c00]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x60], rdx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x18], r15b
mov dword [rsp + 0x68], Ordinal_26
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 1
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xorps xmm0, xmm0
test eax, eax
jne 0x140065e5b
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.Error_creating_pipe.
mov rcx, r14
call fcn.14003b640
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x1400660a7
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065e51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065f72
call fcn.1400d3b5c
jmp 0x1400660a7
mov dword [rbp - 0x60], 0x68
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 word [rbp - 0x20], r15w
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x10], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 8], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp], rax
cmp qword [rbx + 0x18], 0xf
jbe 0x140065eb7
mov rbx, qword [rbx]
lea rax, [rbp - 0x80]
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], r15d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140065f79
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.Error_creating_process.
mov rcx, r14
call fcn.14003b640
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x1400660a7
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065e51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065e51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x10], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x10]
mov r8d, 0x400
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140066068
movzx ebx, byte [rsp + 0x50]
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x140066068
cmp rax, 0x400
jae 0x1400660d0
mov byte [rbp + rax + 0x40], 0
lea rax, [rbp + 0x40]
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140065fe0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140066029
lea rax, [rcx + rdi]
mov qword [rbp + 0x28], rax
lea rsi, [rbp + 0x18]
cmp rdx, 0xf
cmova rsi, qword [rbp + 0x18]
add rsi, rcx
mov r8, rdi
lea rdx, [rbp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x140066042
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
movzx r8d, bl
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.14003b740
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x10]
mov r8d, 0x400
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140065fb3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [r14 + 0x10], xmm1
mov rax, r14
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1400d3b00
mov rbx, qword [rsp + 0x580]
add rsp, 0x550
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d43b0
nop
int3