Function at 0x140013c80
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 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x1400b7360]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x70], rcx
xor r13d, r13d
mov dword [rsp + 0x54], r13d
mov rcx, qword [rdx + 0x10]
movabs r12, 0x7fffffffffffffff
mov rax, r12
sub rax, rcx
cmp rax, 0x11
jb 0x140014078
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140013ced
mov rax, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], shutdown
lea r9, str.Running_command:
mov r8, rbx
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140022330
mov dword [rsp + 0x54], 2
lea rcx, [rsp + 0x58]
call fcn.140012200
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140013d69
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001407e
call fcn.1400581e0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], shutdown
mov byte [rsp + 0x58], 0
mov qword [rbp - 0x68], 0x18
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x60], r13
xor r9d, r9d
lea r8, [rbp - 0x68]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140014084
mov r14, qword [rbp + 0x20]
mov qword [rbp + 0x30], r14
mov r15, qword [rbp + 0x28]
mov qword [rbp + 0x28], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov dword [rbp - 0x50], 0x68
mov dword [rbp - 0x14], 0x101
mov word [rbp - 0x10], r13w
mov qword [rbp + 0x10], r15
mov qword [rbp + 8], r15
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
cmp qword [rbx + 0x18], 0x10
jb 0x140013e07
mov rbx, qword [rbx]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
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
je 0x1400140a7
mov rbx, qword [rbp - 0x68]
mov qword [rbp + 0x20], rbx
mov rdi, qword [rbp - 0x60]
mov qword [rbp + 0x38], rdi
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400140ca
test rdi, rdi
je 0x140013e7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rbx, rbx
je 0x140013e8c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov rdi, r13
mov qword [rbp - 0x58], r13
mov dword [rbp + 0x20], r13d
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x40]
call fcn.14005ae50
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x20]
mov r8d, 0x400
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013f23
nop dword [rax]
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140013f1f
lea r9, [rbp + 0x40]
add r9, rax
lea r8, [rbp + 0x40]
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x68]
call fcn.140023600
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x20]
mov r8d, 0x400
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140013ee0
mov rdi, qword [rbp - 0x58]
mov qword [rsi], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], shutdown
mov byte [rsi], 0
mov rbx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x60]
cmp rbx, r8
je 0x140013f51
sub r8, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14001d080
nop
test rbx, rbx
je 0x140013f89
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140013f7e
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400140ed
mov rdx, rdi
mov rcx, rbx
call fcn.1400581e0
mov dword [rsp + 0x54], 7
mov rcx, qword [rsi + 0x10]
sub r12, rcx
cmp r12, 8
jb 0x1400140f3
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140013faf
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 8
lea r9, str.STDOUT:
mov r8, rsi
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140022330
mov dword [rsp + 0x54], shutdown
lea rcx, [rsp + 0x58]
call fcn.140012200
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140014028
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014022
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014072
call fcn.1400581e0
nop
test r15, r15
je 0x140014037
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x140014045
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1400581c0
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140067c44
nop
call fcn.140002360
int3
call fcn.140067c44
int3
lea rdx, str.Failed_to_create_pipe.
lea rcx, [rsp + 0x78]
call fcn.140002620
lea rdx, [0x1400b4770]
lea rcx, [rsp + 0x78]
call fcn.14005a6cc
nop
lea rdx, str.Failed_to_execute_command.
lea rcx, [rsp + 0x78]
call fcn.140002620
lea rdx, [0x1400b4770]
lea rcx, [rsp + 0x78]
call fcn.14005a6cc
nop
lea rdx, str.Failed_waiting_for_process_to_complete.
lea rcx, [rsp + 0x78]
call fcn.140002620
lea rdx, [0x1400b4770]
lea rcx, [rsp + 0x78]
call fcn.14005a6cc
nop
call fcn.140067c44
int3
call fcn.140002360
int3