Function at 0x180084e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov rdi, rcx
mov rcx, rbp
xor edx, edx
mov rbx, r8
call fcn.180083fa0
mov qword [rdi + 8], rbp
inc dword [rbp + 4]
test byte [rbp + 0x44], 0x10
jne 0x18008510b
lea r8, [rsp + 0x98]
mov rcx, rbp
lea rdx, [rsp + 0x88]
call fcn.180084080
mov esi, eax
test eax, eax
js 0x18008511c
mov rax, qword [rbp + 0x60]
test rax, rax
jne 0x180084e78
cmp qword [rbp + 0x38], rax
jne 0x180084e78
mov ecx, 0x8000ffff
jmp 0x1800850d3
cmp dword [rbp + 0x40], 0x10
jb 0x1800850ce
test rax, rax
je 0x1800850ab
test byte [rbp + 8], 2
je 0x180084e9b
mov ecx, 0x8000ffff
jmp 0x1800850d3
xor edx, edx
mov eax, 0xf
div dword [0x180132548]
xor r13d, r13d
xor ebx, ebx
mov r12d, eax
test eax, eax
js 0x180085087
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 0x180084f10
xor edx, edx
test eax, eax
je 0x180084ef9
mov rax, 0xffffffffffffffff
div r8
cmp rax, 1
jb 0x180085154
mov rdx, r8
jmp 0x180084efc
xor r8d, r8d
mov rax, rcx
not rax
cmp rax, r8
jb 0x180085154
add rcx, rdx
jmp 0x180084f13
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 0x180084f44
cmp ebx, r12d
jg 0x18008507f
inc ebx
jmp 0x180084ec0
cmp ebx, r12d
jg 0x18008507f
mov esi, ebx
mov r14d, ebx
imul esi, dword [0x180132548]
xor edi, edi
nop dword [rax + rax]
mov rcx, qword [rbp + 0x60]
mov edx, ebx
call fcn.180084cb0
test eax, eax
jne 0x180084f8a
mov ecx, dword [0x180132548]
mov eax, edi
not eax
cmp eax, ecx
jb 0x18008508d
add edi, ecx
inc ebx
cmp ebx, r12d
jle 0x180084f60
mov rcx, qword [rbp + 0x38]
mov r9d, 4
mov r15d, esi
mov r8d, 0x1000
add rcx, r15
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x18008509c
mov edx, esi
mov rcx, rbp
call fcn.180083fa0
mov esi, eax
test eax, eax
js 0x18008511c
mov rdx, qword [rbp + 0x38]
mov eax, dword [rbp + 0x48]
add rdx, r15
cmp eax, 1
je 0x180084ff7
cmp eax, 6
je 0x180084ff7
mov rcx, qword [rbp + 0x10]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x180102408]
jmp 0x18008502e
mov rcx, qword [rbp + 0x18]
lea r9, [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180085038
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180085027
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.18008dee0
mov esi, eax
test eax, eax
js 0x18008511c
cmp r14d, ebx
jge 0x180085076
nop dword [rax]
mov rcx, qword [rbp + 0x60]
mov dl, 1
call fcn.180026630
mov edx, r14d
mov qword [rsp + 0x30], rax
sar edx, 3
lea rcx, [rsp + 0x30]
call fcn.180084c40
mov ecx, r14d
inc r14d
and ecx, 7
movzx edx, byte [rax]
bts edx, ecx
mov byte [rax], dl
cmp r14d, ebx
jl 0x180085040
cmp ebx, r12d
jle 0x180084ec0
mov rdi, qword [rsp + 0x80]
mov r13, qword [rbp + 0x38]
jmp 0x1800850e6
mov rdi, qword [rsp + 0x80]
mov ecx, 0x80070057
jmp 0x1800850db
mov rdi, qword [rsp + 0x80]
mov ecx, 0x8007000e
jmp 0x1800850db
cmp qword [rbp + 0x20], 0
jne 0x180085087
cmp qword [rbp + 0x28], 0
jne 0x180085087
mov eax, dword [rbp + 0x48]
sub eax, 4
cmp eax, 2
jbe 0x180085087
xor r13d, r13d
mov ecx, 0x8000ffff
jmp 0x1800850db
mov ecx, 0x80070057
mov r13, qword [rsp + 0x88]
call fcn.18008dee0
mov esi, eax
test eax, eax
js 0x18008511c
mov edx, dword [rsp + 0x98]
mov rcx, r13
call fcn.18005ccc0
mov esi, eax
test eax, eax
js 0x18008511c
mov rcx, rdi
call fcn.180085e00
mov esi, eax
test eax, eax
js 0x18008511c
jmp 0x18008513a
mov rdx, rbx
mov rcx, rdi
call fcn.180085b10
mov esi, eax
test eax, eax
jns 0x18008513a
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18008513a
call fcn.180080660
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x90]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80131c36
call fcn.180025310
int3