Function at 0x140022dc0
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 4
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x140036d40], eax
jle 0x140022e33
lea rcx, [0x140036d40]
call fcn.140025fb8
cmp dword [0x140036d40], 0xffffffff
jne 0x140022e33
mov r8d, ebx
lea rcx, [0x1400296e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x140036d40]
mov qword [0x140036d30], rax
call fcn.140025f4c
mov eax, dword [rdi]
cmp dword [0x140036d80], eax
jle 0x140022e6c
lea rcx, [0x140036d80]
call fcn.140025fb8
cmp dword [0x140036d80], 0xffffffff
jne 0x140022e6c
mov rax, qword [0x140036d30]
lea rcx, [0x140036d80]
mov qword [0x140036e30], rax
call fcn.140025f4c
mov rax, qword [0x140036e30]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140023108
mov eax, dword [rdi]
cmp dword [0x140036ddc], eax
jle 0x140022ec5
lea rcx, [0x140036ddc]
call fcn.140025fb8
cmp dword [0x140036ddc], 0xffffffff
jne 0x140022ec5
mov rax, qword [0x140036e30]
lea rcx, [0x140036ddc]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140036d30]
mov qword [0x140036e90], rdx
call fcn.140025f4c
mov rax, qword [0x140036e90]
cmp dword [rax], 0x4550
jne 0x140023108
mov eax, dword [rdi]
cmp dword [0x140036d84], eax
mov qword [rsp + 0x70], rsi
jle 0x140022f1c
lea rcx, [0x140036d84]
call fcn.140025fb8
cmp dword [0x140036d84], 0xffffffff
jne 0x140022f1c
mov rax, qword [0x140036e90]
lea rcx, [0x140036d84]
add rax, 0x108
mov qword [0x140036f40], rax
call fcn.140025f4c
mov eax, dword [rdi]
cmp dword [0x140036f18], eax
jle 0x140022f55
lea rcx, [0x140036f18]
call fcn.140025fb8
cmp dword [0x140036f18], 0xffffffff
jne 0x140022f55
mov rax, qword [0x140036f40]
lea rcx, [0x140036f18]
mov qword [0x140036d18], rax
call fcn.140025f4c
mov eax, dword [rdi]
cmp dword [0x140036f20], eax
jle 0x140022f92
lea rcx, [0x140036f20]
call fcn.140025fb8
cmp dword [0x140036f20], 0xffffffff
jne 0x140022f92
mov rax, qword [0x140036e90]
lea rcx, [0x140036f20]
movzx edx, word [rax + 6]
mov word [0x140036d28], dx
call fcn.140025f4c
xchg byte [0x140036dc8], bl
mov rdx, qword [0x140036f40]
xor esi, esi
test bl, bl
jne 0x140023006
movzx eax, word [0x140036d28]
lea rcx, [rax + rax*4]
mov rax, qword [0x140036d18]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140023006
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 0x140022ff6
cmp rcx, 5
jne 0x140022fe0
jmp 0x140023006
add rdx, 0x28
mov qword [0x140036f40], rdx
cmp rdx, r8
jb 0x140022fd0
mov eax, dword [rdi]
cmp dword [0x140036d00], eax
jle 0x140023050
lea rcx, [0x140036d00]
call fcn.140025fb8
cmp dword [0x140036d00], 0xffffffff
jne 0x140023049
mov rax, qword [0x140036f40]
lea rcx, [0x140036d00]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140036d30]
mov qword [0x140036ef0], rdx
call fcn.140025f4c
mov rdx, qword [0x140036f40]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x140036ef0]
movdqa xmm0, xmmword [0x140030de0]
movdqa xmm1, xmmword [0x140030da0]
mov dword [rsp + 0x40], 0x3f003f00
mov dword [rsp + 0x44], 0x78483f00
lea r10, [r9 + rcx]
mov dword [rsp + 0x48], 0x78c07885
mov rax, r10
mov word [rsp + 0x4c], 0x780f
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x17
jb 0x1400230ea
lea r11, [r10 - 0x17]
nop word [rax + rax]
mov rdx, r9
lea rax, [rsp + 0x20]
nop dword [rax + rax]
movzx r8d, word [rax]
movzx ecx, r8w
shr cx, 8
cmp cl, 0x3f
je 0x1400230d6
cmp byte [rdx], r8b
jne 0x1400230fb
inc rdx
lea rcx, [rsp + 0x4e]
add rax, 2
cmp rax, rcx
jne 0x1400230c0
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x14002310a
mov rax, r10
cmp r9, r11
je 0x1400230ea
inc r9
jmp 0x1400230b0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025c30
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret