Function at 0x140027040
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov ebx, 1
mov edi, 4
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x1400c6b90], eax
jle 0x1400270a4
lea rcx, [0x1400c6b90]
call fcn.14009f2b8
cmp dword [0x1400c6b90], 0xffffffff
jne 0x1400270a4
mov r8d, ebx
lea rcx, str.ntoskrnl.exe
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x1400c6b90]
mov qword [0x1400c69f0], rax
call fcn.14009f24c
mov eax, dword [rdi]
cmp dword [0x1400c69d0], eax
jle 0x1400270dd
lea rcx, [0x1400c69d0]
call fcn.14009f2b8
cmp dword [0x1400c69d0], 0xffffffff
jne 0x1400270dd
mov rax, qword [0x1400c69f0]
lea rcx, [0x1400c69d0]
mov qword [0x1400c6ad8], rax
call fcn.14009f24c
mov rax, qword [0x1400c6ad8]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027361
mov eax, dword [rdi]
cmp dword [0x1400c69dc], eax
jle 0x140027136
lea rcx, [0x1400c69dc]
call fcn.14009f2b8
cmp dword [0x1400c69dc], 0xffffffff
jne 0x140027136
mov rax, qword [0x1400c6ad8]
lea rcx, [0x1400c69dc]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x1400c69f0]
mov qword [0x1400c6a50], rdx
call fcn.14009f24c
mov rax, qword [0x1400c6a50]
cmp dword [rax], 0x4550
jne 0x140027361
mov eax, dword [rdi]
cmp dword [0x1400c6b64], eax
mov qword [rsp + 0x50], rsi
jle 0x14002718d
lea rcx, [0x1400c6b64]
call fcn.14009f2b8
cmp dword [0x1400c6b64], 0xffffffff
jne 0x14002718d
mov rax, qword [0x1400c6a50]
lea rcx, [0x1400c6b64]
add rax, 0x108
mov qword [0x1400c6bb8], rax
call fcn.14009f24c
mov eax, dword [rdi]
cmp dword [0x1400c6b60], eax
jle 0x1400271c6
lea rcx, [0x1400c6b60]
call fcn.14009f2b8
cmp dword [0x1400c6b60], 0xffffffff
jne 0x1400271c6
mov rax, qword [0x1400c6bb8]
lea rcx, [0x1400c6b60]
mov qword [0x1400c69a0], rax
call fcn.14009f24c
mov eax, dword [rdi]
cmp dword [0x1400c6a5c], eax
jle 0x140027203
lea rcx, [0x1400c6a5c]
call fcn.14009f2b8
cmp dword [0x1400c6a5c], 0xffffffff
jne 0x140027203
mov rax, qword [0x1400c6a50]
lea rcx, [0x1400c6a5c]
movzx edx, word [rax + 6]
mov word [0x1400c69d4], dx
call fcn.14009f24c
xchg byte [0x1400c67a2], bl
mov rdx, qword [0x1400c6bb8]
xor esi, esi
test bl, bl
jne 0x140027276
movzx eax, word [0x1400c69d4]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400c69a0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140027276
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 0x140027266
cmp rcx, 5
jne 0x140027250
jmp 0x140027276
add rdx, 0x28
mov qword [0x1400c6bb8], rdx
cmp rdx, r8
jb 0x140027240
mov eax, dword [rdi]
cmp dword [0x1400c6bcc], eax
jle 0x1400272c0
lea rcx, [0x1400c6bcc]
call fcn.14009f2b8
cmp dword [0x1400c6bcc], 0xffffffff
jne 0x1400272b9
mov rax, qword [0x1400c6bb8]
lea rcx, [0x1400c6bcc]
mov edx, dword [rax + 0xc]
add rdx, qword [0x1400c69f0]
mov qword [0x1400c6980], rdx
call fcn.14009f24c
mov rdx, qword [0x1400c6bb8]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x1400c6980]
movdqa xmm0, xmmword [0x1400b1860]
movdqa xmm1, xmmword [0x1400b1850]
movdqu xmmword [rsp + 0x20], xmm0
lea r10, [r9 + rcx]
mov rax, r10
movdqu xmmword [rsp + 0x30], xmm1
cmp rcx, 0x10
jb 0x14002733a
lea r11, [r10 - 0x10]
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 0x140027326
cmp byte [rdx], r8b
jne 0x140027354
inc rdx
lea rcx, [rsp + 0x40]
add rax, 2
cmp rax, rcx
jne 0x140027310
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rax, r10
cmp r9, r11
je 0x14002733a
inc r9
jmp 0x140027300
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret