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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
and rax, 0xfff
mov eax, eax
mov rcx, qword [rsp + 0x120]
mov ecx, dword [rcx + 0xc]
lea rax, [rax + rcx + 0xfff]
shr rax, 0xc
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x70], 0
mov byte [rsp + 0xd0], 0
mov byte [rsp + 0x44], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x120]
mov rcx, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rcx]
cmp qword [rax], rcx
jae 0x140011fc7
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x120]
add rax, qword [rcx]
mov rcx, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
cmp rax, qword [rcx]
jbe 0x140012017
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x120]
add rax, qword [rcx]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [0x140016f80]
lea r8, [0x140016fa0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000141
jmp 0x140012567
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeAcquireGuardedMutex]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
and rax, 0xfffffffffffff000
mov rcx, qword [rsp + 0x120]
mov qword [rcx], rax
mov eax, dword [rsp + 0x64]
shl eax, 0xc
mov rcx, qword [rsp + 0x120]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 8]
mov qword [rsp + 0x90], rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400120d2
lfence
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x140016f80]
lea r8, [0x140016fe0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, dword [rsp + 0x40]
jmp 0x140012567
mov rcx, qword [rsp + 0x70]
call fcn.140003190
movzx eax, al
test eax, eax
je 0x14001212d
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x140016f80]
lea r8, [0x140015330]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, 0xc000010a
jmp 0x140012567
lea r9, [rsp + 0xd0]
mov r8d, 0x48
lea rdx, [rsp + 0x80]
lea rcx, [0x1400064a0]
call qword [sym.imp.ntoskrnl.exe_RtlInsertElementGenericTableAvl]
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x1400121bd
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x140016f80]
lea r8, [0x140017010]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [rsp + 0x48]
add rax, 0x38
mov rcx, rax
call fcn.140001070
mov rax, qword [rsp + 0x48]
add rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, 0x20
mov rdx, rax
call fcn.140010af0
mov dword [rsp + 0x40], eax
jmp 0x140012322
mov qword [rsp + 0x50], 0
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x48]
cmp qword [rcx], rax
je 0x140012204
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x140012204
lea r9, [0x140016f80]
lea r8, [0x140017050]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x40], 0xc000000d
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, 0x38
mov r8d, eax
mov rax, qword [rsp + 0x120]
mov rdx, qword [rax]
call fcn.140011410
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140012322
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
cmp qword [rax], rcx
jb 0x140012283
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x120]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rsp + 0x50]
add rcx, qword [rdx + 0x28]
cmp rax, rcx
jbe 0x14001231d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x120]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x120]
add rcx, qword [rdx]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [0x140016f80]
lea r8, [0x140017090]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x60], eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.1400130c0
mov dword [rsp + 0x40], eax
jmp 0x140012322
mov byte [rsp + 0x44], 1
movzx eax, byte [rsp + 0x44]
test eax, eax
jne 0x140012444
cmp dword [rsp + 0x40], 0
jl 0x140012444
lfence
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x120]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x48]
add rcx, 0x38
mov r9b, 1
mov r8, rax
mov rax, qword [rsp + 0x120]
mov rdx, qword [rax]
call fcn.140010c30
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400123ad
lfence
mov rax, qword [rsp + 0x48]
add rax, 0x38
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140012a90
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400123e1
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x1400123e1
lfence
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call fcn.140012940
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp dword [rsp + 0x40], 0
jl 0x140012423
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x140012423
lfence
mov rax, qword [rsp + 0x48]
add rax, 8
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x28]
call fcn.140012940
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140012444
lfence
mov rax, qword [rsp + 0x48]
add rax, 0x38
mov dl, 1
mov rcx, rax
call fcn.140012810
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x70], 0
je 0x140012457
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x40], 0
jl 0x140012542
cmp qword [rsp + 0x128], 0
je 0x140012542
lfence
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, 0x38
mov r8d, eax
mov rax, qword [rsp + 0x120]
mov rdx, qword [rax]
call fcn.140011410
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140012542
lfence
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [0x140016f80]
lea r8, [0x1400170e0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x40]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x28]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x128]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x1c], ecx
cmp dword [rsp + 0x40], 0
jge 0x140012556
lfence
mov rcx, qword [rsp + 0x48]
call fcn.1400110e0
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x110
pop rdi
ret