Function at 0x140018270
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 + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
cmp qword [rdx + 0x18], 8
jb 0x14001829d
mov rdx, qword [rdx]
lea rcx, str.____Run_async_command:__s_n
call fcn.140001b40
mov dword [rbp - 0x60], 0x18
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x58], r14
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14001838e
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 dword [rbp - 4], 0x101
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov word [rbp], r14w
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140018335
mov rdx, qword [rbx]
lea rax, [rsp + 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], 0x10
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 0x140018432
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400183a1
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Failed_to_run_async_command:__s__error_0x_X_n
call fcn.140001b40
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x140048e20]
mov byte [rbp + 0x30], 0
mov byte [rsi], 0
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x18], xmm1
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140018411
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001840c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001860d
mov rcx, r8
call fcn.1400195ec
mov rax, rsi
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
add rsp, 0x550
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x140056770]
test rcx, rcx
je 0x140018449
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x140048e20]
movdqu xmmword [rbp - 0x78], xmm1
mov byte [rsp + 0x78], 0
nop dword [rax]
nop word [rax + rax]
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
mov dword [rbp + 0x498], r14d
mov dword [rbp + 0x490], r14d
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x490]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140018572
nop dword [rax]
mov eax, dword [rbp + 0x490]
test eax, eax
je 0x140018572
cmp eax, 0x3ff
mov r8d, 0x3ff
ja 0x1400184de
mov r8d, eax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x498]
lea rdx, [rbp + 0x50]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018572
mov eax, dword [rbp + 0x498]
test eax, eax
je 0x140018572
mov byte [rbp + rax + 0x50], 0
lea rax, [rbp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140018520
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140003d80
mov dword [rbp + 0x498], r14d
mov dword [rbp + 0x490], r14d
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x490]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400184c0
test edi, edi
jne 0x140018470
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsi], 1
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x78]
call fcn.140003750
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400185f0
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400185eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018607
call fcn.1400195ec
movdqa xmm0, xmmword [0x140048e20]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
jmp 0x1400183d2
call fcn.14002a224
nop
call fcn.14002a224
int3