Function at 0x140004a80
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140025040]
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 [0x140025d80], eax
jle 0x140004af3
lea rcx, [0x140025d80]
call fcn.1400107b0
cmp dword [0x140025d80], 0xffffffff
jne 0x140004af3
mov r8d, ebx
lea rcx, [0x140018ce8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x140025d80]
mov qword [0x140025d78], rax
call fcn.140010744
mov eax, dword [rdi]
cmp dword [0x140025d9c], eax
jle 0x140004b2c
lea rcx, [0x140025d9c]
call fcn.1400107b0
cmp dword [0x140025d9c], 0xffffffff
jne 0x140004b2c
mov rax, qword [0x140025d78]
lea rcx, [0x140025d9c]
mov qword [0x140025df0], rax
call fcn.140010744
mov rax, qword [0x140025df0]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004dc8
mov eax, dword [rdi]
cmp dword [0x140025db0], eax
jle 0x140004b85
lea rcx, [0x140025db0]
call fcn.1400107b0
cmp dword [0x140025db0], 0xffffffff
jne 0x140004b85
mov rax, qword [0x140025df0]
lea rcx, [0x140025db0]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140025d78]
mov qword [0x140025e08], rdx
call fcn.140010744
mov rax, qword [0x140025e08]
cmp dword [rax], 0x4550
jne 0x140004dc8
mov eax, dword [rdi]
cmp dword [0x140025da0], eax
mov qword [rsp + 0x70], rsi
jle 0x140004bdc
lea rcx, [0x140025da0]
call fcn.1400107b0
cmp dword [0x140025da0], 0xffffffff
jne 0x140004bdc
mov rax, qword [0x140025e08]
lea rcx, [0x140025da0]
add rax, 0x108
mov qword [0x140025e58], rax
call fcn.140010744
mov eax, dword [rdi]
cmp dword [0x140025e48], eax
jle 0x140004c15
lea rcx, [0x140025e48]
call fcn.1400107b0
cmp dword [0x140025e48], 0xffffffff
jne 0x140004c15
mov rax, qword [0x140025e58]
lea rcx, [0x140025e48]
mov qword [0x140025d60], rax
call fcn.140010744
mov eax, dword [rdi]
cmp dword [0x140025e4c], eax
jle 0x140004c52
lea rcx, [0x140025e4c]
call fcn.1400107b0
cmp dword [0x140025e4c], 0xffffffff
jne 0x140004c52
mov rax, qword [0x140025e08]
lea rcx, [0x140025e4c]
movzx edx, word [rax + 6]
mov word [0x140025d70], dx
call fcn.140010744
xchg byte [0x140025dac], bl
mov rdx, qword [0x140025e58]
xor esi, esi
test bl, bl
jne 0x140004cc6
movzx eax, word [0x140025d70]
lea rcx, [rax + rax*4]
mov rax, qword [0x140025d60]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x140004cc6
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 0x140004cb6
cmp rcx, 5
jne 0x140004ca0
jmp 0x140004cc6
add rdx, 0x28
mov qword [0x140025e58], rdx
cmp rdx, r8
jb 0x140004c90
mov eax, dword [rdi]
cmp dword [0x140025d54], eax
jle 0x140004d10
lea rcx, [0x140025d54]
call fcn.1400107b0
cmp dword [0x140025d54], 0xffffffff
jne 0x140004d09
mov rax, qword [0x140025e58]
lea rcx, [0x140025d54]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140025d78]
mov qword [0x140025e30], rdx
call fcn.140010744
mov rdx, qword [0x140025e58]
mov ecx, dword [rdx + 0x10]
mov r9, qword [0x140025e30]
movdqa xmm0, xmmword [0x14001f000]
movdqa xmm1, xmmword [0x14001efe0]
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 0x140004daa
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 0x140004d96
cmp byte [rdx], r8b
jne 0x140004dbb
inc rdx
lea rcx, [rsp + 0x4e]
add rax, 2
cmp rax, rcx
jne 0x140004d80
mov rax, r9
cmp rax, r10
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x70]
jmp 0x140004dca
mov rax, r10
cmp r9, r11
je 0x140004daa
inc r9
jmp 0x140004d70
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400106e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret