Function at 0x1400cfd00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r13d, r13d
mov r14, r9
test byte [rcx + 8], 2
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
mov edi, r13d
je 0x1400cfd33
call fcn.1400cfc60
jmp 0x1400cff62
mov eax, dword [rbx + 0x28]
mov ecx, dword [rcx + 0x24]
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], r15
sub eax, ecx
jne 0x1400cfe91
mov r8d, dword [rbx + 0x2c]
test r8d, r8d
je 0x1400cfd72
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.1400cff80
test eax, eax
js 0x1400cff52
mov dword [rbx + 0x2c], r13d
mov eax, dword [rbx + 0x20]
cmp ebp, eax
jb 0x1400cfd93
mov r9, r14
mov qword [rbx + 0x24], r13
mov r8d, ebp
mov rdx, r12
mov rcx, rbx
call fcn.1400cfc60
jmp 0x1400cff52
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x1400cfdf4
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x50], rax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x90], r13
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
mov rdx, r13
cmovns rdx, qword [rsp + 0x90]
mov qword [rbx + 0x18], rdx
test rdx, rdx
jne 0x1400cfdf4
mov eax, 0xc0000017
jmp 0x1400cff52
mov ecx, dword [rbx + 0x20]
lea rax, [rbx + 0x10]
test byte [rbx + 8], 8
mov qword [rsp + 0x40], r13
cmove rax, r13
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x50]
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x1400cfe52
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1400cfe61
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1400cfe61
mov rsi, qword [rsp + 0x58]
add qword [rbx + 0x10], rsi
jmp 0x1400cfe68
mov esi, dword [rsp + 0x90]
test edi, edi
js 0x1400cff50
test esi, esi
jne 0x1400cfe85
test r14, r14
je 0x1400cff50
mov dword [r14], r13d
jmp 0x1400cff50
mov dword [rbx + 0x24], r13d
mov ecx, r13d
mov dword [rbx + 0x28], esi
jmp 0x1400cfe93
mov esi, eax
mov edx, ecx
cmp esi, ebp
mov rcx, r12
cmova esi, ebp
add rdx, qword [rbx + 0x18]
mov r8d, esi
call fcn.14010e700
add dword [rbx + 0x24], esi
cmp esi, ebp
jae 0x1400cff44
mov eax, dword [rbx + 0x20]
cmp dword [rbx + 0x28], eax
jne 0x1400cff44
test byte [rbx + 8], 8
lea rax, [r12 + rsi]
lea rcx, [rbx + 0x10]
cmove rcx, r13
xor r12d, r12d
mov qword [rsp + 0x40], r12
sub ebp, esi
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x1400cff24
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1400cff33
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1400cff33
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
jmp 0x1400cff3a
mov eax, dword [rsp + 0x90]
test edi, edi
js 0x1400cff50
add esi, eax
mov qword [rbx + 0x24], r12
test edi, edi
js 0x1400cff50
test r14, r14
je 0x1400cff50
mov dword [r14], esi
mov eax, edi
mov rsi, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret