Function at 0x1800076d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0xe0
mov ebp, dword [rcx + 0xc]
mov rcx, qword [rcx + 0x10]
shr ebp, 1
and ebp, 1
test rcx, rcx
je 0x180007b6c
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x90], rax
cmp rax, 0xffffffffffffffff
je 0x180007b6c
xor ecx, ecx
mov edx, 0x11300
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x70], rax
mov rdx, rax
test rax, rax
je 0x180007b58
mov qword [rsp + 0xd8], rbx
xor r9d, r9d
mov qword [rsp + 0xd0], rsi
xor esi, esi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], r13
lea r13, [rax + 0x1000]
xor eax, eax
mov qword [rsp + 0x68], r9
lea r8, [r13 + 0x100]
mov qword [rsp + 0xb0], r14
lea r9, [r8 + 0x200]
mov qword [rsp + 0xa8], r15
mov rcx, r13
mov qword [rsp + 0x88], r9
mov rdi, r9
mov qword [rsp + 0x78], rcx
lea r9, [0x180000000]
mov qword [rsp + 0x80], r8
mov r12, r13
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x108], eax
lea r15d, [rax + 2]
mov qword [rsp + 0x60], rcx
mov r14, r8
mov dword [rsp + 0x44], eax
xor ebx, ebx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x100], eax
mov qword [rsp + 0x50], rbp
test eax, eax
jne 0x180007b0d
cmp r12, r13
jb 0x180007851
mov rcx, qword [rsp + 0x90]
lea r9, [rsp + 0x58]
mov r8d, 0x1000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180007840
mov r12, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x58]
add r13, r12
lea r9, [0x180000000]
cmp r12, r13
jb 0x180007851
xor r8b, r8b
jmp 0x180007859
movzx r8d, byte [r12]
inc r12
movzx eax, r8b
movzx edx, byte [rax + r9 + 0x65690]
movsxd rax, r15d
lea rax, [rax + rax*8]
add rax, rdx
movzx r15d, byte [rax + r9 + 0x65630]
mov byte [rsp + 0xf8], r15b
cmp r15b, 0xff
je 0x180007895
test r15b, r15b
jns 0x180007895
test rbp, rbp
je 0x180007b0d
movzx eax, byte [rax + r9 + 0x65790]
dec eax
cmp eax, 9
ja case.default.0x1800078b6
cdqe
mov ecx, dword [r9 + rax*4 + 0x7c00]
add rcx, r9
jmp rcx
mov rcx, qword [rsp + 0x78]
xor eax, eax
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x108], eax
mov dword [rsp + 0x40], 0
jmp case.default.0x1800078b6
mov ecx, dword [rsp + 0x108]
mov eax, dword [rsp + 0x100]
cmp ecx, 0xff
jb 0x1800078fb
mov dword [rsp + 0x40], 1
jmp 0x180007aef
mov r9, qword [rsp + 0x60]
mov byte [r9], r8b
inc r9
inc ecx
mov qword [rsp + 0x60], r9
mov dword [rsp + 0x108], ecx
lea r9, [0x180000000]
jmp 0x180007aef
mov ecx, dword [rsp + 0x108]
test ecx, ecx
je 0x18000795d
cmp dword [rsp + 0x40], 0
jne 0x18000795d
mov eax, ecx
mov r8d, 1
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
mov byte [rax + rcx], 0
mov rcx, qword [rsp + 0xf0]
call fcn.180007280
mov qword [rsp + 0x68], rax
jmp 0x180007ae1
xor eax, eax
mov qword [rsp + 0x68], rax
jmp case.default.0x1800078b6
mov r14, qword [rsp + 0x80]
xor esi, esi
mov dword [rsp + 0x44], 0
mov byte [r14], r8b
inc r14
inc esi
jmp case.default.0x1800078b6
cmp esi, 0x1ff
jb 0x18000797b
mov dword [rsp + 0x44], 1
jmp case.default.0x1800078b6
test esi, esi
je 0x1800079c8
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r14 - 1]
cmp byte [rcx + r9 + 0x65690], 8
jne 0x1800079c8
dec r14
add esi, 0xffffffff
jne 0x1800079b0
mov rdi, qword [rsp + 0x88]
xor ebx, ebx
mov dword [rsp + 0x48], 0
jmp case.default.0x1800078b6
mov eax, dword [rsp + 0x100]
cmp ebx, 0xffff
jb 0x1800079fb
mov dword [rsp + 0x48], 1
jmp 0x180007aef
mov byte [rdi], r8b
inc rdi
inc ebx
jmp 0x180007aef
test ebx, ebx
je case.0x1800078b6.10
nop dword [rax]
movsx rax, byte [rdi - 1]
cmp byte [rax + r9 + 0x65690], 8
jne case.0x1800078b6.10
dec rdi
add ebx, 0xffffffff
jne 0x180007a10
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180007bdb
cmp dword [rsp + 0x44], 0
jne 0x180007bdb
cmp dword [rsp + 0x48], 0
jne 0x180007bdb
mov rcx, qword [rsp + 0x80]
mov r8d, 1
mov rdx, rcx
mov byte [rsi + rcx], 0
mov byte [rbx + rcx + 0x200], 0
mov rcx, r9
call fcn.1800074d0
mov rbp, rax
test rax, rax
je 0x180007adc
test ebx, ebx
je 0x180007ba4
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rax]
call fcn.1800043b0
mov r15, rax
test rax, rax
je 0x180007b75
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x180007ac4
mov rax, qword [rsp + 0xf0]
mov r8d, 1
mov rcx, qword [rax]
call fcn.1800026f0
mov rax, qword [rsp + 0xf0]
mov qword [rbp + 0x40], r15
movzx r15d, byte [rsp + 0xf8]
inc dword [rax + 8]
mov rbp, qword [rsp + 0x50]
lea r9, [0x180000000]
mov eax, dword [rsp + 0x100]
cmp r15b, 0xff
je 0x180007b0d
mov rdx, qword [rsp + 0x70]
movzx r15d, r15b
btr r15d, 7
cmp r15d, 0xffffffff
jne 0x180007800
mov rcx, qword [rsp + 0x70]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x90]
cmp rcx, 0xffffffffffffffff
je 0x180007b6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe0
pop rbp
ret
mov rbp, qword [rsp + 0x50]
lea r9, [0x180000000]
movzx r15d, byte [rsp + 0xf8]
test rbp, rbp
jne case.default.0x1800078b6
mov eax, 1
mov dword [rsp + 0x100], eax
jmp 0x180007aef
mov rdx, qword [rax + 0x40]
test rdx, rdx
je 0x180007bcb
mov rax, qword [rsp + 0xf0]
mov r8d, 1
mov rcx, qword [rax]
call fcn.1800026f0
mov qword [rbp + 0x40], 0
mov rax, qword [rsp + 0xf0]
inc dword [rax + 8]
jmp 0x180007adc
mov eax, dword [rsp + 0x100]
lea r9, [0x180000000]
test rbp, rbp
mov ecx, 1
cmove eax, ecx
mov dword [rsp + 0x100], eax
jmp 0x180007aef