Function at 0x14006f020
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 0x14006f575
movsxd r13, dword [rcx + 0x3c]
add r13, rcx
cmp dword [r13], 0x4550
jne 0x14006f575
mov eax, 0x20b
cmp word [r13 + 0x18], ax
jne 0x14006f575
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 0x14006f11d
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006f0f4
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14006f0e2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006f57e
mov rcx, r8
call fcn.1400725a8
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.140071fd0
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 0x14006f13d
xor edi, edi
mov qword [rbp - 0x69], rdi
jmp 0x14006f519
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 0x14006f20c
lea rcx, [0x1401343ac]
call fcn.140072178
cmp dword [0x1401343ac], 0xffffffff
jne 0x14006f208
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.140069610
nop
lea r8, [rbp - 0x41]
mov rdx, qword [0x140133e98]
mov rcx, r14
call fcn.14006c8b0
mov qword [0x140134410], rax
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14006f1fc
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006f1f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006f1f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400725a8
nop
lea rcx, [0x1401343ac]
call fcn.140072118
mov rdx, qword [rbp - 0x79]
cmp qword [0x140134410], 0
jne 0x14006f21f
mov qword [rbp - 0x69], rdi
jmp 0x14006f519
mov qword [rbp - 0x71], rdi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x71]
mov rcx, r14
call fcn.14006e0d0
test al, al
jne 0x14006f241
mov qword [rbp - 0x69], rdi
jmp 0x14006f519
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14006f519
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 0x14006f2a5
add rbx, r13
test dword [rbx + 0x18], 0x80
ja 0x14006f294
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 0x14006f277
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 0x14006f454
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x14006f454
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 0x14006f305
jmp 0x14006f454
lea rbx, [r12 + rcx]
mov r14d, dword [rax + r12 + 0xb4]
add r14, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, r14
jae 0x14006f38b
nop dword [rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14006f38b
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 0x14006f364
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 0x14006f380
lea r8, [rbp - 0x41]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.140070340
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 0x14006f320
mov r11, qword [rbp - 0x19]
cmp r11, r10
je 0x14006f3ed
lea r8, [r11 + 0x10]
mov ebx, 0xfff
nop dword [rax]
mov edx, edi
cmp dword [r8], edi
jbe 0x14006f3e0
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 0x14006f3d9
movzx ecx, r9w
mov rax, qword [r8 - 0x10]
add qword [rax + rcx], r15
inc edx
cmp edx, dword [r8]
jb 0x14006f3b0
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x14006f3a0
test r11, r11
je 0x14006f44c
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 0x14006f444
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006f444
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1400725a8
mov r14, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x49]
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.14006fd30
mov rdx, rax
mov rcx, qword [rbp - 0x61]
call fcn.14006f590
test al, al
je 0x14006f515
lea r8, [r14 + r12]
mov r9, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x71]
mov r14, qword [rbp - 0x61]
mov rcx, r14
call fcn.14006c570
test al, al
je 0x14006f519
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.14006f8b0
test al, al
je 0x14006f519
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 0x14006f50c
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14006f4fc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x14006f57e
mov rcx, r8
call fcn.1400725a8
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov rax, qword [rbp - 0x71]
jmp 0x14006f0f6
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.14006c790
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006f0f4
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14006f56b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006f57e
mov rcx, r8
call fcn.1400725a8
jmp 0x14006f0e9
mov rdx, qword [rdx + 0x10]
jmp 0x14006f0ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3