Function at 0x180007810
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 0x180007cac
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 0x180007cac
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 0x180007c98
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 0x180007c4d
cmp r12, r13
jb 0x180007991
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 0x180007980
mov r12, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x58]
add r13, r12
lea r9, [0x180000000]
cmp r12, r13
jb 0x180007991
xor r8b, r8b
jmp 0x180007999
movzx r8d, byte [r12]
inc r12
movzx eax, r8b
movzx edx, byte [rax + r9 + 0x64f00]
movsxd rax, r15d
lea rax, [rax + rax*8]
add rax, rdx
movzx r15d, byte [rax + r9 + 0x64ea0]
mov byte [rsp + 0xf8], r15b
cmp r15b, 0xff
je 0x1800079d5
test r15b, r15b
jns 0x1800079d5
test rbp, rbp
je 0x180007c4d
movzx eax, byte [rax + r9 + 0x65000]
dec eax
cmp eax, 9
ja case.default.0x1800079f6
cdqe
mov ecx, dword [r9 + rax*4 + 0x7d40]
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.0x1800079f6
mov ecx, dword [rsp + 0x108]
mov eax, dword [rsp + 0x100]
cmp ecx, 0xff
jb 0x180007a3b
mov dword [rsp + 0x40], 1
jmp 0x180007c2f
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 0x180007c2f
mov ecx, dword [rsp + 0x108]
test ecx, ecx
je 0x180007a9d
cmp dword [rsp + 0x40], 0
jne 0x180007a9d
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.1800073c0
mov qword [rsp + 0x68], rax
jmp 0x180007c21
xor eax, eax
mov qword [rsp + 0x68], rax
jmp case.default.0x1800079f6
mov r14, qword [rsp + 0x80]
xor esi, esi
mov dword [rsp + 0x44], 0
mov byte [r14], r8b
inc r14
inc esi
jmp case.default.0x1800079f6
cmp esi, 0x1ff
jb 0x180007abb
mov dword [rsp + 0x44], 1
jmp case.default.0x1800079f6
test esi, esi
je 0x180007b08
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r14 - 1]
cmp byte [rcx + r9 + 0x64f00], 8
jne 0x180007b08
dec r14
add esi, 0xffffffff
jne 0x180007af0
mov rdi, qword [rsp + 0x88]
xor ebx, ebx
mov dword [rsp + 0x48], 0
jmp case.default.0x1800079f6
mov eax, dword [rsp + 0x100]
cmp ebx, 0xffff
jb 0x180007b3b
mov dword [rsp + 0x48], 1
jmp 0x180007c2f
mov byte [rdi], r8b
inc rdi
inc ebx
jmp 0x180007c2f
test ebx, ebx
je case.0x1800079f6.10
nop dword [rax]
movsx rax, byte [rdi - 1]
cmp byte [rax + r9 + 0x64f00], 8
jne case.0x1800079f6.10
dec rdi
add ebx, 0xffffffff
jne 0x180007b50
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x180007d1b
cmp dword [rsp + 0x44], 0
jne 0x180007d1b
cmp dword [rsp + 0x48], 0
jne 0x180007d1b
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.180007610
mov rbp, rax
test rax, rax
je 0x180007c1c
test ebx, ebx
je 0x180007ce4
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rax]
call fcn.1800059a0
mov r15, rax
test rax, rax
je 0x180007cb5
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x180007c04
mov rax, qword [rsp + 0xf0]
mov r8d, 1
mov rcx, qword [rax]
call fcn.180002740
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 0x180007c4d
mov rdx, qword [rsp + 0x70]
movzx r15d, r15b
btr r15d, 7
cmp r15d, 0xffffffff
jne 0x180007940
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 0x180007cac
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.0x1800079f6
mov eax, 1
mov dword [rsp + 0x100], eax
jmp 0x180007c2f
mov rdx, qword [rax + 0x40]
test rdx, rdx
je 0x180007d0b
mov rax, qword [rsp + 0xf0]
mov r8d, 1
mov rcx, qword [rax]
call fcn.180002740
mov qword [rbp + 0x40], 0
mov rax, qword [rsp + 0xf0]
inc dword [rax + 8]
jmp 0x180007c1c
mov eax, dword [rsp + 0x100]
lea r9, [0x180000000]
test rbp, rbp
mov ecx, 1
cmove eax, ecx
mov dword [rsp + 0x100], eax
jmp 0x180007c2f