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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov byte [rsp + 0xf0], 0
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax]
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
jne 0x140011a53
mov eax, 0xc000000d
jmp 0x140011ecd
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax]
mov qword [rsp + 0xb0], rax
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeAcquireGuardedMutex]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140011ad1
lfence
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [0x140016e40]
lea r8, [0x140016e50]
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 + 0x30]
jmp 0x140011ecd
mov rcx, qword [rsp + 0x50]
call fcn.140003190
movzx eax, al
test eax, eax
je 0x140011b2c
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [0x140016e40]
lea r8, [0x140015330]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, 0xc000010a
jmp 0x140011ecd
lea r9, [rsp + 0xf0]
mov r8d, 0x48
lea rdx, [rsp + 0xa0]
lea rcx, [0x1400064a0]
call qword [sym.imp.ntoskrnl.exe_RtlInsertElementGenericTableAvl]
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0xf0]
test eax, eax
je 0x140011da0
mov rax, qword [rsp + 0x38]
add rax, 0x38
mov rcx, rax
call fcn.140001070
mov rax, qword [rsp + 0x38]
add rax, 0x28
mov rcx, qword [rsp + 0x38]
add rcx, 0x20
mov rdx, rax
call fcn.140010af0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140011d9e
lfence
lea rax, [rsp + 0xf8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x38]
add rax, 0x38
mov rcx, qword [rsp + 0x1e0]
movzx r9d, byte [rcx + 0x44]
mov rcx, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov r8, qword [rcx]
mov edx, 0x10000
mov rcx, rax
call fcn.140010c30
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140011c1d
lfence
mov rax, qword [rsp + 0x38]
add rax, 0x38
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.140012a90
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140011c45
lfence
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x28]
call fcn.140012940
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140011d90
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x1e0]
movzx eax, word [rcx + rax + 4]
test eax, eax
je 0x140011d90
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x140]
mov qword [rsp + 0x60], rax
mov eax, 0x80
mov word [rsp + 0x5a], ax
mov rax, qword [rsp + 0x1e0]
add rax, 4
mov r8, rax
lea rdx, [0x140016e90]
lea rcx, [rsp + 0x58]
call fcn.140002690
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140011d63
lfence
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x38]
add rax, 0x30
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0xf8]
lea r8, [rsp + 0x68]
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140011d90
lfence
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [0x140016e40]
lea r8, [0x140016eb0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140011e14
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [0x140016e40]
lea r8, [0x140016ef0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x38]
cmp qword [rcx], rax
je 0x140011e14
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011e14
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [0x140016e40]
lea r8, [0x140016f30]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x30], 0xc000020a
cmp dword [rsp + 0x30], 0
jl 0x140011e70
movzx eax, byte [rsp + 0xf0]
test eax, eax
jne 0x140011e32
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
jne 0x140011e70
lfence
mov rax, qword [rsp + 0x38]
add rax, 0x38
xor edx, edx
mov rcx, rax
call fcn.140012810
mov rax, qword [rsp + 0x38]
add rax, 8
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x28]
call fcn.140012940
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
cmp qword [rsp + 0x1e8], 0
je 0x140011e8b
mov rax, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
cmp qword [rsp + 0x50], 0
je 0x140011e9e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [rsp + 0x30], 0
jge 0x140011ebc
cmp dword [rsp + 0x30], 0xc000020a
je 0x140011ebc
lfence
mov rcx, qword [rsp + 0x38]
call fcn.1400110e0
lea rcx, [0x140006460]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x1d0
pop rdi
ret