Function at 0x180001208
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rsi, rdx
mov r14, rcx
mov ebx, 0x40
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov edi, 0x108
lea rcx, [rbp - 0x50]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x118]
mov r9d, ebx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800013f7
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x1800013f7
movsxd rdx, dword [rbp - 0x54]
lea rax, [rbp + 0x118]
add rdx, rsi
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800013f7
cmp dword [rbp - 0x50], 0x4550
jne 0x1800013f7
mov edi, dword [rbp + 0x38]
test edi, edi
je 0x1800013f7
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x1800013f7
lea r9d, [rbx - 0x3c]
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1800013f7
lea rcx, [rbp + 0x118]
mov r9d, r15d
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + rsi]
mov rcx, r14
mov r8, rax
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800013e6
mov ecx, dword [rbx + 0x20]
mov rdi, rbx
mov r13d, dword [rbx + 0x24]
sub rdi, r12
mov eax, dword [rbx + 0x1c]
add rcx, rdi
add rax, rdi
mov qword [rsp + 0x30], rcx
add r13, rdi
mov qword [rsp + 0x40], rax
xor r14d, r14d
cmp dword [rbx + 0x18], r14d
jbe 0x1800013e6
mov edx, dword [rcx + r14*4]
lea rcx, [rsp + 0x48]
mov eax, r14d
add rdx, rdi
mov qword [rsp + 0x38], rax
call fcn.180001718
cmp qword [rsp + 0x60], 0x10
lea rcx, [rsp + 0x48]
mov rdx, qword [rbp + 0x110]
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x180001414
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800013d4
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800013cf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000148e
call fcn.180001890
mov rcx, qword [rsp + 0x30]
inc r14d
cmp r14d, dword [rbx + 0x18]
jb 0x18000135c
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x38]
mov r14d, 0x1000
mov rcx, qword [rsp + 0x40]
movzx eax, word [r13 + rax*2]
cmp dword [rcx + rax*4], r14d
jbe 0x18000145c
mov edi, dword [rcx + rax*4]
lea rax, [r12 + rsi]
add rdi, rsi
cmp rdi, rax
jb 0x180001495
lea rax, [r12 + r15]
add rax, rsi
cmp rdi, rax
ja 0x180001495
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800014ad
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, r14
jb 0x1800014a8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800014a8
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 0x18000145e
call fcn.180001890
mov rax, rdi
jmp 0x1800013f9