Function at 0x1400404c0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe
Terminate process

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbp
lea rbp, [rax - 0xe8]
sub rsp, 0x1e0
xorps xmm0, xmm0
mov qword [rax + 8], rbx
mov qword [rax - 0x10], rsi
mov ebx, r8d
mov qword [rax - 0x20], r12
mov rsi, rdx
mov qword [rax - 0x30], r14
xor r12d, r12d
mov qword [rax - 0x38], r15
mov r14, rcx
xor eax, eax
mov dword [rbp], 0x18
lea rcx, str._s_____d._______s
mov dword [rbp - 0xc], eax
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp + 8], r12
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp + 0x10], 1
movups xmmword [rbp - 0x4c], xmm0
mov qword [rsp + 0x68], 0xffffffffffffffff
movups xmmword [rbp - 0x3c], xmm0
mov qword [rsp + 0x60], 0xffffffffffffffff
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x78], xmm0
call fcn.140026ae0
mov dword [rbp - 0x70], 0x68
mov r15, rax
test ebx, ebx
je 0x1400405bb
mov r9d, 0x1000
lea r8, [rbp]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400405a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_set_commandline_pipe:__s
call fcn.140041aa0
jmp 0x1400407a9
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x34], 0x3101
mov word [rbp - 0x30], r12w
mov qword [rsp + 0x1d0], rdi
xor ecx, ecx
mov qword [rsp + 0x1c0], r13
movaps xmmword [rsp + 0x1a0], xmm6
call fcn.140003550
mov rcx, r14
mov rbx, rax
call fcn.140003550
mov rcx, rsi
mov rdi, rax
call fcn.140003550
movaps xmm0, xmmword [rbp - 0x70]
mov rsi, rax
movaps xmm1, xmmword [rbp - 0x40]
movaps xmm6, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x20], xmm0
movq rcx, xmm6
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x60], xmm0
movsd xmm0, qword [rbp - 0x10]
movaps xmmword [rbp + 0x50], xmm1
movaps xmm1, xmmword [rbp - 0x20]
movsd qword [rbp + 0x80], xmm0
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x70], xmm1
call fcn.140003550
psrldq xmm6, 8
movq rcx, xmm6
mov qword [rbp + 0x30], rax
call fcn.140003550
mov qword [rbp + 0x38], rax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rdi
lea rax, [rbp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x30]
mov r13d, eax
test rcx, rcx
je 0x1400406b2
call fcn.14009b5a0
mov qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400406c8
call fcn.14009b5a0
mov qword [rbp + 0x38], 0
test rbx, rbx
je 0x1400406d5
mov rcx, rbx
call fcn.14009b5a0
test rdi, rdi
je 0x1400406e2
mov rcx, rdi
call fcn.14009b5a0
test rsi, rsi
je 0x1400406ef
mov rcx, rsi
call fcn.14009b5a0
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r12d, r12d
jne 0x140040720
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.140041e50
mov r8, rax
lea rcx, str.Unable_to_launch_command__s:__s
mov rdx, r14
call fcn.140041aa0
jmp 0x140040791
mov r14d, dword [rbp + 0x100]
mov edi, dword [rbp + 0x108]
movaps xmmword [rsp + 0x190], xmm7
test r14d, r14d
jne 0x140040811
test edi, edi
jne 0x140040815
mov rcx, qword [rsp + 0x78]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140040774
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm7, xmmword [rsp + 0x190]
mov r13, qword [rsp + 0x1c0]
mov rdi, qword [rsp + 0x1d0]
movaps xmm6, xmmword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1b8]
mov r12, qword [rsp + 0x1c8]
mov rsi, qword [rsp + 0x1d8]
lea rax, [rcx - 1]
mov rbx, qword [rsp + 0x1f0]
cmp rax, 0xfffffffffffffffd
ja 0x1400407ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140040804
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x1e0
pop rbp
ret
test edi, edi
je 0x14004082f
xor edx, edx
xor r12d, r12d
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea ecx, [rdx - 1]
call fcn.1400527d0
jmp 0x140040832
xor r12d, r12d
movss xmm7, dword [0x1400f64fc]
movabs r13, 0x8000000000000000
movss xmm6, dword [0x1400f6514]
nop dword [rax]
mov eax, dword [0x140111620]
test eax, eax
jns 0x140040864
cmp ax, 0x4c7
je 0x140040afc
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140040ad1
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140040ad1
lea ecx, [rax + 1]
call fcn.14009b5b4
mov qword [0x1401551a0], rax
mov rsi, rax
test rax, rax
je 0x140040ac9
mov r8d, dword [rsp + 0x54]
lea r9, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004096f
cmp dword [rsp + 0x70], 0
je 0x14004096f
mov eax, dword [rsp + 0x54]
mov rsi, qword [0x1401551a0]
mov byte [rax + rsi], 0
test edi, edi
je 0x140040957
mov dword [rsp + 0x58], r12d
test r15, r15
je 0x140040957
cmp byte [r15], 2
jne 0x140040926
lea rcx, [r15 + 0x10]
mov rdx, rsi
lea r8, [rsp + 0x58]
call fcn.140027130
neg eax
sbb ebx, ebx
neg ebx
dec ebx
jmp 0x14004097f
mov ebx, 0xffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, r15
inc ebx
call fcn.140027130
movzx ecx, byte [rsi]
test eax, eax
jne 0x14004097b
inc rsi
test cl, cl
jne 0x140040930
mov rsi, qword [0x1401551a0]
test r14d, r14d
je 0x140040ac9
mov rdx, rsi
lea rcx, [0x1400d10a0]
call fcn.140041aa0
mov rsi, qword [0x1401551a0]
jmp 0x140040ac9
test cl, cl
je 0x140040950
cmp ebx, 0xffffffff
je 0x140040950
mov dword [rsp + 0x5c], 0
mov ebx, r12d
nop
mov edx, dword [rsp + 0x54]
mov r8, qword [0x1401551a0]
cmp ebx, edx
jae 0x1400409b5
nop
mov eax, ebx
movzx ecx, byte [rax + r8]
sub cl, 0x30
cmp cl, 9
jbe 0x1400409b5
inc ebx
cmp ebx, edx
jb 0x1400409a0
mov ecx, ebx
lea rdx, [0x1400e5fd8]
add rcx, r8
lea r8, [rsp + 0x5c]
call fcn.140001e20
movss xmm0, dword [rsp + 0x5c]
xor eax, eax
mulss xmm0, xmm7
comiss xmm0, xmm6
jb 0x1400409e8
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x1400409e8
mov rax, r13
cvttss2si r8, xmm0
mov r9d, 0x2710
mov dword [rsp + 0x20], r12d
mov edx, edi
mov ecx, 4
add r8, rax
call fcn.1400527d0
mov edx, dword [rsp + 0x54]
mov rsi, qword [0x1401551a0]
inc ebx
cmp ebx, edx
jae 0x140040a26
movzx ecx, byte [rbx + rsi]
cmp cl, 0xa
je 0x140040a26
cmp cl, 0xd
jne 0x140040a12
inc ebx
cmp ebx, edx
jae 0x140040ac2
movzx eax, byte [rbx + rsi]
lea rdi, [rbx + rsi]
mov r14d, ebx
cmp al, 0xa
je 0x140040a26
cmp al, 0xd
je 0x140040a26
cmp byte [r15], 2
mov dword [rsp + 0x58], r12d
jne 0x140040a69
lea rcx, [r15 + 0x10]
mov rdx, rdi
lea r8, [rsp + 0x58]
call fcn.140027130
neg eax
sbb esi, esi
neg esi
dec esi
jmp 0x140040a96
mov esi, 0xffffffff
nop
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, r15
inc esi
call fcn.140027130
movzx ecx, byte [rdi]
test eax, eax
jne 0x140040a92
inc rdi
test cl, cl
jne 0x140040a70
jmp 0x140040aa5
test cl, cl
je 0x140040aa5
mov edi, dword [rbp + 0x108]
cmp esi, 0xffffffff
jne 0x140040990
mov rdx, qword [0x1401551a0]
lea rcx, [0x1400d10a0]
add rdx, r14
call fcn.140041aa0
mov rsi, qword [0x1401551a0]
mov r14d, dword [rbp + 0x100]
mov rcx, rsi
call fcn.14009b5a0
mov rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140040756
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [rbp + 0x108]
jmp 0x140040850
mov rcx, qword [rsp + 0x78]
mov edx, 0x4c7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140040b31
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_terminate_command:__s
call fcn.140041aa0
mov dword [rsp + 0x50], 0x4c7
jmp 0x140040789
mov rcx, qword [rsp + 0x78]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140040b86
cmp eax, 0x102
je 0x140040b6d
call fcn.140041e50
mov rdx, rax
lea rcx, str.Error_while_waiting_for_command_to_be_terminated:__s
call fcn.140041aa0
mov dword [rsp + 0x50], 0x4c7
jmp 0x140040789
lea rcx, str.Command_did_not_terminate_within_timeout_duration
call fcn.140041aa0
mov dword [rsp + 0x50], 0x4c7
jmp 0x140040789
lea rcx, str.Command_was_terminated_by_user
call fcn.140041aa0
mov dword [rsp + 0x50], 0x4c7
jmp 0x140040789