Function at 0x140046720
Capabilities:
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 r14
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400c1060]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x70], rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rcx], rbx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bl
mov dword [rsp + 0x50], 1
mov dword [rbp - 0x78], Ordinal_27
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], rbx
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140046846
call fcn.140046ad0
mov r9, rax
cmp byte [rax + 9], bl
jne 0x140046a82
nop dword [rax]
mov edx, dword [r9 + 4]
mov r8d, dword [r9]
lea ecx, [rdx + 1]
cmp r8d, ecx
jne 0x1400467de
inc dl
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400467c0
lea eax, [rdx + 2]
cmp r8d, eax
jne 0x1400467f6
add dl, 2
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400467c0
cmp r8d, edx
je 0x14004682b
lea eax, [rdx + 4]
cmp r8d, eax
jne 0x140046813
add dl, 3
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400467c0
lea eax, [rdx + 5]
cmp r8d, eax
jne 0x140046836
add dl, 4
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400467c0
movsxd rcx, ebx
lea eax, [rbx - 0x80]
xor byte [rcx + r9 + 0xa], al
inc ebx
cmp ebx, 0x15
jae 0x140046a82
jmp 0x1400467c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x40], 0x68
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
psrldq xmm0, 8
movd eax, xmm0
bts eax, 8
mov dword [rbp - 4], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140046977
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140046dd0
mov r9, rax
cmp byte [rax + 9], 0
jne 0x140046aa7
mov edx, dword [r9 + 4]
mov r8d, dword [r9]
lea ecx, [rdx + 1]
cmp r8d, ecx
jne 0x14004690f
inc dl
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400468f1
lea eax, [rdx + 2]
cmp r8d, eax
jne 0x140046927
add dl, 2
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400468f1
cmp r8d, edx
je 0x14004695c
lea eax, [rdx + 4]
cmp r8d, eax
jne 0x140046944
add dl, 3
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400468f1
lea eax, [rdx + 5]
cmp r8d, eax
jne 0x140046967
add dl, 4
movsxd rax, ebx
xor byte [rax + r9 + 0xa], dl
inc dword [r9]
jmp 0x1400468f1
movsxd rcx, ebx
lea eax, [rbx - 0x80]
xor byte [rcx + r9 + 0xa], al
inc ebx
cmp ebx, 0x18
jae 0x140046aa7
jmp 0x1400468f1
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x30]
mov r8d, 0x80
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140046a39
nop word [rax + rax]
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140046a39
mov r14d, eax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x1400469ff
lea rax, [rcx + r14]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x1400469e5
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, r14
lea rdx, [rbp + 0x40]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + r14], 0
jmp 0x140046a13
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x40]
mov rdx, r14
mov rcx, rsi
call fcn.1400431d0
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x30]
mov r8d, 0x80
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400469b0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140092b30
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov byte [r9 + 9], 1
lea rdx, [r9 + 0xa]
lea rcx, [rsp + 0x58]
call fcn.140044100
lea rdx, [0x1400bd1e8]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov byte [r9 + 9], 1
lea rdx, [r9 + 0xa]
lea rcx, [rsp + 0x58]
call fcn.140044100
lea rdx, [0x1400bd1e8]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3