Function at 0x140009218
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
lea r14, [rcx + 0x20]
mov r12b, dl
mov rbx, qword [r14]
mov r13, rcx
jmp 0x14000945f
cmp byte [rbx + 0x51], 0
jne 0x14000945c
movups xmm0, xmmword [rbx + 0x20]
xor edx, edx
lea rax, [rbp - 0x10]
lea r9, [0x14000f870]
mov qword [rsp + 0x20], rax
lea r8, [0x14000f890]
movdqu xmmword [rbp - 0x10], xmm0
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov r15, rax
test r12b, r12b
jne 0x140009294
mov rdx, qword [rbx + 0x10]
mov rcx, r13
call fcn.140001530
mov ecx, dword [r15 + 0x28]
test ecx, ecx
je 0x1400092e2
mov rax, qword [rbx + 0x10]
mov r9d, 3
and qword [rsp + 0x30], 0
mov rdx, r13
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
lea r8, [rax + rcx]
xor ecx, ecx
call fcn.1400094a4
test eax, eax
je 0x1400092e2
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001ee8
test al, al
jne 0x140009482
mov ecx, 0x10b
cmp word [r15 + 0x18], cx
lea eax, [rcx - 3]
lea esi, [rcx - 0x13]
cmovne esi, eax
movzx eax, word [r15 + 6]
add rsi, r15
lea rcx, [rax + rax*4]
lea rax, [rsi + rcx*8]
cmp rsi, rax
jae 0x1400093c6
lea rdi, [rsi + 0xc]
test dword [rdi + 0x18], 0x2000000
je 0x1400093a8
mov ecx, dword [rdi]
add rcx, qword [rbx + 0x10]
mov r8d, dword [rdi - 4]
mov eax, dword [rbx + 0x4c]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], r8
test al, 0x10
je 0x140009341
xor edx, edx
call fcn.140002640
jmp 0x1400093a8
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov r9d, 4
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x140009372
mov r8, qword [rbp + 0x40]
xor edx, edx
mov rcx, qword [rbp + 0x50]
call fcn.140002640
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov r9d, 1
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov r9d, 0x4000
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
movzx eax, word [r15 + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rsi + rcx*8]
lea rax, [rdi - 0xc]
cmp rax, rdx
jb 0x140009312
mov eax, dword [rbx + 0x4c]
test al, 4
je 0x140009458
mov r8d, dword [r15 + 0x54]
mov rcx, qword [rbx + 0x10]
mov qword [rbp + 0x40], r8
test al, 0x10
je 0x1400093ea
xor edx, edx
call fcn.140002640
jmp 0x140009458
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov qword [rbp + 0x50], rcx
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
mov r9d, 4
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x14000943f
mov r8, qword [rbp + 0x40]
xor edx, edx
mov rcx, qword [rbx + 0x10]
call fcn.140002640
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov r9d, 2
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
jmp 0x140009458
xor edx, edx
lea r9, [0x14000f870]
lea r8, [0x14000f900]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov byte [rbx + 0x51], 1
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x140009241
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
lea r9, [0x14000f870]
lea r8, [0x14000f8c0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000010a
jmp 0x14000946a