Function at 0x140027370
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 4
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x1400c6b94], eax
jle 0x1400273d4
lea rcx, [0x1400c6b94]
call fcn.14009f2b8
cmp dword [0x1400c6b94], 0xffffffff
jne 0x1400273d4
mov r8d, ebx
lea rcx, str.ntoskrnl.exe
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1400c6b94]
mov qword [0x1400c6ba8], rax
call fcn.14009f24c
mov eax, dword [rdi]
cmp dword [0x1400c6b5c], eax
jle 0x14002740d
lea rcx, [0x1400c6b5c]
call fcn.14009f2b8
cmp dword [0x1400c6b5c], 0xffffffff
jne 0x14002740d
mov rax, qword [0x1400c6ba8]
lea rcx, [0x1400c6b5c]
mov qword [0x1400c6ab0], rax
call fcn.14009f24c
mov rax, qword [0x1400c6ab0]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400276b1
mov eax, dword [rdi]
cmp dword [0x1400c6b00], eax
jle 0x140027466
lea rcx, [0x1400c6b00]
call fcn.14009f2b8
cmp dword [0x1400c6b00], 0xffffffff
jne 0x140027466
mov rax, qword [0x1400c6ab0]
lea rcx, [0x1400c6b00]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1400c6ba8]
mov qword [0x1400c6a28], rdx
call fcn.14009f24c
mov rax, qword [0x1400c6a28]
cmp dword [rax], 0x4550
jne 0x1400276b1
mov eax, dword [rdi]
cmp dword [0x1400c6b58], eax
mov qword [rsp + 0x60], rsi
jle 0x1400274bd
lea rcx, [0x1400c6b58]
call fcn.14009f2b8
cmp dword [0x1400c6b58], 0xffffffff
jne 0x1400274bd
mov rax, qword [0x1400c6a28]
lea rcx, [0x1400c6b58]
add rax, 0x108
mov qword [0x1400c6988], rax
call fcn.14009f24c
mov eax, dword [rdi]
cmp dword [0x1400c69b8], eax
jle 0x1400274f6
lea rcx, [0x1400c69b8]
call fcn.14009f2b8
cmp dword [0x1400c69b8], 0xffffffff
jne 0x1400274f6
mov rax, qword [0x1400c6988]
lea rcx, [0x1400c69b8]
mov qword [0x1400c6bc0], rax
call fcn.14009f24c
mov eax, dword [rdi]
cmp dword [0x1400c69ac], eax
jle 0x140027533
lea rcx, [0x1400c69ac]
call fcn.14009f2b8
cmp dword [0x1400c69ac], 0xffffffff
jne 0x140027533
mov rax, qword [0x1400c6a28]
lea rcx, [0x1400c69ac]
movzx edx, word [rax + 6]
mov word [0x1400c6bb0], dx
call fcn.14009f24c
xchg byte [0x1400c67a0], bl
mov rdx, qword [0x1400c6988]
xor esi, esi
test bl, bl
jne 0x1400275a6
movzx eax, word [0x1400c6bb0]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400c6bc0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x1400275a6
lea r9, str.PAGE
nop dword [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 0x140027596
cmp rcx, 5
jne 0x140027580
jmp 0x1400275a6
add rdx, 0x28
mov qword [0x1400c6988], rdx
cmp rdx, r8
jb 0x140027570
mov eax, dword [rdi]
cmp dword [0x1400c6bd0], eax
jle 0x1400275f0
lea rcx, [0x1400c6bd0]
call fcn.14009f2b8
cmp dword [0x1400c6bd0], 0xffffffff
jne 0x1400275e9
mov rax, qword [0x1400c6988]
lea rcx, [0x1400c6bd0]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1400c6ba8]
mov qword [0x1400c69e8], rdx
call fcn.14009f24c
mov rdx, qword [0x1400c6988]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x1400c69e8]
movdqa xmm0, xmmword [0x1400b1860]
movdqa xmm1, xmmword [0x1400b17e0]
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 0x14002768a
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 0x140027676
cmp byte [rdx], r8b
jne 0x1400276a4
inc rdx
lea rcx, [rsp + 0x4e]
add rax, 2
cmp rax, rcx
jne 0x140027660
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rax, r10
cmp r9, r11
je 0x14002768a
inc r9
jmp 0x140027650
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rdi
ret