Function at 0x14004db10
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.14002d830
mov dword [rbp - 0x70], 0x68
mov r15, rax
test ebx, ebx
je 0x14004dc0b
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 0x14004dbf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_set_commandline_pipe:__s
call fcn.14004f910
jmp 0x14004ddf9
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.14004acd0
mov rcx, r14
mov rbx, rax
call fcn.14004acd0
mov rcx, rsi
mov rdi, rax
call fcn.14004acd0
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.14004acd0
psrldq xmm6, 8
movq rcx, xmm6
mov qword [rbp + 0x30], rax
call fcn.14004acd0
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 0x14004dd02
call fcn.1400e9080
mov qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14004dd18
call fcn.1400e9080
mov qword [rbp + 0x38], 0
test rbx, rbx
je 0x14004dd25
mov rcx, rbx
call fcn.1400e9080
test rdi, rdi
je 0x14004dd32
mov rcx, rdi
call fcn.1400e9080
test rsi, rsi
je 0x14004dd3f
mov rcx, rsi
call fcn.1400e9080
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r12d, r12d
jne 0x14004dd70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.140050120
mov r8, rax
lea rcx, str.Unable_to_launch_command__s:__s
mov rdx, r14
call fcn.14004f910
jmp 0x14004dde1
mov r14d, dword [rbp + 0x100]
mov edi, dword [rbp + 0x108]
movaps xmmword [rsp + 0x190], xmm7
test r14d, r14d
jne 0x14004de61
test edi, edi
jne 0x14004de65
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 0x14004ddc4
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 0x14004de3f
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 0x14004de54
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x1e0
pop rbp
ret
test edi, edi
je 0x14004de7f
xor edx, edx
xor r12d, r12d
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea ecx, [rdx - 1]
call fcn.140066e30
jmp 0x14004de82
xor r12d, r12d
movss xmm7, dword [0x140176fb4]
movabs r13, 0x8000000000000000
movss xmm6, dword [0x140176fcc]
nop dword [rax]
mov eax, dword [0x14019f0a0]
test eax, eax
jns 0x14004deb4
cmp ax, 0x4c7
je 0x14004e15c
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 0x14004e131
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14004e131
lea ecx, [rax + 1]
call fcn.1400e9094
mov qword [0x1401e2cc0], rax
mov rsi, rax
test rax, rax
je 0x14004e129
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 0x14004dfbf
cmp dword [rsp + 0x70], 0
je 0x14004dfbf
mov eax, dword [rsp + 0x54]
mov rsi, qword [0x1401e2cc0]
mov byte [rax + rsi], 0
test edi, edi
je 0x14004dfa7
mov dword [rsp + 0x58], r12d
test r15, r15
je 0x14004dfa7
cmp byte [r15], 2
jne 0x14004df76
lea rcx, [r15 + 0x10]
mov rdx, rsi
lea r8, [rsp + 0x58]
call fcn.14002e260
neg eax
sbb ebx, ebx
neg ebx
dec ebx
jmp 0x14004dfcf
mov ebx, 0xffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, r15
inc ebx
call fcn.14002e260
movzx ecx, byte [rsi]
test eax, eax
jne 0x14004dfcb
inc rsi
test cl, cl
jne 0x14004df80
mov rsi, qword [0x1401e2cc0]
test r14d, r14d
je 0x14004e129
mov rdx, rsi
lea rcx, [0x14014f9f0]
call fcn.14004f910
mov rsi, qword [0x1401e2cc0]
jmp 0x14004e129
test cl, cl
je 0x14004dfa0
cmp ebx, 0xffffffff
je 0x14004dfa0
mov dword [rsp + 0x5c], 0
mov ebx, r12d
nop
mov edx, dword [rsp + 0x54]
mov r8, qword [0x1401e2cc0]
cmp ebx, edx
jae 0x14004e007
nop
mov eax, ebx
movzx ecx, byte [rax + r8]
cmp cl, 0x30
jl 0x14004e001
cmp cl, 0x39
jle 0x14004e007
inc ebx
cmp ebx, edx
jb 0x14004dff0
mov ecx, ebx
lea rdx, [0x140165898]
add rcx, r8
lea r8, [rsp + 0x5c]
call fcn.140002d80
movss xmm0, dword [rsp + 0x5c]
xor eax, eax
mulss xmm0, xmm7
comiss xmm0, xmm6
jb 0x14004e03a
subss xmm0, xmm6
comiss xmm0, xmm6
jae 0x14004e03a
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.140066e30
mov edx, dword [rsp + 0x54]
mov rsi, qword [0x1401e2cc0]
inc ebx
cmp ebx, edx
jae 0x14004e080
movzx ecx, byte [rbx + rsi]
cmp cl, 0xa
je 0x14004e080
cmp cl, 0xd
jne 0x14004e064
nop dword [rax + rax]
inc ebx
cmp ebx, edx
jae 0x14004e122
movzx eax, byte [rbx + rsi]
lea rdi, [rbx + rsi]
mov r14d, ebx
cmp al, 0xa
je 0x14004e080
cmp al, 0xd
je 0x14004e080
cmp byte [r15], 2
mov dword [rsp + 0x58], r12d
jne 0x14004e0c3
lea rcx, [r15 + 0x10]
mov rdx, rdi
lea r8, [rsp + 0x58]
call fcn.14002e260
neg eax
sbb esi, esi
neg esi
dec esi
jmp 0x14004e0f6
mov esi, 0xffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, r15
inc esi
call fcn.14002e260
movzx ecx, byte [rdi]
test eax, eax
jne 0x14004e0f2
inc rdi
test cl, cl
jne 0x14004e0d0
jmp 0x14004e105
test cl, cl
je 0x14004e105
mov edi, dword [rbp + 0x108]
cmp esi, 0xffffffff
jne 0x14004dfe0
mov rdx, qword [0x1401e2cc0]
lea rcx, [0x14014f9f0]
add rdx, r14
call fcn.14004f910
mov rsi, qword [0x1401e2cc0]
mov r14d, dword [rbp + 0x100]
mov rcx, rsi
call fcn.1400e9080
mov rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004dda6
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [rbp + 0x108]
jmp 0x14004dea0
mov rcx, qword [rsp + 0x78]
mov edx, 0x4c7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14004e191
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_terminate_command:__s
call fcn.14004f910
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004ddd9
mov rcx, qword [rsp + 0x78]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004e1e6
cmp eax, 0x102
je 0x14004e1cd
call fcn.140050120
mov rdx, rax
lea rcx, str.Error_while_waiting_for_command_to_be_terminated:__s
call fcn.14004f910
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004ddd9
lea rcx, str.Command_did_not_terminate_within_timeout_duration
call fcn.14004f910
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004ddd9
lea rcx, str.Command_was_terminated_by_user
call fcn.14004f910
mov dword [rsp + 0x50], 0x4c7
jmp 0x14004ddd9