Function at 0x140007a54
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 + 0x54], eax
test eax, eax
js 0x1400080fc
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]
mov qword [rsp + 0x60], rax
test rax, rax
setne r13b
mov byte [rsp + 0x50], r13b
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001ee8
test al, al
je 0x140007b30
mov eax, dword [rdi + 0x808]
mov dword [rsp + 0x20], eax
lea r9, [0x14000e9b0]
lea r8, [0x14000e9c0]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007b26
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x14000812e
cmp dword [rdi], 2
jne 0x140007be8
mov rcx, qword [rdi + 0x818]
test rcx, rcx
je 0x140007be8
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.140002840
jmp 0x140007be8
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, [0x14000ea30]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [rdi], 2
jne 0x140007ce3
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rsp + 0xa0]
call fcn.140002640
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.14000a658
mov edi, eax
mov dword [rsp + 0x54], eax
jmp 0x140007cbb
lfence
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007cdc
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x14000812e
mov r8b, r13b
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.1400084b0
mov r13, rax
mov r14d, 0x4d
test rax, rax
jne 0x140007d24
lea r9, [0x14000e9b0]
lea r8, [0x14000eaa0]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov esi, 0xc0000225
test esi, esi
js 0x140007d65
xor r9d, r9d
mov r8, qword [rsp + 0x58]
lea rdx, [0x14000ead0]
mov rcx, r13
call fcn.140008158
mov r12, rax
test rax, rax
jne 0x140007d65
lea r9, [0x14000e9b0]
lea r8, [0x14000eae0]
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 0x140007da6
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.14000e334
test esi, esi
js 0x1400080b4
and qword [rsp + 0x70], 0
lea rdx, [rsp + 0x80]
mov rcx, r12
cmp qword [rsp + 0x60], 0
je 0x140007dce
call fcn.140007920
jmp 0x140007dd3
call fcn.1400077b0
mov qword [rsp + 0x60], rax
mov ecx, dword [rdi]
test ecx, ecx
jne 0x140007f35
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.1400013d4
mov esi, eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x68]
test eax, eax
jns 0x140007e3c
mov esi, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], eax
lea r9, [0x14000e9b0]
lea r8, [0x14000eb20]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007f83
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + 0x5e0]
test rax, rax
je 0x140007f1a
cmp dword [rdi + 0x804], 0
je 0x140007f15
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 0x140007e75
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.1400013d4
jmp 0x140007f83
test rax, rax
jne 0x140007f83
lea r9, [0x14000e9b0]
lea r8, [0x14000eb60]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007f83
cmp ecx, 1
jne 0x140007f5d
lea r9, [rdi + 0x404]
mov r8d, dword [rdi + 0x804]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140007564
mov esi, eax
mov dword [rsp + 0x54], eax
jmp 0x140007f83
mov dword [rsp + 0x20], ecx
lea r9, [0x14000e9b0]
lea r8, [0x14000eb90]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov esi, 0xc000000d
mov dword [rsp + 0x54], esi
test esi, esi
js 0x14000809a
cmp byte [rdi + 0x80d], 0
je 0x140007faf
mov r8b, byte [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x5e0]
mov rcx, qword [rsp + 0x58]
call fcn.140008fd4
cmp byte [rdi + 0x80e], 0
je 0x14000809a
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x5e0]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x14000805e
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 0x140008077
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x5e0]
call fcn.140002640
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, [0x14000ebd0]
jmp 0x140008065
lea r8, [0x14000ec00]
lea r9, [0x14000e9b0]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000809a
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 0x1400080ec
mov dword [rsp + 0x104], 1
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x10c], 1
lea rcx, [rsp + 0x100]
call fcn.14000e334
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000811c
lfence
mov dword [rsp + 0x20], eax
lea r9, [0x14000e9b0]
lea r8, [0x14000ec80]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000812c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400025d0
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret