Function at 0x140002510
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call fcn.140003310
movzx eax, al
test eax, eax
je 0x140002546
xor eax, eax
jmp 0x14000282f
cmp dword [rsp + 0x110], 0
ja 0x140002557
xor eax, eax
jmp 0x14000282f
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
lea rdx, [0x140004d30]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x40], rax
lea rdx, [0x140004d70]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140002626
cmp qword [rsp + 0x40], 0
jne 0x14000262d
xor eax, eax
jmp 0x14000282f
mov eax, dword [rsp + 0x110]
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x14000281f
cmp qword [rsp + 0x20], 0
je 0x14000281f
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x88]
call qword [0x1400061c0]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140002744
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0xc]
mov eax, dword [rax + 0x14]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 8
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x30]
mov edx, eax
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
movzx eax, al
test eax, eax
je 0x140002723
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x14000273f
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x28], rax
jne 0x1400026ba
jmp 0x140002811
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [0x1400061c0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
sub rax, 0x10
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax + 0x60]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
movzx eax, al
test eax, eax
je 0x1400027f4
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x78], rax
jmp 0x140002811
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
jne 0x14000278b
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400042b0
add rsp, 0x100
pop rdi
ret