Function at 0x140005690
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.140030b10
sub rsp, rax
mov rax, qword [0x14003f9c0]
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.1400184b0
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 0x140005722
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreatePipe_error___d_
mov edx, eax
call fcn.1400116ec
xor eax, eax
jmp 0x14000598e
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, ebx
jne 0x140005747
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetHandleInformation_error___d_
jmp 0x140005714
lea rcx, [rsp + 0x68]
mov r8, rsi
xor edx, edx
call fcn.1400184b0
mov esi, 0x68
lea rcx, [rsp + 0xa0]
mov r8, rsi
xor edx, edx
call fcn.1400184b0
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.140015fd4
mov rcx, rax
mov edx, 0x1770
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, rsi
call fcn.140016b78
lea rdx, str._system32cmd.exe__C_for___I_in____s___do__echo___sI
mov r8, rdi
lea rcx, [rsi + rax*2]
call fcn.140017278
lea rcx, str.executing__s
mov rdx, rsi
call fcn.1400116ec
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 0x140005846
lea rcx, str.could_not_execute_cmd.exe
call fcn.1400116ec
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
jmp 0x14000597d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
mov r8d, 0x1770
lea rdx, [rsp + 0x110]
jmp 0x140005886
cmp dword [rsp + 0x54], ebx
je 0x14000589f
cmp edi, 0x1770
jae 0x14000589f
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 0x140005863
lea r8, [rsp + 0x110]
lea rcx, str.finished_reading_from_cmd.exe__d___S_
mov edx, edi
call fcn.1400116ec
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.1400116ec
cmp dword [rsp + 0x50], 0x103
jne 0x140005908
lea rcx, str.Terminating_process
call fcn.1400116ec
mov rcx, qword [rsp + 0x68]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000596d
cmp dword [rsp + 0x50], ebx
jne 0x14000596d
cmp edi, 5
jbe 0x14000596d
mov ecx, ebx
cmp edi, ebx
jbe 0x14000596d
lea rax, [rsp + 0x110]
cmp byte [rax], 0xa
je 0x140005936
cmp byte [rax], 0xd
je 0x140005936
inc ecx
inc rax
cmp ecx, edi
jb 0x140005921
jmp 0x14000596d
movsxd rax, ecx
mov byte [rsp + rax + 0x110], bl
lea eax, [rcx + 1]
movsxd rcx, eax
call fcn.140015fd4
lea rdx, [rsp + 0x110]
mov rcx, rax
mov rbx, rax
call fcn.1400166d0
lea rcx, str.Using__S
mov rdx, rbx
call fcn.1400116ec
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.140016490
mov rax, rbx
mov rcx, qword [rsp + 0x1880]
xor rcx, rsp
call fcn.140016820
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret