Function at 0x14004d560
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.14002d930
mov dword [rbp - 0x70], 0x68
mov r15, rax
test ebx, ebx
je 0x14004d65b
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 0x14004d642
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_set_commandline_pipe:__s
call fcn.14004f2f0
jmp 0x14004d849
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.14004a720
mov rcx, r14
mov rbx, rax
call fcn.14004a720
mov rcx, rsi
mov rdi, rax
call fcn.14004a720
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.14004a720
psrldq xmm6, 8
movq rcx, xmm6
mov qword [rbp + 0x30], rax
call fcn.14004a720
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 0x14004d752
call fcn.1400e8c70
mov qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14004d768
call fcn.1400e8c70
mov qword [rbp + 0x38], 0
test rbx, rbx
je 0x14004d775
mov rcx, rbx
call fcn.1400e8c70
test rdi, rdi
je 0x14004d782
mov rcx, rdi
call fcn.1400e8c70
test rsi, rsi
je 0x14004d78f
mov rcx, rsi
call fcn.1400e8c70
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r12d, r12d
jne 0x14004d7c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.14004fba0
mov r8, rax
lea rcx, str.Unable_to_launch_command__s:__s
mov rdx, r14
call fcn.14004f2f0
jmp 0x14004d831
mov r14d, dword [rbp + 0x100]
mov edi, dword [rbp + 0x108]
movaps xmmword [rsp + 0x190], xmm7
test r14d, r14d
jne 0x14004d8b1
test edi, edi
jne 0x14004d8b5
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 0x14004d814
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 0x14004d88f
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 0x14004d8a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x1e0
pop rbp
ret
test edi, edi
je 0x14004d8d1
xor r12d, r12d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
xor edx, edx
mov ecx, 0xffffffff
call fcn.140066570
jmp 0x14004d8d4
xor r12d, r12d
movss xmm7, dword [0x140177024]
movabs r13, 0x8000000000000000
movss xmm6, dword [0x14017703c]
nop
mov eax, dword [0x14019f120]
test eax, eax
jns 0x14004d904
cmp ax, 0x4c7
je 0x14004dbac
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 0x14004db81
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14004db81
lea ecx, [rax + 1]
call fcn.1400e8c84
mov qword [0x1401e2c70], rax
mov rsi, rax
test rax, rax
je 0x14004db79
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 0x14004da0f
cmp dword [rsp + 0x70], 0
je 0x14004da0f
mov eax, dword [rsp + 0x54]
mov rsi, qword [0x1401e2c70]
mov byte [rax + rsi], 0
test edi, edi
je 0x14004d9f7
mov dword [rsp + 0x58], r12d
test r15, r15
je 0x14004d9f7
cmp byte [r15], 2
jne 0x14004d9c6
lea rcx, [r15 + 0x10]
mov rdx, rsi
lea r8, [rsp + 0x58]
call fcn.14002e360
neg eax
sbb ebx, ebx
neg ebx
dec ebx
jmp 0x14004da1f
mov ebx, 0xffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, r15
inc ebx
call fcn.14002e360
movzx ecx, byte [rsi]
test eax, eax
jne 0x14004da1b
inc rsi
test cl, cl
jne 0x14004d9d0
mov rsi, qword [0x1401e2c70]
test r14d, r14d
je 0x14004db79
mov rdx, rsi
lea rcx, [0x14014fa20]
call fcn.14004f2f0
mov rsi, qword [0x1401e2c70]
jmp 0x14004db79
test cl, cl
je 0x14004d9f0
cmp ebx, 0xffffffff
je 0x14004d9f0
mov dword [rsp + 0x5c], 0
mov ebx, r12d
nop
mov edx, dword [rsp + 0x54]
mov r8, qword [0x1401e2c70]
cmp ebx, edx
jae 0x14004da57
nop
mov eax, ebx
movzx ecx, byte [rax + r8]
cmp cl, 0x30
jl 0x14004da51
cmp cl, 0x39
jle 0x14004da57
inc ebx
cmp ebx, edx
jb 0x14004da40
mov ecx, ebx
lea rdx, [0x140165958]
add rcx, r8
lea r8, [rsp + 0x5c]
call fcn.1400033a0
movss xmm0, dword [rsp + 0x5c]
xor eax, eax
mulss xmm0, xmm7
comiss xmm0, xmm6
jb 0x14004da8a
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x14004da8a
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.140066570
mov edx, dword [rsp + 0x54]
mov rsi, qword [0x1401e2c70]
inc ebx
cmp ebx, edx
jae 0x14004dad0
movzx ecx, byte [rbx + rsi]
cmp cl, 0xa
je 0x14004dad0
cmp cl, 0xd
jne 0x14004dab4
nop dword [rax + rax]
inc ebx
cmp ebx, edx
jae 0x14004db72
movzx eax, byte [rbx + rsi]
lea rdi, [rbx + rsi]
mov r14d, ebx
cmp al, 0xa
je 0x14004dad0
cmp al, 0xd
je 0x14004dad0
cmp byte [r15], 2
mov dword [rsp + 0x58], r12d
jne 0x14004db13
lea rcx, [r15 + 0x10]
mov rdx, rdi
lea r8, [rsp + 0x58]
call fcn.14002e360
neg eax
sbb esi, esi
neg esi
dec esi
jmp 0x14004db46
mov esi, 0xffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, r15
inc esi
call fcn.14002e360
movzx ecx, byte [rdi]
test eax, eax
jne 0x14004db42
inc rdi
test cl, cl
jne 0x14004db20
jmp 0x14004db55
test cl, cl
je 0x14004db55
mov edi, dword [rbp + 0x108]
cmp esi, 0xffffffff
jne 0x14004da30
mov rdx, qword [0x1401e2c70]
lea rcx, [0x14014fa20]
add rdx, r14
call fcn.14004f2f0
mov rsi, qword [0x1401e2c70]
mov r14d, dword [rbp + 0x100]
mov rcx, rsi
call fcn.1400e8c70
mov rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004d7f6
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [rbp + 0x108]
jmp 0x14004d8f0
mov rcx, qword [rsp + 0x78]
mov edx, 0x4c7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14004dbe1
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_terminate_command:__s
call fcn.14004f2f0
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004d829
mov rcx, qword [rsp + 0x78]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004dc36
cmp eax, 0x102
je 0x14004dc1d
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Error_while_waiting_for_command_to_be_terminated:__s
call fcn.14004f2f0
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004d829
lea rcx, str.Command_did_not_terminate_within_timeout_duration
call fcn.14004f2f0
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004d829
lea rcx, str.Command_was_terminated_by_user
call fcn.14004f2f0
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004d829