Function at 0x14006eea0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb0
mov rax, qword [0x1400af010]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x21], rdx
mov rcx, qword [rdx]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f3f5
movsxd r13, dword [rcx + 0x3c]
add r13, rcx
cmp dword [r13], 0x4550
jne 0x14006f3f5
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x14006f3f5
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
jne 0x14006ef9d
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006ef74
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14006ef62
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006f3fe
mov rcx, r8
call fcn.140072428
xor edi, edi
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140071e50
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [r13 + 0x14]
mov r15d, dword [rax + r13 + 0x24]
sub ebx, r15d
mov edx, ebx
mov qword [rbp - 0x79], rdx
jne 0x14006efbd
xor edi, edi
mov qword [rbp - 0x69], rdi
jmp 0x14006f399
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
xor edi, edi
mov eax, dword [r8 + rcx]
cmp dword [0x1401343ac], eax
jle 0x14006f08c
lea rcx, [0x1401343ac]
call fcn.140071ff8
cmp dword [0x1401343ac], 0xffffffff
jne 0x14006f088
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], 0xf
mov byte [rbp - 0x41], dil
lea r8d, [rdi + 0x15]
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x41]
call fcn.140069490
nop
lea r8, [rbp - 0x41]
mov rdx, qword [0x140133e98]
mov rcx, r14
call fcn.14006c730
mov qword [0x140134410], rax
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14006f07c
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006f076
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006f076
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072428
nop
lea rcx, [0x1401343ac]
call fcn.140071f98
mov rdx, qword [rbp - 0x79]
cmp qword [0x140134410], 0
jne 0x14006f09f
mov qword [rbp - 0x69], rdi
jmp 0x14006f399
mov qword [rbp - 0x71], rdi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x71]
mov rcx, r14
call fcn.14006df50
test al, al
jne 0x14006f0c1
mov qword [rbp - 0x69], rdi
jmp 0x14006f399
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14006f399
mov r8d, dword [r13 + 0x54]
mov rdx, qword [rsi]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov r14d, edi
cmp di, word [r13 + 6]
jae 0x14006f125
add rbx, r13
test dword [rbx + 0x18], 0x80
ja 0x14006f114
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, qword [rsi]
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp r14d, eax
jl 0x14006f0f7
mov r14, r15
mov qword [rbp - 0x51], r15
mov rbx, qword [rbp - 0x71]
sub rbx, r15
mov qword [rbp - 0x49], rbx
mov r15, rbx
sub r15, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x14006f2d4
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x14006f2d4
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov rdx, rdi
mov qword [rbp - 0x59], rdx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + r12 + 0xb0]
test ecx, ecx
jne 0x14006f185
jmp 0x14006f2d4
lea rbx, [r12 + rcx]
mov r14d, dword [rax + r12 + 0xb4]
add r14, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, r14
jae 0x14006f20b
nop dword [rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14006f20b
mov eax, dword [rbx]
add rax, r12
mov qword [rbp - 0x41], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x39], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x31], eax
cmp r10, rdx
je 0x14006f1e4
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x31]
movsd qword [r10 + 0x10], xmm1
add r10, 0x18
mov qword [rbp - 0x11], r10
jmp 0x14006f200
lea r8, [rbp - 0x41]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.1400701c0
mov rdx, qword [rbp - 9]
mov qword [rbp - 0x59], rdx
mov r10, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r14
jb 0x14006f1a0
mov r11, qword [rbp - 0x19]
cmp r11, r10
je 0x14006f26d
lea r8, [r11 + 0x10]
mov ebx, 0xfff
nop dword [rax]
mov edx, edi
cmp dword [r8], edi
jbe 0x14006f260
nop word [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
shr ax, 0xc
and r9w, bx
cmp ax, 0xa
jne 0x14006f259
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], r15
inc edx
cmp edx, dword [r8]
jb 0x14006f230
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x14006f220
test r11, r11
je 0x14006f2cc
mov rcx, qword [rbp - 0x59]
sub rcx, r11
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r11
cmp rdx, 0x1000
jb 0x14006f2c4
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006f2c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.140072428
mov r14, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x49]
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.14006fbb0
mov rdx, rax
mov rcx, qword [rbp - 0x61]
call fcn.14006f410
test al, al
je 0x14006f395
lea r8, [r14 + r12]
mov r9, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x71]
mov r14, qword [rbp - 0x61]
mov rcx, r14
call fcn.14006c3f0
test al, al
je 0x14006f399
mov r8d, dword [r13 + 0x28]
add r8, rbx
mov dword [rbp - 0x79], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, [rbp - 0x79]
mov rcx, r14
call fcn.14006f730
test al, al
je 0x14006f399
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006f38c
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14006f37c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x14006f3fe
mov rcx, r8
call fcn.140072428
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov rax, qword [rbp - 0x71]
jmp 0x14006ef76
mov r14, qword [rbp - 0x61]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x69]
mov rcx, r14
call fcn.14006c610
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006ef74
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14006f3eb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006f3fe
mov rcx, r8
call fcn.140072428
jmp 0x14006ef69
mov rdx, qword [rdx + 0x10]
jmp 0x14006ef3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3