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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140014447
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x5c], 0
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call fcn.140015080
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14001443a
cmp dword [rsp + 0x58], 1
jne 0x140014409
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
and rax, 0xfffffffffffff000
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
and rax, 0xfff
mov eax, eax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 8]
lea rax, [rax + rcx + 0xfff]
shr rax, 0xc
shl rax, 0xc
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 8], rax
xor edx, edx
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x14]
call fcn.140003df0
mov r8d, eax
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call fcn.140015110
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x140014362
mov rax, qword [rsp + 0x40]
add rax, 0x1000
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xb0]
add rax, qword [rcx + 8]
cmp qword [rsp + 0x40], rax
jae 0x140014407
lfence
mov rcx, qword [rsp + 0x40]
call fcn.1400106a0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x14]
and eax, 0xf0
test eax, eax
je 0x1400143c7
mov rax, qword [rsp + 0x38]
movabs rcx, 0x7fffffffffffffff
mov rax, qword [rax]
and rax, rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x14]
and eax, 0x32
test eax, eax
je 0x140014402
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
btr rax, 0xb
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
and rax, 0xfffffffffffffffd
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
jmp 0x140014352
jmp 0x14001443a
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax + 0x14]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14001446d
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x140017510]
lea r8, [0x1400155f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x48], 0
je 0x140014480
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140003e80
add rsp, 0xa8
ret