Function at 0x140007a88
Capabilities:
Access pe header
Allocate or change rwx memory
Attach user process memory
Execute shellcode via indirect call
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x150
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov qword [rsp + 0x70], rcx
and dword [rsp + 0x68], 0
and qword [rsp + 0x58], 0
mov ecx, dword [rcx + 0x808]
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140008124
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
xor r12d, r12d
xor r14d, r14d
mov qword [rsp + 0x78], r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r13b
mov byte [rsp + 0x54], r13b
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001f00
test al, al
je 0x140007b5f
mov eax, dword [rdi + 0x808]
mov dword [rsp + 0x20], eax
lea r9, [0x14000ebd0]
lea r8, [0x14000ebe0]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007b55
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x14000815a
cmp dword [rdi], 2
jne 0x140007c13
mov rcx, qword [rdi + 0x818]
test rcx, rcx
je 0x140007c13
mov edx, dword [rdi + 0x820]
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov edx, dword [rdi + 0x820]
mov ecx, 1
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
mov qword [rsp + 0x78], rax
mov r8d, dword [rdi + 0x820]
mov rdx, qword [rdi + 0x818]
mov rcx, rax
call fcn.1400026c0
jmp 0x140007c13
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rdx, [rdi + 4]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000ec60]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [rdi], 2
jne 0x140007d0b
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rsp + 0xa0]
call fcn.1400025c0
nop
lea rax, [rdi + 0x404]
mov r9d, dword [rdi + 0x820]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x804]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x810]
mov dword [rsp + 0x28], eax
mov al, byte [rdi + 0x824]
mov byte [rsp + 0x20], al
mov r8, r14
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call fcn.14000a6d8
mov dword [rsp + 0x50], eax
jmp 0x140007ce1
lfence
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007d02
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esi, dword [rsp + 0x50]
jmp 0x140008158
mov r8b, r13b
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.1400084d8
mov r13, rax
mov r14d, 0x4d
test rax, rax
jne 0x140007d4c
lea r9, [0x14000ebd0]
lea r8, [0x14000ece0]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov esi, 0xc0000225
test esi, esi
js 0x140007d8d
xor r9d, r9d
mov r8, qword [rsp + 0x58]
lea rdx, [0x14000ed20]
mov rcx, r13
call fcn.140008184
mov r12, rax
test rax, rax
jne 0x140007d8d
lea r9, [0x14000ebd0]
lea r8, [0x14000ed30]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov esi, 0xc0000225
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
test al, al
je 0x140007dce
mov eax, dword [rdi + 0x808]
mov dword [rsp + 0x100], eax
and dword [rsp + 0x104], 0
and dword [rsp + 0x108], 0
and dword [rsp + 0x10c], 0
lea rcx, [rsp + 0x100]
call fcn.14000e544
test esi, esi
js 0x1400080dc
and qword [rsp + 0x70], 0
mov r13b, byte [rsp + 0x54]
lea rdx, [rsp + 0x80]
mov rcx, r12
test r13b, r13b
je 0x140007df8
call fcn.140007954
jmp 0x140007dfd
call fcn.1400077e4
mov qword [rsp + 0x60], rax
mov ecx, dword [rdi]
test ecx, ecx
jne 0x140007f5f
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9b, byte [rdi + 0x80c]
mov r12d, 4
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.140001380
mov esi, eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x68]
test eax, eax
jns 0x140007e66
mov esi, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], eax
lea r9, [0x14000ebd0]
lea r8, [0x14000ed70]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007fad
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + 0x5e0]
test rax, rax
je 0x140007f44
cmp dword [rdi + 0x804], 0
je 0x140007f3f
lea rax, [rcx + 0x210]
lea rcx, [rdi + 0x404]
mov edx, 7
lea r8d, [rdx + 0x79]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r8
sub rdx, 1
jne 0x140007e9f
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 0x210]
mov ecx, dword [rdi + 0x804]
add rcx, qword [rax + 0x5e0]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, r12d
call fcn.140001380
jmp 0x140007fad
test rax, rax
jne 0x140007fad
lea r9, [0x14000ebd0]
lea r8, [0x14000edc0]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007fad
cmp ecx, 1
jne 0x140007f87
lea r9, [rdi + 0x404]
mov r8d, dword [rdi + 0x804]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140007598
mov esi, eax
mov dword [rsp + 0x50], eax
jmp 0x140007fad
mov dword [rsp + 0x20], ecx
lea r9, [0x14000ebd0]
lea r8, [0x14000ee00]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov esi, 0xc000000d
mov dword [rsp + 0x50], esi
test esi, esi
js 0x1400080c2
cmp byte [rdi + 0x80d], 0
je 0x140007fd7
mov r8b, r13b
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x5e0]
mov rcx, qword [rsp + 0x58]
call fcn.140008ff0
cmp byte [rdi + 0x80e], 0
je 0x1400080c2
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x5e0]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x140008086
and dword [rsp + 0x6c], 0
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x60]
add rdx, 0x5e0
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x70]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x14000809f
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x5e0]
call fcn.1400025c0
mov rdx, qword [rsp + 0x60]
add rdx, 0x5e0
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x6c]
lea r8, [rsp + 0x70]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea r8, [0x14000ee50]
jmp 0x14000808d
lea r8, [0x14000ee90]
lea r9, [0x14000ebd0]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x1400080c2
mov r9d, 0x8000
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
cmp dword [rsp + 0x100], 0
je 0x140008114
mov dword [rsp + 0x104], 1
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x10c], 1
lea rcx, [rsp + 0x100]
call fcn.14000e544
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140008148
lfence
mov esi, dword [rsp + 0x50]
mov dword [rsp + 0x20], esi
lea r9, [0x14000ebd0]
lea r8, [0x14000ef30]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140008158
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002410
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret