Function at 0x7ff6fb6aeb50
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x7ff6fb7d0080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 0x10
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d26d4], eax
jle 0x7ff6fb6aebc3
lea rcx, [0x7ff6fb7d26d4]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d26d4], 0xffffffff
jne 0x7ff6fb6aebc3
mov r8d, ebx
lea rcx, [0x7ff6fb7a69e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x7ff6fb7d26d4]
mov qword [0x7ff6fb7d2770], rax
call fcn.7ff6fb7849f4
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d2794], eax
jle 0x7ff6fb6aebfc
lea rcx, [0x7ff6fb7d2794]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d2794], 0xffffffff
jne 0x7ff6fb6aebfc
mov rax, qword [0x7ff6fb7d2770]
lea rcx, [0x7ff6fb7d2794]
mov qword [0x7ff6fb7d2728], rax
call fcn.7ff6fb7849f4
mov rax, qword [0x7ff6fb7d2728]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6fb6aee75
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d278c], eax
jle 0x7ff6fb6aec55
lea rcx, [0x7ff6fb7d278c]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d278c], 0xffffffff
jne 0x7ff6fb6aec55
mov rax, qword [0x7ff6fb7d2728]
lea rcx, [0x7ff6fb7d278c]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x7ff6fb7d2770]
mov qword [0x7ff6fb7d2750], rdx
call fcn.7ff6fb7849f4
mov rax, qword [0x7ff6fb7d2750]
cmp dword [rax], 0x4550
jne 0x7ff6fb6aee75
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d26e4], eax
mov qword [rsp + 0x60], rsi
jle 0x7ff6fb6aecac
lea rcx, [0x7ff6fb7d26e4]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d26e4], 0xffffffff
jne 0x7ff6fb6aecac
mov rax, qword [0x7ff6fb7d2750]
lea rcx, [0x7ff6fb7d26e4]
add rax, 0x108
mov qword [0x7ff6fb7d26b8], rax
call fcn.7ff6fb7849f4
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d26e8], eax
jle 0x7ff6fb6aece5
lea rcx, [0x7ff6fb7d26e8]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d26e8], 0xffffffff
jne 0x7ff6fb6aece5
mov rax, qword [0x7ff6fb7d26b8]
lea rcx, [0x7ff6fb7d26e8]
mov qword [0x7ff6fb7d27a0], rax
call fcn.7ff6fb7849f4
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d2748], eax
jle 0x7ff6fb6aed22
lea rcx, [0x7ff6fb7d2748]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d2748], 0xffffffff
jne 0x7ff6fb6aed22
mov rax, qword [0x7ff6fb7d2750]
lea rcx, [0x7ff6fb7d2748]
movzx edx, word [rax + 6]
mov word [0x7ff6fb7d2790], dx
call fcn.7ff6fb7849f4
xchg byte [0x7ff6fb7d2778], bl
mov rdx, qword [0x7ff6fb7d26b8]
xor esi, esi
test bl, bl
jne 0x7ff6fb6aed96
movzx eax, word [0x7ff6fb7d2790]
lea rcx, [rax + rax*4]
mov rax, qword [0x7ff6fb7d27a0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x7ff6fb6aed96
lea r9, str.PAGE
nop word [rax + rax]
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x7ff6fb6aed86
cmp rcx, 5
jne 0x7ff6fb6aed70
jmp 0x7ff6fb6aed96
add rdx, 0x28
mov qword [0x7ff6fb7d26b8], rdx
cmp rdx, r8
jb 0x7ff6fb6aed60
mov eax, dword [rdi]
cmp dword [0x7ff6fb7d26a8], eax
jle 0x7ff6fb6aede0
lea rcx, [0x7ff6fb7d26a8]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d26a8], 0xffffffff
jne 0x7ff6fb6aedd9
mov rax, qword [0x7ff6fb7d26b8]
lea rcx, [0x7ff6fb7d26a8]
mov edx, dword [rax + 0xc]
add rdx, qword [0x7ff6fb7d2770]
mov qword [0x7ff6fb7d27b0], rdx
call fcn.7ff6fb7849f4
mov rdx, qword [0x7ff6fb7d26b8]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x7ff6fb7d27b0]
movdqa xmm0, xmmword [0x7ff6fb7b1bb0]
movdqa xmm1, xmmword [0x7ff6fb7b1ba0]
movdqu xmmword [rsp + 0x20], xmm0
lea rbx, [rcx + r10]
mov rax, rbx
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x7ff6fb6aee5a
lea r11, [rbx - 0x10]
nop word [rax + rax]
mov r8, r10
lea rdx, [rsp + 0x20]
nop dword [rax + rax]
movzx r9d, word [rdx]
movzx ecx, r9w
shr cx, 8
cmp cl, 0x3f
je 0x7ff6fb6aee46
cmp byte [r8], r9b
jne 0x7ff6fb6aee6b
inc r8
lea rcx, [rsp + 0x40]
add rdx, 2
cmp rdx, rcx
jne 0x7ff6fb6aee30
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x7ff6fb6aee77
cmp r10, r11
je 0x7ff6fb6aee5a
inc r10
jmp 0x7ff6fb6aee20
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff6fb784990
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret