Function at 0x180024af0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8a0]
sub rsp, 0x9a0
mov rax, qword [0x18028f9a8]
xor rax, rsp
mov qword [rbp + 0x890], rax
xor edi, edi
mov dword [rsp + 0x30], r8d
mov r12d, edi
mov qword [rsp + 0x38], rdx
mov esi, edi
mov r15d, edi
mov ebx, edi
mov r14, rcx
mov edi, 0x10b
mov r13d, 0x20b
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
lea r8, [rsp + 0x40]
add rbx, 0x10000
mov r9d, 0x30
mov rdx, rbx
mov rcx, r14
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x180024c0b
nop dword [rax]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and eax, 0xfff
cmp rax, 0xfff
je 0x180024c0b
mov rdx, qword [rsp + 0x40]
lea rax, [rcx + rdx]
cmp rax, rbx
jb 0x180024c0b
cmp dword [rsp + 0x60], 0x1000
jne 0x180024beb
mov eax, dword [rsp + 0x64]
cmp al, 1
je 0x180024beb
bt eax, 8
jb 0x180024beb
lea r8, [rbp + 0x690]
mov rdx, rbx
mov rcx, r14
call fcn.1800255b0
test eax, eax
jne 0x180024c2c
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
lea rbx, [rcx + rdx]
mov r9d, 0x30
mov rdx, rbx
lea r8, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x180024b90
mov r13, qword [rsp + 0x38]
mov edi, 0
test r15, r15
jne 0x180024c8e
mov ecx, 0x10dd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180024ef6
test rbx, rbx
je 0x180024c0b
mov eax, 0x2000
test word [rbp + 0x6a6], ax
jne 0x180024c67
mov r15, rbx
cmp word [rbp + 0x6a8], di
jne 0x180024b50
cmp word [rbp + 0x694], 0
je 0x180024b50
mov esi, 1
jmp 0x180024b50
cmp word [rbp + 0x6a8], r13w
jne 0x180024b50
cmp word [rbp + 0x694], 0
je 0x180024b50
mov r12d, 1
jmp 0x180024b50
test esi, esi
jne 0x180024c9a
mov ebx, edi
mov dword [rsp + 0x34], ebx
jmp 0x180024cc8
test r12d, r12d
jne 0x180024cae
mov r12d, 1
mov ebx, r12d
mov dword [rsp + 0x34], ebx
jmp 0x180024cce
lea rdx, [rsp + 0x34]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x180024c25
mov ebx, dword [rsp + 0x34]
mov r12d, 1
xorps xmm0, xmm0
lea r8, [rsp + 0x70]
mov r9d, 0x30
mov rdx, r15
mov rcx, r14
mov esi, edi
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x180024ee9
mov r9d, 0x40
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x60]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180024ee9
mov eax, 0x5a4d
cmp word [rbp - 0x60], ax
jne 0x180024ede
movsxd rcx, dword [rbp - 0x24]
mov eax, ecx
cmp rax, qword [rbp - 0x78]
ja 0x180024ede
cmp ecx, 0x40
jb 0x180024ede
lea rdx, [r15 + rcx]
mov qword [rsp + 0x20], rdi
mov rcx, r14
lea r8, [rbp + 0x790]
mov r9d, 0xf8
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180024ee9
cmp dword [rbp + 0x790], 0x4550
jne 0x180024ede
mov eax, 0x10b
cmp word [rbp + 0x7a8], ax
jne 0x180024d9b
cmp word [rbp + 0x794], si
cmovne esi, r12d
lea r8, [rbp - 0x20]
mov rdx, r15
mov rcx, r14
call fcn.1800259b0
test eax, eax
je 0x180024ef4
test ebx, ebx
jne 0x180024ed7
test esi, esi
je 0x180024dfb
cmp qword [rbp], rdi
je 0x180024ed7
mov eax, dword [rbp + 0x660]
test al, 1
je 0x180024ed7
test al, 2
jne 0x180024ed7
mov r8d, 0x8664
lea r9, [rbp - 0x20]
mov rdx, r15
mov rcx, r14
call fcn.1800261f0
test eax, eax
je 0x180024ef4
mov r9d, dword [rsp + 0x30]
mov r8, r13
mov rdx, r15
mov rcx, r14
call fcn.180025b30
test eax, eax
je 0x180024ef4
mov rdx, qword [rbp]
test rdx, rdx
je 0x180024eb6
mov eax, dword [rbp + 0x660]
mov r9d, 4
movaps xmm0, xmmword [rbp + 0x650]
and eax, 0xfffffffe
mov dword [rbp + 0x680], eax
mov rcx, r14
lea rax, [rsp + 0x30]
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x670], xmm0
call fcn.180027b90
test eax, eax
je 0x180024ef4
mov rdx, qword [rbp]
lea r8, [rbp + 0x670]
mov r9d, 0x14
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180024ef4
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rdx, qword [rbp]
mov r8d, 0x14
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180024ef4
test byte [rbp + 0x660], 2
jne 0x180024ed7
mov r9d, 0x688
lea r8, [rbp - 0x20]
lea rdx, [0x1801e5f98]
mov rcx, r14
call fcn.180025150
test eax, eax
setne dil
jmp 0x180024ef4
mov ecx, 6
jmp 0x180024eee
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x10dd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.180186840
mov rbx, qword [rsp + 0x9f8]
add rsp, 0x9a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret