Function at 0x140002b10
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140002b5e
jmp 0x140002e60
lea r9, [rsp + 0xa8]
mov r8w, 9
mov dl, 1
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140002b8d
jmp 0x140002e60
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x58]
test eax, eax
jne 0x140002d22
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002bc0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x140002bcc
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140002d22
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xb0], 0x1000
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jl 0x140002d22
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsGetThreadTeb]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140002ca2
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x202c], ecx
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002c86
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x140002c92
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
jmp 0x140002cee
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002cd2
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
jmp 0x140002cde
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400051c0]
lea r8, [0x1400051e0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x58], 1
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002d42
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140002d4f
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
jmp 0x140002d9d
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002d79
mov qword [rsp + 0x80], 8
jmp 0x140002d85
mov qword [rsp + 0x80], 4
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002dbf
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
jmp 0x140002dce
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140002e60
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002dff
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
jmp 0x140002e0e
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 1
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xd0]
xor ecx, ecx
call fcn.14000f0d0
nop
jmp 0x140002d5b
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140001670
add rsp, 0xc8
ret