Function at 0x180012de0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x1e0
mov rax, qword [0x1800eaf00]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xorps xmm0, xmm0
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0xb0]
mov r8d, 0x108
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180013101
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x180013101
movsxd rdx, dword [rsp + 0x8c]
lea rax, [rsp + 0x30]
add rdx, r14
mov qword [rsp + 0x20], rax
mov r9d, 0x108
lea r8, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180013101
cmp dword [rsp + 0xb0], 0x4550
jne 0x180013101
mov edi, dword [rsp + 0x138]
test edi, edi
je 0x180013101
mov eax, dword [rsp + 0x13c]
test eax, eax
je 0x180013101
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180013101
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x1d8], r13
mov qword [rsp + 0x20], rcx
lea rdx, [r14 + rdi]
mov rcx, rsi
mov r9d, r12d
mov r8, rax
mov r13d, edi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x180012f3b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180013034
mov eax, dword [rbx + 0x24]
xor edi, edi
mov qword [rsp + 0x220], rbp
mov rbp, rbx
sub rbp, r13
mov qword [rsp + 0x1d0], r15
mov r15d, dword [rbx + 0x20]
add rax, rbp
mov qword [rsp + 0x38], rax
add r15, rbp
mov eax, dword [rbx + 0x1c]
add rax, rbp
mov qword [rsp + 0x40], rax
cmp dword [rbx + 0x18], edi
jbe 0x180013011
nop dword [rax]
mov edx, dword [r15 + rdi*4]
lea rcx, [rsp + 0x90]
add rdx, rbp
call fcn.180013cb0
cmp qword [rsp + 0xa8], 0x10
lea rcx, [rsp + 0x90]
lea rdx, [0x1800af340]
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x18001305b
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x180013006
mov rcx, qword [rsp + 0x90]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013001
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800130da
call fcn.18008f8b4
inc edi
cmp edi, dword [rbx + 0x18]
jb 0x180012f80
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x220]
mov r15, qword [rsp + 0x1d0]
mov r13, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18008f3b0
add rsp, 0x1e0
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rax + rdi*2]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x18001309e
lea rdi, [r14 + rcx]
lea rax, [r14 + r13]
cmp rdi, rax
jb 0x1800130e1
lea rax, [r12 + r13]
add rax, r14
cmp rdi, rax
ja 0x1800130e1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x1800130f9
mov rcx, qword [rsp + 0x90]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800130f4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800130f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1800130a0
call fcn.18008f8b4
mov rax, rdi
jmp 0x180013024
xor eax, eax
jmp 0x18001303c