Function at 0x1800254c0
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2b8
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [r11 + 0x20], rsi
xorps xmm0, xmm0
mov qword [r11 - 0x18], rdi
mov rsi, rdx
mov qword [r11 - 0x30], r14
xor edi, edi
mov r14, rcx
mov qword [r11 - 0x38], r15
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rdi
xor edx, edx
mov dword [rsp + 0x44], edi
mov rbx, r8
mov qword [rsp + 0x68], rdi
movdqu xmmword [rsp + 0x58], xmm0
call fcn.180014a70
mov edx, 0x2000
lea rcx, [rsp + 0x58]
call fcn.180014a70
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov dword [rsp + 0x40], 4
mov r15, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800257bb
mov qword [rsp + 0x2a8], r12
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x2a0], r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r12d, eax
mov rdx, r15
mov rcx, rbx
cmp eax, 0x1000
jae 0x1800255f1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800257a7
cmp r12d, 0x200
ja 0x180025605
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800257a7
test byte [rsp + 0x48], 2
jne 0x1800257a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800257a7
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800257a7
mov r9, r15
mov byte [rsp + 0x20], dil
mov r8, rsi
mov rdx, r14
call fcn.180007830
test al, al
je 0x18002579f
movsxd rax, dword [r15 + 0x3c]
lea r12, [r15 + 0x3c]
lea r13, [rax + r15]
add rax, 0x148
mov qword [rsp + 0x48], rax
cmp rax, 0x1000
jbe 0x180025685
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.180014a70
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002579f
movzx eax, word [r13 + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x18002574a
movsxd rdx, dword [r12]
lea rax, [rsp + 0x50]
lea r9d, [rcx - 0x13]
mov qword [rsp + 0x20], rax
add rdx, rsi
lea r8, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800256d5
movzx eax, word [r13 + 6]
lea rdi, [rax + rax*4]
movzx eax, word [r13 + 0x14]
lea rdi, [rdi + 3]
lea rdi, [rax + rdi*8]
mov dword [r13 + 0x34], esi
lea rax, [rsp + 0x40]
mov r9d, 4
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18002579f
lea rax, [rsp + 0x50]
mov r9, rdi
mov r8, r15
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
test eax, eax
je 0x1800257a2
call fcn.18000d5c0
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov bl, 1
jmp 0x1800257a9
mov ecx, 0x20b
cmp ax, cx
jne 0x18002579f
movsxd rdx, dword [r12]
lea rax, [rsp + 0x50]
add rdx, rsi
mov qword [rsp + 0x20], rax
mov r9d, 0xf8
lea r8, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800256d5
movzx eax, word [r13 + 6]
mov qword [r13 + 0x30], rsi
lea rcx, [rax + rax*4]
movzx eax, word [r13 + 0x14]
lea rcx, [rcx + 3]
lea rdi, [rax + rcx*8]
jmp 0x1800256d9
mov rcx, rbx
call fcn.18000d5c0
xor bl, bl
mov r13, qword [rsp + 0x2a0]
mov r12, qword [rsp + 0x2a8]
jmp 0x1800257e7
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800257e5
test byte [rsp + 0x48], 2
jne 0x1800257e5
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rcx, qword [rsp + 0x58]
mov r15, qword [rsp + 0x290]
mov r14, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2e8]
test rcx, rcx
je 0x18002583f
mov rdx, qword [rsp + 0x68]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18002583a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002585b
call fcn.180049e70
movzx eax, bl
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180049ad0
add rsp, 0x2b8
pop rbx
pop rbp
ret
call fcn.1800503fc
int3