Function at 0x14008de10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb0
mov rax, qword [0x1401661c0]
xor rax, rsp
mov qword [rbp - 9], rax
mov rdi, rcx
mov qword [rbp - 0x39], rcx
xor r12d, r12d
mov eax, 0x5a4d
cmp word [0x14020a3b0], ax
jne 0x14008e310
movsxd r15, dword [0x14020a3ec]
lea r13, [0x14020a3b0]
add r15, r13
mov qword [rbp - 0x49], r15
cmp dword [r15], 0x4550
jne 0x14008e310
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x14008e310
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [r12 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x14008e310
movzx ecx, word [r15 + 0x14]
mov r14d, dword [rcx + r15 + 0x24]
sub ebx, r14d
mov ecx, ebx
mov qword [rbp - 0x71], rcx
je 0x14008e2ff
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x140210d44], eax
jle 0x14008df95
lea rcx, [0x140210d44]
call fcn.140106ed8
cmp dword [0x140210d44], 0xffffffff
jne 0x14008df91
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
lea r8d, [r12 + 0x15]
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x69]
call fcn.1400048b0
nop
lea r8, [rbp - 0x69]
mov rdx, qword [0x14020e9d0]
mov rcx, rdi
call fcn.14008b420
mov qword [0x140210d88], rax
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14008df85
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008df7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008df7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140106df4
nop
lea rcx, [0x140210d44]
call fcn.140106e6c
mov rcx, qword [rbp - 0x71]
cmp qword [0x140210d88], 0
je 0x14008e2ff
mov qword [rbp - 0x79], r12
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14008d0a0
test al, al
je 0x14008e2ff
mov r12, qword [rbp - 0x79]
test r12, r12
je 0x14008e2ff
mov r8d, dword [r15 + 0x54]
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
xor edx, edx
mov edi, edx
cmp dx, word [r15 + 6]
jae 0x14008e021
add rbx, r15
test dword [rbx + 0x18], 0x80
ja 0x14008e010
mov ecx, dword [rbx]
add rcx, rsi
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r13
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x14008dff3
xor edx, edx
mov qword [rbp - 0x31], r14
mov r13, r12
sub r13, r14
mov qword [rbp - 0x41], r13
mov r14, r13
sub r14, qword [r15 + 0x30]
mov eax, 0x5a4d
lea r12, [rsi + 0x3c]
cmp word [rsi], ax
jne 0x14008e051
movsxd rax, dword [r12]
cmp dword [rax + rsi], 0x4550
je 0x14008e06e
xorps xmm1, xmm1
mov r11, rdx
xorps xmm0, xmm0
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
jmp 0x14008e125
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r11, rdx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x14008e09f
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
jmp 0x14008e125
lea rbx, [rsi + rcx]
mov edi, dword [rax + rsi + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x19]
cmp rbx, rdi
jae 0x14008e121
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14008e121
mov eax, dword [rbx]
add rax, rsi
mov qword [rbp - 0x69], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x61], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x59], eax
cmp r10, r11
je 0x14008e0fe
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x59]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x19]
add r10, 0x18
mov qword [rbp - 0x19], r10
jmp 0x14008e112
lea r8, [rbp - 0x69]
mov rdx, r10
lea rcx, [rbp - 0x21]
call fcn.140004bf0
mov r10, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x11]
cmp rbx, rdi
jb 0x14008e0b6
mov rbx, qword [rbp - 0x21]
cmp rbx, r10
je 0x14008e193
lea r8, [rbx + 0x10]
mov edi, 0xf000
mov r13d, 0xa000
xor r15d, r15d
nop dword [rax]
mov edx, r15d
cmp dword [r8], r15d
jbe 0x14008e17e
nop dword [rax + rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, di
cmp ax, r13w
jne 0x14008e177
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], r14
inc edx
cmp edx, dword [r8]
jb 0x14008e150
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x14008e140
mov r15, qword [rbp - 0x49]
mov r13, qword [rbp - 0x41]
test rbx, rbx
je 0x14008e1ee
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14008e1e6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008e1e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140106df4
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14008e310
movsxd rax, dword [r12]
cmp dword [rax + rsi], 0x4550
jne 0x14008e310
mov ecx, dword [rax + rsi + 0xd8]
test ecx, ecx
je 0x14008e268
mov rdi, qword [rcx + rsi + 0x58]
test rdi, rdi
je 0x14008e268
mov rax, rsi
sub rax, r13
add rdi, rax
movabs r14, 0x2b992ddfa232
cmp qword [rdi], r14
jne 0x14008e310
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor rcx, rbx
xor rcx, r14
movabs rax, 0x2b992ddfa233
cmp rcx, r14
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, rsi
lea rcx, [rbp - 0x69]
call fcn.14008e9a0
mov rdx, rax
mov rdi, qword [rbp - 0x39]
mov rcx, rdi
call fcn.14008e340
mov rbx, qword [rbp - 0x79]
test al, al
je 0x14008e2e1
mov r8, qword [rbp - 0x31]
add r8, rsi
mov r9, qword [rbp - 0x71]
mov rdx, rbx
mov rcx, rdi
call fcn.14008b0e0
test al, al
je 0x14008e2e1
mov r8d, dword [r15 + 0x28]
add r8, r13
xor r12d, r12d
mov dword [rbp - 0x79], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14008e5d0
test al, al
je 0x14008e2e1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x14008e312
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rbx
mov rcx, rdi
call fcn.14008b300
jmp 0x14008e310
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140106d90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret