Function at 0x140006030
Capabilities:
Create pipe
Create process on windows
Get common file path
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1890
call fcn.14003ad30
sub rsp, rax
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x1880], rax
mov rdi, rcx
mov esi, 0x18
lea rcx, [rsp + 0x80]
mov r8, rsi
xor edx, edx
call fcn.14001e190
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x90], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor ebx, ebx
cmp eax, ebx
jne 0x1400060c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreatePipe_error___d_
mov edx, eax
call fcn.140016394
xor eax, eax
jmp 0x14000632e
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, ebx
jne 0x1400060e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetHandleInformation_error___d_
jmp 0x1400060b4
lea rcx, [rsp + 0x68]
mov r8, rsi
xor edx, edx
call fcn.14001e190
mov esi, 0x68
lea rcx, [rsp + 0xa0]
mov r8, rsi
xor edx, edx
call fcn.14001e190
mov rax, qword [rsp + 0x60]
bts dword [rsp + 0xdc], 8
mov ecx, 0x2ee0
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0xa0], esi
mov qword [rsp + 0xf0], rbx
call fcn.14001b160
mov rcx, rax
mov edx, 0x1770
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, rsi
call fcn.14001c868
lea rdx, str._system32cmd.exe__C_for___I_in____s___do__echo___sI
mov r8, rdi
lea rcx, [rsi + rax*2]
call fcn.14001cf68
lea rcx, str.executing__s
mov rdx, rsi
call fcn.140016394
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x1400061e6
lea rcx, str.could_not_execute_cmd.exe
call fcn.140016394
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
jmp 0x14000631d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
mov r8d, 0x1770
lea rdx, [rsp + 0x110]
jmp 0x140006226
cmp dword [rsp + 0x54], ebx
je 0x14000623f
cmp edi, 0x1770
jae 0x14000623f
add edi, dword [rsp + 0x54]
mov r8d, 0x1770
lea rdx, [rsp + rdi + 0x110]
sub r8d, edi
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x140006203
lea r8, [rsp + 0x110]
lea rcx, str.finished_reading_from_cmd.exe__d___S_
mov edx, edi
call fcn.140016394
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x50]
lea rcx, str.Exit_Code__d
call fcn.140016394
cmp dword [rsp + 0x50], 0x103
jne 0x1400062a8
lea rcx, str.Terminating_process
call fcn.140016394
mov rcx, qword [rsp + 0x68]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000630d
cmp dword [rsp + 0x50], ebx
jne 0x14000630d
cmp edi, 5
jbe 0x14000630d
mov ecx, ebx
cmp edi, ebx
jbe 0x14000630d
lea rax, [rsp + 0x110]
cmp byte [rax], 0xa
je 0x1400062d6
cmp byte [rax], 0xd
je 0x1400062d6
inc ecx
inc rax
cmp ecx, edi
jb 0x1400062c1
jmp 0x14000630d
movsxd rax, ecx
mov byte [rsp + rax + 0x110], bl
lea eax, [rcx + 1]
movsxd rcx, eax
call fcn.14001b160
lea rdx, [rsp + 0x110]
mov rcx, rax
mov rbx, rax
call fcn.14001c3c0
lea rcx, str.Using__S
mov rdx, rbx
call fcn.140016394
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14001c17c
mov rax, rbx
mov rcx, qword [rsp + 0x1880]
xor rcx, rsp
call fcn.14001c510
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret