Function at 0x140002786
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 0x50], 0
mov qword [rbp - 0x58], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov rax, qword [rbp + 0x30]
mov dword [rax], 0
mov rax, qword [rbp + 0x20]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0x140002aaf
mov rax, qword [rbp + 0x18]
mov r8, qword [rbp + 0x20]
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140002ab2
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
add rax, 0x18
add rax, 0xf0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x2c], 0
jmp 0x14000291f
mov rax, qword [rbp - 0x20]
lea rdx, str..text
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
jne 0x140002916
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140002ab5
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov ecx, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x38]
add rdx, rax
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x140002933
add qword [rbp - 0x20], 0x28
add dword [rbp - 0x2c], 1
mov rax, qword [rbp - 0x48]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x2c], eax
jl 0x14000289c
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
je 0x140002ab8
mov rax, qword [rbp + 0x20]
mov r8d, eax
lea rcx, [rbp - 0x50]
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140002abb
mov rax, qword [rbp - 0x48]
add rax, 0x18
add rax, 0xf0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x30], 0
jmp 0x140002a55
mov rax, qword [rbp - 0x20]
lea rdx, str..text
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
jne 0x140002a4c
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x10]
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140002abe
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x38]
add rdx, rax
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x140002a69
add qword [rbp - 0x20], 0x28
add dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x48]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x30], eax
jl 0x1400029d2
cmp qword [rbp - 0x18], 0
je 0x140002ac1
cmp qword [rbp - 0x10], 0
je 0x140002ac1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcmp
mov dword [rbp - 0x4c], eax
cmp dword [rbp - 0x4c], 0
je 0x140002aa6
mov rax, qword [rbp + 0x30]
mov dword [rax], 1
mov dword [rbp - 4], 1
jmp 0x140002ac2
nop
jmp 0x140002ac2
nop
jmp 0x140002ac2
nop
jmp 0x140002ac2
nop
jmp 0x140002ac2
nop
jmp 0x140002ac2
nop
jmp 0x140002ac2
nop
cmp qword [rbp - 0x38], 0
je 0x140002ae4
mov rax, qword [rbp - 0x38]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
cmp qword [rbp - 0x10], 0
je 0x140002b06
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
cmp qword [rbp - 0x18], 0
je 0x140002b28
mov rax, qword [rbp - 0x18]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
cmp qword [rbp - 0x28], 0
je 0x140002b3f
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
add rsp, 0xa0
pop rbp
ret