Function at 0x1400056cc
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.140030d40
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.1400186e0
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 0x14000575e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreatePipe_error___d_
mov edx, eax
call fcn.1400116b0
xor eax, eax
jmp 0x1400059ca
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, ebx
jne 0x140005783
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetHandleInformation_error___d_
jmp 0x140005750
lea rcx, [rsp + 0x68]
mov r8, rsi
xor edx, edx
call fcn.1400186e0
mov esi, 0x68
lea rcx, [rsp + 0xa0]
mov r8, rsi
xor edx, edx
call fcn.1400186e0
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.140016208
mov rcx, rax
mov edx, 0x1770
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, rsi
call fcn.140016da8
lea rdx, str._system32cmd.exe__C_for___I_in____s___do__echo___sI
mov r8, rdi
lea rcx, [rsi + rax*2]
call fcn.1400174a8
lea rcx, str.executing__s
mov rdx, rsi
call fcn.1400116b0
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 0x140005882
lea rcx, str.could_not_execute_cmd.exe
call fcn.1400116b0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
jmp 0x1400059b9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
mov r8d, 0x1770
lea rdx, [rsp + 0x110]
jmp 0x1400058c2
cmp dword [rsp + 0x54], ebx
je 0x1400058db
cmp edi, 0x1770
jae 0x1400058db
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 0x14000589f
lea r8, [rsp + 0x110]
lea rcx, str.finished_reading_from_cmd.exe__d___S_
mov edx, edi
call fcn.1400116b0
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.1400116b0
cmp dword [rsp + 0x50], 0x103
jne 0x140005944
lea rcx, str.Terminating_process
call fcn.1400116b0
mov rcx, qword [rsp + 0x68]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400059a9
cmp dword [rsp + 0x50], ebx
jne 0x1400059a9
cmp edi, 5
jbe 0x1400059a9
mov ecx, ebx
cmp edi, ebx
jbe 0x1400059a9
lea rax, [rsp + 0x110]
cmp byte [rax], 0xa
je 0x140005972
cmp byte [rax], 0xd
je 0x140005972
inc ecx
inc rax
cmp ecx, edi
jb 0x14000595d
jmp 0x1400059a9
movsxd rax, ecx
mov byte [rsp + rax + 0x110], bl
lea eax, [rcx + 1]
movsxd rcx, eax
call fcn.140016208
lea rdx, [rsp + 0x110]
mov rcx, rax
mov rbx, rax
call fcn.140016900
lea rcx, str.Using__S
mov rdx, rbx
call fcn.1400116b0
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.1400166c0
mov rax, rbx
mov rcx, qword [rsp + 0x1880]
xor rcx, rsp
call fcn.140016a50
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret