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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x570
mov rdi, rsp
mov ecx, 0x15c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x580]
mov qword [rsp + 0x550], 0xfffffffffffffffe
mov rax, qword [0x1401bb8b8]
xor rax, rsp
mov qword [rsp + 0x568], rax
cmp qword [rsp + 0x580], 0
je 0x140038339
mov qword [rsp + 0x558], 1
jmp 0x140038345
mov qword [rsp + 0x558], 0
mov r9d, 0xe21
lea r8, [0x1401542e0]
lea rdx, str.hPipe___NULL
mov rcx, qword [rsp + 0x558]
call fcn.14000f120
mov rcx, qword [rsp + 0x590]
call fcn.14000e7a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffff
jle 0x140038443
mov rcx, qword [rsp + 0x590]
call fcn.140002680
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx - 0xffff]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x38], rax
ja 0x1400383e9
mov dx, 0xa
mov rcx, qword [rsp + 0x38]
call fcn.1400624a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400383d9
jmp 0x1400383e9
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400383b0
mov rcx, qword [rsp + 0x590]
call fcn.140002680
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jg 0x14003841d
mov rcx, qword [rsp + 0x590]
call fcn.140012df0
jmp 0x140038431
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x590]
call fcn.14003ce10
mov rcx, qword [rsp + 0x590]
call fcn.14000e7a0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x590]
call fcn.140039cf0
lea rcx, [rsp + 0x488]
call fcn.14003b920
nop
mov qword [rsp + 0x4c8], 1
xor eax, eax
cmp eax, 1
je 0x140038541
mov dword [rsp + 0x4d4], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x4d4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x580]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400384c1
mov qword [rsp + 0x4c8], 0
jmp 0x140038541
cmp dword [rsp + 0x4d4], 0
jne 0x1400384cd
jmp 0x140038541
mov dword [rsp + 0x4d4], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4d4]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x580]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140038514
mov qword [rsp + 0x4c8], 0
jmp 0x140038541
cmp dword [rsp + 0x4d4], 0
jne 0x140038520
jmp 0x140038541
mov eax, dword [rsp + 0x4d4]
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x488]
call fcn.14003c810
jmp 0x14003846a
lea rcx, [rsp + 0x488]
call fcn.14000eb00
test rax, rax
jne 0x140038677
xor edx, edx
lea rcx, [rsp + 0x488]
call fcn.1400195d0
lea rcx, [rsp + 0x4f8]
call fcn.14003b920
nop
mov eax, dword [rsp + 0x588]
mov dword [rsp + 0x560], eax
cmp dword [rsp + 0x560], 0
je 0x140038598
cmp dword [rsp + 0x560], 1
je 0x1400385c2
jmp 0x140038605
lea rcx, [rsp + 0x488]
call fcn.140002680
xor r8d, r8d
lea rdx, [rsp + 0x4f8]
mov rcx, rax
call fcn.14002b4b0
mov qword [rsp + 0x538], rax
jmp 0x14003862f
lea rcx, [rsp + 0x488]
call fcn.140002680
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x4f8]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call fcn.14002ac30
mov qword [rsp + 0x538], rax
jmp 0x14003862f
mov r9d, 0xe74
lea r8, [0x140154340]
lea rdx, [0x1401515d8]
xor ecx, ecx
call fcn.14000f120
lea rax, [0x140151804]
mov qword [rsp + 0x538], rax
mov rcx, qword [rsp + 0x538]
call fcn.14000f390
test rax, rax
jne 0x14003866a
mov rcx, qword [rsp + 0x538]
call fcn.14007e520
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x590]
call fcn.14003c810
nop
lea rcx, [rsp + 0x4f8]
call fcn.140001df0
cmp qword [rsp + 0x598], 0
je 0x14003869f
mov rcx, qword [rsp + 0x590]
call fcn.14000e7a0
sub rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x598]
mov qword [rcx], rax
xor edx, edx
mov rcx, qword [rsp + 0x590]
call fcn.140039570
mov rax, qword [rsp + 0x4c8]
mov qword [rsp + 0x548], rax
lea rcx, [rsp + 0x488]
call fcn.140001df0
mov rax, qword [rsp + 0x548]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401599f8]
call fcn.14005d920
mov rax, rdi
mov rcx, qword [rsp + 0x568]
xor rcx, rsp
call fcn.14005db80
add rsp, 0x570
pop rdi
ret