Function at 0x140001844
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x140006450]
xor rax, rsp
mov qword [rbp + 0x17], rax
and qword [rbp - 0x69], 0
xorps xmm0, xmm0
mov r15, rdx
mov esi, ecx
lea rdx, [rbp - 0x69]
mov ecx, ecx
movups xmmword [rbp - 0x19], xmm0
mov edi, r8d
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
je 0x1400018b0
xor edx, edx
lea r8, [0x140002ff0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x140001ac4
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessExitStatus]
cmp eax, 0x103
je 0x1400018e7
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea r8, [0x140003000]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000001
jmp 0x140001ac4
lea r8, [0x140003010]
mov rcx, rsi
lea rdx, [0x140003020]
call fcn.140001494
mov r14, rax
test rax, rax
jne 0x14000190e
lea r8, [0x140003040]
jmp 0x1400018d2
mov rdx, rdi
xor ecx, ecx
mov rbx, rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
jne 0x14000192d
lea r8, [0x140003060]
jmp 0x1400018d2
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.140002a40
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rbp - 0x61], 0
lea r9, [rbp - 0x59]
or r13, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x40
mov rcx, r13
mov qword [rbp - 0x59], rbx
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x61]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov r15d, eax
test eax, eax
jns 0x14000198d
lea r8, [0x140003070]
jmp 0x140001ab6
mov rcx, qword [rbp - 0x61]
mov r8, rbx
mov rdx, rdi
call fcn.140002a40
mov r8, qword [rbp - 0x61]
lea r9, [rbp - 0x51]
and qword [rbp - 0x51], 0
mov rdx, r14
mov rcx, rsi
call section..text
test al, al
jne 0x140001a05
xor edx, edx
lea r8, [0x1400030a0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov r9d, 0x8000
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x61]
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400018dd
mov ecx, 0x2dc6c0
call qword [sym.imp.HAL.dll_KeStallExecutionProcessor]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, qword [rax + 0x18]
add rsi, 0x10
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x140001a79
movups xmm0, xmmword [rbx + 0x48]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x39]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x49], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
mov rcx, qword [rbx]
test al, al
jne 0x140001ae2
mov rbx, rcx
cmp rcx, rsi
jne 0x140001a2a
mov r9d, 0x8000
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x61]
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
lea r8, [0x1400030f0]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, r15d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400027c0
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp qword [rcx + 8], rbx
jne 0x140001b49
mov rax, qword [rbx + 8]
cmp qword [rax], rbx
jne 0x140001b49
mov qword [rax], rcx
mov qword [rcx + 8], rax
lea rax, [rbx + 0x10]
mov rdx, qword [rax]
cmp qword [rdx + 8], rax
jne 0x140001b49
mov rcx, qword [rax + 8]
cmp qword [rcx], rax
jne 0x140001b49
mov qword [rcx], rdx
add rbx, 0x20
mov qword [rdx + 8], rcx
mov rcx, qword [rbx]
cmp qword [rcx + 8], rbx
jne 0x140001b49
mov rax, qword [rbx + 8]
cmp qword [rax], rbx
jne 0x140001b49
mov qword [rax], rcx
lea r8, [0x1400030d0]
xor edx, edx
mov qword [rcx + 8], rax
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140001a79
mov ecx, 3
int 0x29