Function at 0x140004390
Capabilities:
Create pipe
Create process on windows
Create process suspended
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 [0x140014040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov dword [rbp - 0x78], 0x18
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], r14
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
je 0x1400045e0
mov dword [rbp - 0x40], 0x68
xorps xmm0, 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
movups xmmword [rbp + 0x18], xmm0
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
psrldq xmm0, 4
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], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp - 0x80]
test eax, eax
je 0x1400045ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], r14
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 0x140004554
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140004554
mov esi, eax
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14000451e
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140004505
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rbp + 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x140004532
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x40]
mov rdx, rsi
mov rcx, rdi
call fcn.140002840
mov qword [rsp + 0x20], r14
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 0x1400044d5
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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 rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14000bfd0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.CreateProcess_failed
lea rcx, [rsp + 0x58]
call fcn.1400011d0
lea rdx, [0x1400124f0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.CreatePipe_failed
lea rcx, [rsp + 0x58]
call fcn.1400011d0
lea rdx, [0x1400124f0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3