Function at 0x7ff65c525b30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rdx]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x7ff65c525fdc
movsxd r14, dword [rcx + 0x3c]
add r14, rcx
cmp dword [r14], 0x4550
jne 0x7ff65c525fdc
test r14, r14
je 0x7ff65c525fdc
mov eax, 0x20b
cmp word [r14 + 0x18], ax
jne 0x7ff65c525fdc
mov r15d, dword [r14 + 0x50]
mov qword [rbp - 0x49], r15
mov r9d, 4
mov r8d, 0x3000
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r13, rax
xor edi, edi
test r15, r15
je 0x7ff65c525f93
cmp qword [0x7ff65c7ab328], rdi
jne 0x7ff65c525ce3
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x7ff65c6423d0]
movdqu xmmword [rbp - 9], xmm1
movsd xmm0, qword [str.ExAllocatePool]
movsd qword [rbp - 0x19], xmm0
mov eax, dword [0x7ff65c63e3e8]
mov dword [rbp - 0x11], eax
movzx eax, word [0x7ff65c63e3ec]
mov word [rbp - 0xd], ax
mov byte [rbp - 0xb], dil
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x7ff65c6423c0]
movdqu xmmword [rbp - 0x29], xmm1
movsd xmm0, qword [str.ntoskrnl.exe]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x7ff65c63e3f8]
mov dword [rbp - 0x31], eax
mov byte [rbp - 0x2d], dil
lea rcx, [rbp - 0x39]
call fcn.7ff65c528770
mov rdx, rax
lea r8, [rbp - 0x19]
mov rcx, rbx
call fcn.7ff65c523250
mov qword [0x7ff65c7ab328], rax
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x7ff65c525c94
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c525c8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff65c525c8f
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff65c618c48
movdqa xmm0, xmmword [0x7ff65c642360]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x7ff65c525ce3
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c525cde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff65c525cde
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff65c618c48
mov qword [rbp + 0x77], rdi
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x77]
mov rcx, rbx
call fcn.7ff65c523e90
test al, al
je 0x7ff65c525f93
mov rax, qword [rbp + 0x77]
mov r12, rax
test rax, rax
je 0x7ff65c525e54
lea rax, [r14 + 0x54]
mov qword [rbp - 0x41], rax
mov r8d, dword [rax]
mov rdx, qword [rsi]
mov rcx, r13
call sub.vcruntime140.dll_memcpy
movzx ebx, word [r14 + 0x14]
add rbx, 0x28
mov r15d, edi
mov rax, r12
cmp di, word [r14 + 6]
jae 0x7ff65c525d67
add rbx, r14
nop
mov ecx, dword [rbx - 4]
add rcx, r13
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [rsi]
call sub.vcruntime140.dll_memcpy
inc r15d
lea rbx, [rbx + 0x28]
movzx eax, word [r14 + 6]
cmp r15d, eax
jl 0x7ff65c525d40
xor edi, edi
mov rbx, r12
sub rbx, qword [r14 + 0x30]
mov rdx, r13
lea rcx, [rbp - 0x39]
call fcn.7ff65c5274e0
mov rdx, rbx
mov rcx, rax
call fcn.7ff65c526040
mov rdx, r13
lea rcx, [rbp - 0x39]
call fcn.7ff65c527620
mov rdx, rax
mov rbx, qword [rbp + 0x67]
mov rcx, rbx
call fcn.7ff65c526140
test al, al
je 0x7ff65c525e54
mov r9, qword [rbp - 0x49]
mov r8, r13
mov rdx, r12
mov rcx, rbx
call fcn.7ff65c523010
test al, al
je 0x7ff65c525e54
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.kernel32.dll_VirtualFree]
mov r8d, dword [r14 + 0x28]
add r8, r12
lea rdx, [rbp + 0x77]
mov rcx, rbx
call fcn.7ff65c526300
test al, al
je 0x7ff65c525e54
mov rax, qword [rbp - 0x41]
mov eax, dword [rax]
test rax, rax
je 0x7ff65c525e44
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], 0
mov qword [rbp - 0x19], 0x30
mov qword [rbp - 1], r12
mov qword [rbp + 7], rax
mov dword [rbp + 0x6f], edi
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0x28
lea r8, [rbp - 0x19]
mov edx, 0x80862007
mov rcx, rbx
call qword [sym.imp.kernel32.dll_DeviceIoControl]
nop
mov rcx, rsi
call fcn.7ff65c51fd70
mov rax, r12
jmp 0x7ff65c52601d
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.kernel32.dll_VirtualFree]
test r12, r12
je 0x7ff65c525fa5
cmp qword [0x7ff65c7ab388], 0
jne 0x7ff65c525f86
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x7ff65c6423a0]
movdqu xmmword [rbp - 9], xmm1
movsd xmm0, qword [str.ExFreePool]
movsd qword [rbp - 0x19], xmm0
movzx eax, word [0x7ff65c63e408]
mov word [rbp - 0x11], ax
mov byte [rbp - 0xf], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x7ff65c6423c0]
movdqu xmmword [rbp - 0x29], xmm1
movsd xmm0, qword [str.ntoskrnl.exe]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x7ff65c63e3f8]
mov dword [rbp - 0x31], eax
mov byte [rbp - 0x2d], 0
lea rcx, [rbp - 0x39]
call fcn.7ff65c528770
mov rdx, rax
lea r8, [rbp - 0x19]
mov rcx, rbx
call fcn.7ff65c523250
mov qword [0x7ff65c7ab388], rax
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x7ff65c525f37
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c525f32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff65c525f32
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff65c618c48
movdqa xmm0, xmmword [0x7ff65c642360]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x7ff65c525f86
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff65c525f81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff65c525f81
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff65c618c48
mov r9, r12
mov rcx, rbx
call fcn.7ff65c524cc0
jmp 0x7ff65c525fa5
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.kernel32.dll_VirtualFree]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x7ff65c52601b
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x7ff65c525fd5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff65c526031
mov rcx, r8
call fcn.7ff65c618c48
jmp 0x7ff65c526010
test rcx, rcx
je 0x7ff65c52601b
mov rdx, qword [rdx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x7ff65c526009
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff65c526031
mov rcx, r8
call fcn.7ff65c618c48
xor edi, edi
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3