Function at 0x140018b80
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x14002a380]
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 0x140018bce
jmp 0x140018ecf
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 0x140018bfd
jmp 0x140018ecf
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x58]
test eax, eax
jne 0x140018d92
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140018c30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x140018c3c
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140018d92
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 0x140018d92
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 0x140018d12
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 0x140018cf6
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x140018d02
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 0x140018d5e
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 0x140018d42
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
jmp 0x140018d4e
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, [0x140027470]
lea r8, [0x140027490]
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 0x140018db2
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140018dbf
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 0x140018e0d
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140018de9
mov qword [rsp + 0x80], 8
jmp 0x140018df5
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 0x140018e2f
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
jmp 0x140018e3e
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140018ecf
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140018e6f
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
jmp 0x140018e7e
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.140040b20
jmp 0x140018dcb
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140021990
add rsp, 0xc8
ret