Function at 0x140020210
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140081040]
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 [0x140082464], eax
jle 0x140020283
lea rcx, [0x140082464]
call fcn.140022340
cmp dword [0x140082464], 0xffffffff
jne 0x140020283
mov r8d, ebx
lea rcx, str.ntoskrnl.exe
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x140082464]
mov qword [0x140082470], rax
call fcn.1400222d4
mov eax, dword [rdi]
cmp dword [0x140082434], eax
jle 0x1400202bc
lea rcx, [0x140082434]
call fcn.140022340
cmp dword [0x140082434], 0xffffffff
jne 0x1400202bc
mov rax, qword [0x140082470]
lea rcx, [0x140082434]
mov qword [0x140082390], rax
call fcn.1400222d4
mov rax, qword [0x140082390]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020555
mov eax, dword [rdi]
cmp dword [0x1400823dc], eax
jle 0x140020315
lea rcx, [0x1400823dc]
call fcn.140022340
cmp dword [0x1400823dc], 0xffffffff
jne 0x140020315
mov rax, qword [0x140082390]
lea rcx, [0x1400823dc]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140082470]
mov qword [0x140082330], rdx
call fcn.1400222d4
mov rax, qword [0x140082330]
cmp dword [rax], 0x4550
jne 0x140020555
mov eax, dword [rdi]
cmp dword [0x140082430], eax
mov qword [rsp + 0x70], rsi
jle 0x14002036c
lea rcx, [0x140082430]
call fcn.140022340
cmp dword [0x140082430], 0xffffffff
jne 0x14002036c
mov rax, qword [0x140082330]
lea rcx, [0x140082430]
add rax, 0x108
mov qword [0x1400822a0], rax
call fcn.1400222d4
mov eax, dword [rdi]
cmp dword [0x1400822c8], eax
jle 0x1400203a5
lea rcx, [0x1400822c8]
call fcn.140022340
cmp dword [0x1400822c8], 0xffffffff
jne 0x1400203a5
mov rax, qword [0x1400822a0]
lea rcx, [0x1400822c8]
mov qword [0x140082488], rax
call fcn.1400222d4
mov eax, dword [rdi]
cmp dword [0x1400822bc], eax
jle 0x1400203e2
lea rcx, [0x1400822bc]
call fcn.140022340
cmp dword [0x1400822bc], 0xffffffff
jne 0x1400203e2
mov rax, qword [0x140082330]
lea rcx, [0x1400822bc]
movzx edx, word [rax + 6]
mov word [0x140082478], dx
call fcn.1400222d4
xchg byte [0x1400821f0], bl
mov rdx, qword [0x1400822a0]
xor esi, esi
test bl, bl
jne 0x140020456
movzx eax, word [0x140082478]
lea rcx, [rax + rax*4]
mov rax, qword [0x140082488]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140020456
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 0x140020446
cmp rcx, 5
jne 0x140020430
jmp 0x140020456
add rdx, 0x28
mov qword [0x1400822a0], rdx
cmp rdx, r8
jb 0x140020420
mov eax, dword [rdi]
cmp dword [0x140082498], eax
jle 0x1400204a0
lea rcx, [0x140082498]
call fcn.140022340
cmp dword [0x140082498], 0xffffffff
jne 0x140020499
mov rax, qword [0x1400822a0]
lea rcx, [0x140082498]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140082470]
mov qword [0x1400822f8], rdx
call fcn.1400222d4
mov rdx, qword [0x1400822a0]
mov ecx, dword [rdx + 0x10]
mov r10, qword [0x1400822f8]
movdqa xmm0, xmmword [0x14007a2b0]
movdqa xmm1, xmmword [0x14007a1f0]
mov dword [rsp + 0x40], 0x3f003f00
mov dword [rsp + 0x44], 0x78483f00
lea rbx, [rcx + r10]
mov dword [rsp + 0x48], 0x78c07885
mov rax, rbx
mov word [rsp + 0x4c], 0x780f
movdqu xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x17
jb 0x14002053a
lea r11, [rbx - 0x17]
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 0x140020526
cmp byte [r8], r9b
jne 0x14002054b
inc r8
lea rcx, [rsp + 0x4e]
add rdx, 2
cmp rdx, rcx
jne 0x140020510
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x140020557
cmp r10, r11
je 0x14002053a
inc r10
jmp 0x140020500
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140022200
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret