Function at 0x140010270
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14001f010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword gs:[0x58]
mov r14, rdx
mov ebx, 4
mov r15, rcx
mov edi, 1
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x14002007c], eax
jle 0x1400102f4
lea rcx, [0x14002007c]
call fcn.140011a30
cmp dword [0x14002007c], 0xffffffff
jne 0x1400102f4
mov r8d, edi
lea rcx, str.ntoskrnl.exe
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [0x14002007c]
mov qword [0x140020088], rax
call fcn.1400119d0
mov eax, dword [rbx]
cmp dword [0x14002004c], eax
jle 0x14001032d
lea rcx, [0x14002004c]
call fcn.140011a30
cmp dword [0x14002004c], 0xffffffff
jne 0x14001032d
mov rax, qword [0x140020088]
lea rcx, [0x14002004c]
mov qword [0x14001ffa8], rax
call fcn.1400119d0
mov rax, qword [0x14001ffa8]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400106f7
mov eax, dword [rbx]
cmp dword [0x14001fff8], eax
jle 0x140010386
lea rcx, [0x14001fff8]
call fcn.140011a30
cmp dword [0x14001fff8], 0xffffffff
jne 0x140010386
mov rax, qword [0x14001ffa8]
lea rcx, [0x14001fff8]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140020088]
mov qword [0x14001ff48], rdx
call fcn.1400119d0
mov rax, qword [0x14001ff48]
cmp dword [rax], 0x4550
jne 0x1400106f7
mov eax, dword [rbx]
cmp dword [0x140020048], eax
mov qword [rsp + 0x80], rsi
jle 0x1400103e0
lea rcx, [0x140020048]
call fcn.140011a30
cmp dword [0x140020048], 0xffffffff
jne 0x1400103e0
mov rax, qword [0x14001ff48]
lea rcx, [0x140020048]
add rax, 0x108
mov qword [0x14001feb8], rax
call fcn.1400119d0
mov eax, dword [rbx]
cmp dword [0x14001fee0], eax
jle 0x140010419
lea rcx, [0x14001fee0]
call fcn.140011a30
cmp dword [0x14001fee0], 0xffffffff
jne 0x140010419
mov rax, qword [0x14001feb8]
lea rcx, [0x14001fee0]
mov qword [0x1400200a0], rax
call fcn.1400119d0
mov eax, dword [rbx]
cmp dword [0x14001fed4], eax
jle 0x140010456
lea rcx, [0x14001fed4]
call fcn.140011a30
cmp dword [0x14001fed4], 0xffffffff
jne 0x140010456
mov rax, qword [0x14001ff48]
lea rcx, [0x14001fed4]
movzx edx, word [rax + 6]
mov word [0x140020090], dx
call fcn.1400119d0
xchg byte [0x14001fe78], dil
mov rdx, qword [0x14001feb8]
xor esi, esi
test dil, dil
jne 0x1400104c6
movzx eax, word [0x140020090]
lea rcx, [rax + rax*4]
mov rax, qword [0x1400200a0]
lea r8, [rax + rcx*8]
cmp rdx, r8
jae 0x1400104c6
lea r9, str.PAGE
nop dword [rax]
mov rax, rsi
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x1400104b6
cmp rax, 5
jne 0x1400104a0
jmp 0x1400104c6
add rdx, 0x28
mov qword [0x14001feb8], rdx
cmp rdx, r8
jb 0x140010490
mov eax, dword [rbx]
cmp dword [0x1400200b0], eax
jle 0x140010510
lea rcx, [0x1400200b0]
call fcn.140011a30
cmp dword [0x1400200b0], 0xffffffff
jne 0x140010509
mov rax, qword [0x14001feb8]
lea rcx, [0x1400200b0]
mov edx, dword [rax + 0xc]
add rdx, qword [0x140020088]
mov qword [0x14001ff10], rdx
call fcn.1400119d0
mov rdx, qword [0x14001feb8]
mov edx, dword [rdx + 0x10]
movzx eax, byte [r15]
movzx ecx, byte [r14]
mov r10, qword [0x14001ff10]
mov byte [rbp - 0x40], al
movzx eax, byte [r15 + 1]
mov byte [rbp - 0x3f], cl
movzx ecx, byte [r14 + 1]
mov byte [rbp - 0x3e], al
movzx eax, byte [r15 + 2]
mov byte [rbp - 0x3d], cl
movzx ecx, byte [r14 + 2]
mov byte [rbp - 0x3c], al
movzx eax, byte [r15 + 3]
mov byte [rbp - 0x3b], cl
movzx ecx, byte [r14 + 3]
mov byte [rbp - 0x3a], al
movzx eax, byte [r15 + 4]
mov byte [rbp - 0x39], cl
movzx ecx, byte [r14 + 4]
mov byte [rbp - 0x38], al
movzx eax, byte [r15 + 5]
mov byte [rbp - 0x37], cl
movzx ecx, byte [r14 + 5]
mov byte [rbp - 0x36], al
movzx eax, byte [r15 + 6]
mov byte [rbp - 0x35], cl
movzx ecx, byte [r14 + 6]
mov byte [rbp - 0x34], al
movzx eax, byte [r15 + 7]
mov byte [rbp - 0x33], cl
movzx ecx, byte [r14 + 7]
mov byte [rbp - 0x32], al
movzx eax, byte [r15 + 8]
mov byte [rbp - 0x31], cl
movzx ecx, byte [r14 + 8]
mov byte [rbp - 0x30], al
movzx eax, byte [r15 + 9]
mov byte [rbp - 0x2f], cl
movzx ecx, byte [r14 + 9]
mov byte [rbp - 0x2e], al
movzx eax, byte [r15 + 0xa]
mov byte [rbp - 0x2d], cl
movzx ecx, byte [r14 + 0xa]
mov byte [rbp - 0x2c], al
movzx eax, byte [r15 + 0xb]
mov byte [rbp - 0x2b], cl
movzx ecx, byte [r14 + 0xb]
mov byte [rbp - 0x2a], al
movzx eax, byte [r15 + 0xc]
mov byte [rbp - 0x29], cl
movzx ecx, byte [r14 + 0xc]
mov byte [rbp - 0x28], al
movzx eax, byte [r15 + 0xd]
mov byte [rbp - 0x27], cl
movzx ecx, byte [r14 + 0xd]
mov byte [rbp - 0x26], al
movzx eax, byte [r15 + 0xe]
mov byte [rbp - 0x25], cl
movzx ecx, byte [r14 + 0xe]
mov byte [rbp - 0x24], al
movzx eax, byte [r15 + 0xf]
mov byte [rbp - 0x23], cl
movzx ecx, byte [r14 + 0xf]
mov byte [rbp - 0x22], al
movzx eax, byte [r15 + 0x10]
mov byte [rbp - 0x21], cl
movzx ecx, byte [r14 + 0x10]
mov byte [rbp - 0x20], al
movzx eax, byte [r15 + 0x11]
mov byte [rbp - 0x1f], cl
movzx ecx, byte [r14 + 0x11]
mov byte [rbp - 0x1e], al
movzx eax, byte [r15 + 0x12]
mov byte [rbp - 0x1d], cl
movzx ecx, byte [r14 + 0x12]
mov byte [rbp - 0x1c], al
movzx eax, byte [r15 + 0x13]
mov byte [rbp - 0x1b], cl
movzx ecx, byte [r14 + 0x13]
mov byte [rbp - 0x1a], al
movzx eax, byte [r15 + 0x14]
lea rbx, [rdx + r10]
mov byte [rbp - 0x19], cl
movzx ecx, byte [r14 + 0x14]
mov byte [rbp - 0x18], al
movzx eax, byte [r15 + 0x15]
mov byte [rbp - 0x17], cl
movzx ecx, byte [r14 + 0x15]
mov byte [rbp - 0x16], al
movzx eax, byte [r15 + 0x16]
mov byte [rbp - 0x15], cl
movzx ecx, byte [r14 + 0x16]
mov byte [rbp - 0x14], al
mov rax, rbx
mov byte [rbp - 0x13], cl
cmp rdx, 0x17
jb 0x1400106d9
lea r11, [rbx - 0x17]
nop dword [rax]
mov r8, r10
lea rdx, [rbp - 0x40]
nop word [rax + rax]
movzx r9d, word [rdx]
movzx ecx, r9w
shr cx, 8
cmp cl, 0x3f
je 0x1400106c6
cmp byte [r8], r9b
jne 0x1400106ed
inc r8
lea rcx, [rbp - 0x12]
add rdx, 2
cmp rdx, rcx
jne 0x1400106b0
mov rax, r10
cmp rax, rbx
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x80]
jmp 0x1400106f9
cmp r10, r11
je 0x1400106d9
inc r10
jmp 0x1400106a0
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140011810
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret