Function at 0x1400056d4
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.140031150
sub rsp, rax
mov rax, qword [0x1400409c0]
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.140018af0
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 0x140005766
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreatePipe_error___d_
mov edx, eax
call fcn.140011a6c
xor eax, eax
jmp 0x1400059d2
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, ebx
jne 0x14000578b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetHandleInformation_error___d_
jmp 0x140005758
lea rcx, [rsp + 0x68]
mov r8, rsi
xor edx, edx
call fcn.140018af0
mov esi, 0x68
lea rcx, [rsp + 0xa0]
mov r8, rsi
xor edx, edx
call fcn.140018af0
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.140016610
mov rcx, rax
mov edx, 0x1770
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, rsi
call fcn.1400171b8
lea rdx, str._system32cmd.exe__C_for___I_in____s___do__echo___sI
mov r8, rdi
lea rcx, [rsi + rax*2]
call fcn.1400178b8
lea rcx, str.executing__s
mov rdx, rsi
call fcn.140011a6c
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 0x14000588a
lea rcx, str.could_not_execute_cmd.exe
call fcn.140011a6c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
jmp 0x1400059c1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
mov r8d, 0x1770
lea rdx, [rsp + 0x110]
jmp 0x1400058ca
cmp dword [rsp + 0x54], ebx
je 0x1400058e3
cmp edi, 0x1770
jae 0x1400058e3
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 0x1400058a7
lea r8, [rsp + 0x110]
lea rcx, str.finished_reading_from_cmd.exe__d___S_
mov edx, edi
call fcn.140011a6c
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.140011a6c
cmp dword [rsp + 0x50], 0x103
jne 0x14000594c
lea rcx, str.Terminating_process
call fcn.140011a6c
mov rcx, qword [rsp + 0x68]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400059b1
cmp dword [rsp + 0x50], ebx
jne 0x1400059b1
cmp edi, 5
jbe 0x1400059b1
mov ecx, ebx
cmp edi, ebx
jbe 0x1400059b1
lea rax, [rsp + 0x110]
cmp byte [rax], 0xa
je 0x14000597a
cmp byte [rax], 0xd
je 0x14000597a
inc ecx
inc rax
cmp ecx, edi
jb 0x140005965
jmp 0x1400059b1
movsxd rax, ecx
mov byte [rsp + rax + 0x110], bl
lea eax, [rcx + 1]
movsxd rcx, eax
call fcn.140016610
lea rdx, [rsp + 0x110]
mov rcx, rax
mov rbx, rax
call fcn.140016d10
lea rcx, str.Using__S
mov rdx, rbx
call fcn.140011a6c
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.140016ad0
mov rax, rbx
mov rcx, qword [rsp + 0x1880]
xor rcx, rsp
call fcn.140016e60
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret