Function at 0x14000568c
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.14002d9b0
sub rsp, rax
mov rax, qword [0x14003b9c0]
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.1400169c0
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 0x14000571e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreatePipe_error___d_
mov edx, eax
call fcn.1400104ac
xor eax, eax
jmp 0x14000598a
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, ebx
jne 0x140005743
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetHandleInformation_error___d_
jmp 0x140005710
lea rcx, [rsp + 0x68]
mov r8, rsi
xor edx, edx
call fcn.1400169c0
mov esi, 0x68
lea rcx, [rsp + 0xa0]
mov r8, rsi
xor edx, edx
call fcn.1400169c0
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.1400144dc
mov rcx, rax
mov edx, 0x1770
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, rsi
call fcn.140015088
lea rdx, str._system32cmd.exe__C_for___I_in____s___do__echo___sI
mov r8, rdi
lea rcx, [rsi + rax*2]
call fcn.140015788
lea rcx, str.executing__s
mov rdx, rsi
call fcn.1400104ac
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 0x140005842
lea rcx, str.could_not_execute_cmd.exe
call fcn.1400104ac
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
jmp 0x140005979
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
mov r8d, 0x1770
lea rdx, [rsp + 0x110]
jmp 0x140005882
cmp dword [rsp + 0x54], ebx
je 0x14000589b
cmp edi, 0x1770
jae 0x14000589b
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 0x14000585f
lea r8, [rsp + 0x110]
lea rcx, str.finished_reading_from_cmd.exe__d___S_
mov edx, edi
call fcn.1400104ac
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.1400104ac
cmp dword [rsp + 0x50], 0x103
jne 0x140005904
lea rcx, str.Terminating_process
call fcn.1400104ac
mov rcx, qword [rsp + 0x68]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140005969
cmp dword [rsp + 0x50], ebx
jne 0x140005969
cmp edi, 5
jbe 0x140005969
mov ecx, ebx
cmp edi, ebx
jbe 0x140005969
lea rax, [rsp + 0x110]
cmp byte [rax], 0xa
je 0x140005932
cmp byte [rax], 0xd
je 0x140005932
inc ecx
inc rax
cmp ecx, edi
jb 0x14000591d
jmp 0x140005969
movsxd rax, ecx
mov byte [rsp + rax + 0x110], bl
lea eax, [rcx + 1]
movsxd rcx, eax
call fcn.1400144dc
lea rdx, [rsp + 0x110]
mov rcx, rax
mov rbx, rax
call fcn.140014be0
lea rcx, str.Using__S
mov rdx, rbx
call fcn.1400104ac
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.1400149a0
mov rax, rbx
mov rcx, qword [rsp + 0x1880]
xor rcx, rsp
call fcn.140014d30
lea r11, [rsp + 0x1890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret