Function at 0x1800053b0
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 0x180005857
xor eax, eax
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x180005857
xor ecx, ecx
mov edx, 0x11300
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180005843
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xc0], r12
xor r9d, r9d
mov qword [rsp + 0xb8], r13
lea r13, [rax + 0x1000]
xor eax, eax
mov qword [rsp + 0x60], r9
lea r8, [r13 + 0x100]
mov rcx, r13
mov qword [rsp + 0xb0], r14
lea r9, [r8 + 0x200]
xor esi, esi
xor ebx, ebx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x58], rcx
movsxd rbp, ebp
xor ecx, ecx
mov qword [rsp + 0x90], r9
mov rdi, r9
mov qword [rsp + 0xa8], r15
mov r12, r13
mov qword [rsp + 0x88], r8
lea r9, [0x180000000]
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x108], eax
mov dword [rsp + 0x40], eax
mov r14, r8
mov dword [rsp + 0x44], eax
lea r15d, [rax + 2]
mov dword [rsp + 0x100], ecx
mov qword [rsp + 0x50], rbp
test ecx, ecx
jne 0x1800057f8
cmp r12, r13
jb 0x180005536
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x68]
mov r8d, 0x1000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180005525
mov r12, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x68]
add r13, r12
lea r9, [0x180000000]
cmp r12, r13
jb 0x180005536
xor r8b, r8b
jmp 0x18000553e
movzx r8d, byte [r12]
inc r12
movzx eax, r8b
movzx edx, byte [rax + r9 + 0x54110]
movsxd rax, r15d
lea rcx, [rax + rax*8]
mov eax, edx
add rdx, rcx
movzx eax, byte [rdx + r9 + 0x540b0]
mov byte [rsp + 0xf8], al
cmp al, 0xff
je 0x180005578
test al, al
jns 0x180005578
test rbp, rbp
je 0x1800057f8
movzx eax, byte [rdx + r9 + 0x54210]
dec eax
cmp eax, 9
ja case.default.0x180005599
cdqe
mov ecx, dword [r9 + rax*4 + 0x58e4]
add rcx, r9
jmp rcx
mov rcx, qword [rsp + 0x78]
xor eax, eax
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x108], eax
jmp case.default.0x180005599
mov r9d, dword [rsp + 0x108]
mov ecx, dword [rsp + 0x100]
cmp r9d, 0xff
jb 0x1800055e8
mov eax, 1
lea r9, [0x180000000]
mov dword [rsp + 0x48], eax
jmp 0x1800057d4
mov r10, qword [rsp + 0x58]
inc r10
inc r9d
mov byte [r10 - 1], r8b
mov dword [rsp + 0x108], r9d
lea r9, [0x180000000]
mov qword [rsp + 0x58], r10
jmp 0x1800057d4
mov r9d, dword [rsp + 0x108]
test r9d, r9d
je 0x18000564e
cmp dword [rsp + 0x48], 0
jne 0x18000564e
mov rcx, qword [rsp + 0x78]
mov r8d, 1
mov byte [r9 + rcx], 0
mov rdx, rcx
mov rcx, qword [rsp + 0xf0]
call fcn.180004f60
mov qword [rsp + 0x60], rax
jmp 0x1800057c6
xor eax, eax
mov qword [rsp + 0x60], rax
jmp 0x1800057c6
mov r14, qword [rsp + 0x88]
mov dword [rsp + 0x40], 0
xor esi, esi
mov byte [r14], r8b
inc r14
inc esi
jmp case.default.0x180005599
cmp esi, 0x1ff
jb 0x18000566c
mov eax, 1
mov dword [rsp + 0x40], eax
jmp case.default.0x180005599
test esi, esi
je 0x1800056ae
movsx rcx, byte [r14 - 1]
lea rax, [r14 - 1]
cmp byte [rcx + r9 + 0x54110], 8
jne 0x1800056ae
mov r14, rax
dec esi
jne 0x180005693
mov rdi, qword [rsp + 0x90]
mov dword [rsp + 0x44], 0
xor ebx, ebx
jmp case.default.0x180005599
mov ecx, dword [rsp + 0x100]
cmp ebx, 0xffff
jb 0x1800056e2
mov eax, 1
mov dword [rsp + 0x44], eax
jmp 0x1800057d4
mov byte [rdi], r8b
inc rdi
inc ebx
jmp 0x1800057d4
test ebx, ebx
je case.0x180005599.10
nop dword [rax]
nop word [rax + rax]
movsx rax, byte [rdi - 1]
cmp byte [rax + r9 + 0x54110], 8
jne case.0x180005599.10
dec rdi
dec ebx
jne 0x180005700
mov r9, qword [rsp + 0x60]
test r9, r9
je 0x1800058bf
cmp dword [rsp + 0x40], 0
jne 0x1800058bf
cmp dword [rsp + 0x44], 0
jne 0x1800058bf
mov rcx, qword [rsp + 0x88]
mov r8d, 1
lea r15, [rcx + 0x200]
mov byte [rsi + rcx], 0
mov rdx, rcx
mov rcx, r9
mov byte [rbx + r15], 0
call fcn.1800051b0
mov rbp, rax
test rax, rax
je 0x1800057c1
test ebx, ebx
je 0x180005888
mov rax, qword [rsp + 0xf0]
mov rdx, r15
mov rcx, qword [rax]
call fcn.180004470
mov r15, rax
test rax, rax
je 0x180005860
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x1800057b2
mov rax, qword [rsp + 0xf0]
mov r8d, 1
mov rcx, qword [rax]
call fcn.1800027c0
mov rcx, qword [rsp + 0xf0]
mov qword [rbp + 0x40], r15
inc dword [rcx + 8]
mov rbp, qword [rsp + 0x50]
lea r9, [0x180000000]
mov ecx, dword [rsp + 0x100]
movzx eax, byte [rsp + 0xf8]
cmp al, 0xff
je 0x1800057f8
mov rdx, qword [rsp + 0x70]
movzx r15d, al
btr r15d, 7
cmp r15d, 0xffffffff
jne 0x1800054e5
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 + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x180005857
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe0
pop rbp
ret
mov rbp, qword [rsp + 0x50]
lea r9, [0x180000000]
test rbp, rbp
jne case.default.0x180005599
mov eax, 1
mov ecx, eax
mov dword [rsp + 0x100], eax
jmp 0x1800057d4
mov rdx, qword [rax + 0x40]
test rdx, rdx
je 0x1800058af
mov rax, qword [rsp + 0xf0]
mov r8d, 1
mov rcx, qword [rax]
call fcn.1800027c0
mov qword [rbp + 0x40], 0
mov rax, qword [rsp + 0xf0]
inc dword [rax + 8]
jmp 0x1800057c1
mov ecx, dword [rsp + 0x100]
test rbp, rbp
mov eax, 1
cmove ecx, eax
lea r9, [0x180000000]
mov dword [rsp + 0x100], ecx
jmp 0x1800057d4