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 r15
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 dword [rsp + 0x50], eax
test eax, eax
js 0x1400080cd
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
xor r15d, r15d
xor esi, esi
mov qword [rsp + 0x78], rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r13, rax
test rax, rax
setne r12b
mov byte [rsp + 0x54], r12b
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001ee8
test al, al
je 0x140007b2b
mov eax, dword [rdi + 0x808]
mov dword [rsp + 0x20], eax
lea r9, [0x14000e9d0]
lea r8, [0x14000e9e0]
xor edx, edx
lea ecx, [rsi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007b21
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x140008105
cmp dword [rdi], 2
jne 0x140007be3
mov rcx, qword [rdi + 0x818]
test rcx, rcx
je 0x140007be3
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, 0x6274754f
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov qword [rsp + 0x78], rax
mov r8d, dword [rdi + 0x820]
mov rdx, qword [rdi + 0x818]
mov rcx, rax
call fcn.140002840
jmp 0x140007be3
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, [0x14000ea50]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [rdi], 2
jne 0x140007cb9
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, rsi
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call fcn.14000a640
mov dword [rsp + 0x50], eax
jmp 0x140007cb1
lfence
jmp 0x1400080bd
mov r8b, r12b
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.140008488
mov r12, rax
mov esi, 0x4d
test rax, rax
jne 0x140007cfb
lea r9, [0x14000e9d0]
lea r8, [0x14000eac0]
xor edx, edx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x50], 0xc0000225
cmp dword [rsp + 0x50], 0
jl 0x140007d41
xor r9d, r9d
mov r8, qword [rsp + 0x58]
lea rdx, [0x14000eaf0]
mov rcx, r12
call fcn.140008130
mov r15, rax
test rax, rax
jne 0x140007d41
lea r9, [0x14000e9d0]
lea r8, [0x14000eb00]
xor edx, edx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x50], 0xc0000225
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
test al, al
je 0x140007d82
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.14000e354
cmp dword [rsp + 0x50], 0
jl 0x140008085
and qword [rsp + 0x70], 0
lea rdx, [rsp + 0x80]
mov rcx, r15
test r13, r13
je 0x140007daa
call fcn.140007920
jmp 0x140007daf
call fcn.1400077b0
mov qword [rsp + 0x60], rax
mov ecx, dword [rdi]
test ecx, ecx
jne 0x140007f0b
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9b, byte [rdi + 0x80c]
mov r15d, 4
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1400013d4
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x68]
test eax, eax
jns 0x140007e13
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], eax
lea r9, [0x14000e9d0]
lea r8, [0x14000eb40]
xor edx, edx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007f55
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + 0x5e0]
test rax, rax
je 0x140007ef1
cmp dword [rdi + 0x804], 0
je 0x140007eec
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 0x140007e4c
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, r15d
call fcn.1400013d4
jmp 0x140007f55
test rax, rax
jne 0x140007f55
lea r9, [0x14000e9d0]
lea r8, [0x14000eb80]
xor edx, edx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140007f55
cmp ecx, 1
jne 0x140007f31
lea r9, [rdi + 0x404]
mov r8d, dword [rdi + 0x804]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140007564
mov dword [rsp + 0x50], eax
jmp 0x140007f55
mov dword [rsp + 0x20], ecx
lea r9, [0x14000e9d0]
lea r8, [0x14000ebb0]
xor edx, edx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x50], 0xc000000d
cmp dword [rsp + 0x50], 0
jl 0x14000806b
cmp byte [rdi + 0x80d], 0
je 0x140007f84
mov r8b, byte [rsp + 0x54]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x5e0]
mov rcx, qword [rsp + 0x58]
call fcn.140008fb4
cmp byte [rdi + 0x80e], 0
je 0x14000806b
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x5e0]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x140008033
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 0x14000804b
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, [0x14000ebf0]
jmp 0x14000803a
lea r8, [0x14000ec20]
lea r9, [0x14000e9d0]
xor edx, edx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000806b
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 0x1400080bd
mov dword [rsp + 0x104], 1
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x10c], 1
lea rcx, [rsp + 0x100]
call fcn.14000e354
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400080f1
lfence
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, [0x14000e9d0]
lea r8, [0x14000eca0]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140008101
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400023d0
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r13
pop r12
ret