Function at 0x1800843a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x10], edx
push rbx
push rbp
sub rsp, 0x68
mov r10, qword [rcx + 0x60]
mov rbp, rcx
mov ebx, edx
test r10, r10
jne 0x1800843d3
cmp qword [rcx + 0x38], r10
jne 0x1800843d3
mov ecx, 0x8000ffff
add rsp, 0x68
pop rbp
pop rbx
jmp fcn.18008dee0
mov eax, ebx
not eax
cmp eax, r8d
jb 0x18008468b
mov ecx, dword [rcx + 0x40]
lea eax, [rbx + r8]
cmp eax, ecx
ja 0x18008468b
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
test r10, r10
je 0x18008464c
test byte [rbp + 8], 2
jne 0x18008466b
dec eax
xor edx, edx
div dword [0x180132548]
xor edx, edx
xor r13d, r13d
mov r12d, eax
mov qword [r9], r13
mov eax, ebx
div dword [0x180132548]
mov ebx, eax
cmp eax, r12d
jg 0x180084608
nop dword [rax + rax]
mov rcx, qword [rbp + 0x60]
mov dl, 1
call fcn.180026630
mov rcx, rax
mov eax, ebx
sar eax, 3
movsxd r8, eax
test eax, eax
js 0x18008449f
mov rdx, r13
je 0x180084488
mov rax, 0xffffffffffffffff
div r8
cmp rax, 1
jb 0x18008469b
mov rdx, r8
jmp 0x18008448b
mov r8, r13
mov rax, rcx
not rax
cmp rax, r8
jb 0x18008469b
add rcx, rdx
jmp 0x1800844a2
add rcx, r8
mov r9b, 1
mov edx, 1
movzx r8d, r9b
call fcn.180025540
mov ecx, ebx
mov edx, 1
and ecx, 7
shl edx, cl
test byte [rax], dl
je 0x1800844d0
cmp ebx, r12d
jg 0x180084600
inc ebx
jmp 0x180084450
cmp ebx, r12d
jg 0x180084600
mov r14d, ebx
mov edi, r13d
imul r14d, dword [0x180132548]
mov esi, ebx
nop dword [rax]
mov rcx, qword [rbp + 0x60]
mov edx, ebx
call fcn.180084cb0
test eax, eax
jne 0x18008451a
mov ecx, dword [0x180132548]
mov eax, edi
not eax
cmp eax, ecx
jb 0x180084676
add edi, ecx
inc ebx
cmp ebx, r12d
jle 0x1800844f0
mov rcx, qword [rbp + 0x38]
mov r9d, 4
mov r15d, r14d
mov r8d, 0x1000
add rcx, r15
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x18008461a
mov edx, r14d
mov rcx, rbp
call fcn.180083fa0
test eax, eax
js 0x180084624
mov rdx, qword [rbp + 0x38]
mov eax, dword [rbp + 0x48]
add rdx, r15
cmp eax, 1
je 0x180084586
cmp eax, 6
je 0x180084586
mov rcx, qword [rbp + 0x10]
lea r9, [rsp + 0x80]
mov r8d, edi
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x180102408]
jmp 0x1800845bd
mov rcx, qword [rbp + 0x18]
lea r9, [rsp + 0x80]
mov r8d, edi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800845c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1800845b6
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.18008dee0
test eax, eax
js 0x180084624
cmp esi, ebx
jge 0x1800845f7
mov rcx, qword [rbp + 0x60]
mov dl, 1
call fcn.180026630
mov edx, esi
mov qword [rsp + 0x30], rax
sar edx, 3
lea rcx, [rsp + 0x30]
call fcn.180084c40
mov ecx, esi
inc esi
and ecx, 7
movzx edx, byte [rax]
bts edx, ecx
mov byte [rax], dl
cmp esi, ebx
jl 0x1800845c5
cmp ebx, r12d
jle 0x180084450
mov r9, qword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
add rax, qword [rbp + 0x38]
mov qword [r9], rax
xor eax, eax
jmp 0x180084624
mov ecx, 0x8007000e
call fcn.18008dee0
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
add rsp, 0x68
pop rbp
pop rbx
ret
cmp qword [rbp + 0x20], 0
jne 0x180084672
cmp qword [rbp + 0x28], 0
jne 0x180084672
mov eax, dword [rbp + 0x48]
sub eax, 4
cmp eax, 2
jbe 0x180084672
xor r13d, r13d
mov qword [r9], r13
mov ecx, 0x8000ffff
jmp 0x18008461f
cmp ebx, ecx
jbe 0x18008467d
mov ecx, 0x80070057
jmp 0x18008461f
mov rax, rbx
add rax, qword [rbp + 0x38]
mov qword [r9], rax
xor eax, eax
jmp 0x180084624
mov ecx, 0x80070057
add rsp, 0x68
pop rbp
pop rbx
jmp fcn.18008dee0
mov ecx, 0x80131c36
call fcn.180025310
int3