Function at 0x14008f2b0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov esi, r9d
mov r15, r8
mov r14, rdx
mov qword [rbp + 0x98], rdx
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov ecx, 0x18
mov eax, dword [rcx + rdi]
mov ebx, 0x10
test al, 1
jne 0x14008f327
or eax, 1
mov dword [rcx + rdi], eax
xor eax, eax
mov qword [rbx + rdi], rax
call fcn.1400ad5c0
mov qword [rbx + rdi], rax
lea r8, str.Windows::ProcessHelper::GetProcessOutput
mov rdx, qword [rbx + rdi]
lea rcx, [rbp + 0xa0]
call fcn.140016d60
nop
xor r12d, r12d
mov dword [rbp + 0x40], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14008f79c
mov eax, dword [rbp + 0x98]
test eax, eax
jne 0x14008f425
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xb0]
call fcn.1400d9a00
call fcn.1400ad640
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xb8], r12d
lea rcx, [rbp + 0xc0]
call fcn.14000c6b0
nop
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rbp + 0xb8], eax
setl byte [rbp + 0x1b8]
jl 0x14008f3ef
lea rdx, str.No_output_available_from_process
lea rcx, [rbp + 0xb0]
call fcn.140022220
mov byte [rbp + 0x1b8], 1
lea rcx, [rbp + 0xb0]
call fcn.1400091b0
mov qword [r14], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 7
mov word [r14], r12w
xor r8d, r8d
lea rdx, [0x14013528c]
mov rcx, r14
call fcn.14000d1d0
jmp 0x14008f766
cmp eax, esi
cmovb esi, eax
xorps xmm0, xmm0
mov ebx, esi
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
test esi, esi
je 0x14008f472
lfence
mov ecx, ebx
call fcn.140010170
mov qword [rbp + 0x80], rax
lea rdi, [rax + rsi]
mov qword [rbp + 0x90], rdi
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.1400d9a00
mov qword [rbp + 0x88], rdi
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x40]
mov r8d, esi
mov rdx, qword [rbp + 0x80]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008f7e1
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x1c0]
call fcn.1400d9a00
call fcn.1400ad640
mov qword [rbp + 0x1c0], rax
mov dword [rbp + 0x1c8], r12d
lea rcx, [rbp + 0x1d0]
call fcn.14000c6b0
nop
mov rcx, qword [rbp + 0x1c0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400507c6.0]
cmp dword [rbp + 0x1c8], eax
setl byte [rbp + 0x2c8]
jl 0x14008f522
lea rdx, str.Read
lea rcx, [rbp + 0x1c0]
call fcn.1400731b0
lea rdx, [rbp + 0x40]
mov rcx, rax
call fcn.14001c260
lea rdx, str._from_process_output_buffer.
mov rcx, rax
call fcn.140022520
mov byte [rbp + 0x2c8], 1
lea rcx, [rbp + 0x1c0]
call fcn.1400091b0
xorps xmm0, xmm0
mov edi, dword [rbp + 0x40]
movdqu xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r12
test rdi, rdi
je 0x14008f5b1
add rdi, rdi
cmp rdi, 0x1000
jb 0x14008f57d
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14008f826
lfence
call fcn.1400d4898
mov rcx, rax
test rax, rax
je 0x14008f871
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14008f592
test rdi, rdi
je 0x14008f58f
lfence
mov rcx, rdi
call fcn.1400d4898
jmp 0x14008f592
mov rax, r12
mov qword [rbp + 0x48], rax
lea r15, [rax + rdi]
mov qword [rbp + 0x58], r15
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400d9a00
mov qword [rbp + 0x50], r15
jmp 0x14008f5b5
mov r15, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x48]
sub r15, rsi
sar r15, 1
mov rbx, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x80]
sub rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetACP]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov r8, rdi
mov edx, 1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
test eax, eax
je 0x14008f82c
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
mov r8, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x60]
call fcn.14008fab0
nop
mov rcx, rdi
mov r8, qword [rbp + 0x70]
cmp rdi, r8
ja 0x14008f64a
lea rax, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rax, qword [rbp + 0x60]
mov qword [rbp + 0x70], rcx
mov word [rax + rdi*2], r12w
jmp 0x14008f6a9
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp + 0x78]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14008f68e
mov qword [rbp + 0x70], rcx
lea r9, [rbp + 0x60]
cmp rdi, 8
cmovae r9, qword [rbp + 0x60]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14008f683
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], r12w
jmp 0x14008f6a9
lfence
mov word [rsp + 0x20], r12w
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.14000fea0
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x70]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14008f718
mov rax, qword [rbp + 0x58]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f707
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008f871
call fcn.1400d45f0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r12
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14008f766
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f74f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008f796
call fcn.1400d45f0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
lea rcx, [rbp + 0xa0]
call fcn.140016f70
mov rax, r14
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400d45d0
add rsp, 0x3e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400e6180
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400155b0
nop
mov r8, rax
lea rdx, str.Failed_to_peek_named_pipe._Error:
lea rcx, [rbp - 0x60]
call fcn.140016540
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rsp + 0x38]
call fcn.1400d9ba0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.1400155b0
nop
mov r8, rax
lea rdx, str.Failed_to_read_file._Error:
lea rcx, [rbp - 0x20]
call fcn.140016540
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
nop
call fcn.140007740
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.1400155b0
nop
mov r8, rax
lea rdx, str.Failed_to_convert_to_wide_char._Error:
lea rcx, [rbp + 0x20]
call fcn.140016540
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rsp + 0x68]
call fcn.1400d9ba0
nop
call fcn.1400e6180
int3