Function at 0x140022230
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 0x14002225d
mov rdx, qword [rdx]
lea rcx, str.____Run_async_command:__s_n
call fcn.140001db0
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 0x14002234e
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 0x1400222f5
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 0x1400223f2
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 0x140022361
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Failed_to_run_async_command:__s__error_0x_X_n
call fcn.140001db0
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x140056f40]
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 0x1400223d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400223cc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400225cd
mov rcx, r8
call fcn.140024d14
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 [0x140069518]
test rcx, rcx
je 0x140022409
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x140056f40]
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 0x140022532
nop dword [rax]
mov eax, dword [rbp + 0x490]
test eax, eax
je 0x140022532
cmp eax, 0x3ff
mov r8d, 0x3ff
ja 0x14002249e
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 0x140022532
mov eax, dword [rbp + 0x498]
test eax, eax
je 0x140022532
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 0x1400224e0
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140006a40
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 0x140022480
test edi, edi
jne 0x140022430
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.140006350
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400225b0
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400225ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400225c7
call fcn.140024d14
movdqa xmm0, xmmword [0x140056f40]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
jmp 0x140022392
call fcn.140035a34
nop
call fcn.140035a34
int3