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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r13d, r13d
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x38], r13
xor edx, edx
lea rcx, [rbp - 0x60]
lea edi, [r13 + 0x48]
mov r8d, edi
call fcn.140002640
mov ebx, dword [r14]
mov byte [rsp + 0x30], r13b
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp rbx, rax
jne 0x14000c989
mov eax, 0xc000000d
jmp 0x14000cc28
lea rcx, [0x1400054c0]
mov qword [rbp - 0x50], rbx
call qword [sym.imp.ntoskrnl.exe_KeAcquireGuardedMutex]
mov rcx, qword [rbp - 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x14000c9d9
lfence
mov rcx, qword [rbp - 0x50]
lea r9, [0x1400101d0]
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r8, [0x1400101e0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000cc19
mov rcx, qword [rsp + 0x38]
call fcn.140001ee8
test al, al
je 0x14000ca1e
mov rax, qword [rbp - 0x50]
lea r9, [0x1400101d0]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [0x14000e9c0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 0xc000010a
jmp 0x14000cc19
lfence
lea r9, [rsp + 0x30]
mov r8d, edi
lea rdx, [rbp - 0x60]
lea rcx, [0x140005500]
call qword [sym.imp.ntoskrnl.exe_RtlInsertElementGenericTableAvl]
mov rdi, rax
cmp byte [rsp + 0x30], r13b
je 0x14000cc52
lea rsi, [rax + 0x38]
lea rcx, [rax + 0x20]
mov qword [rsi + 8], rsi
lea rdx, [rax + 0x28]
mov qword [rsi], rsi
call fcn.14000bff0
mov ebx, eax
test eax, eax
js 0x14000cbe1
lfence
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov edx, 0x10000
mov r9b, byte [r14 + 0x44]
mov rcx, rsi
mov r8, qword [r8]
call fcn.14000c0a0
mov ebx, eax
test eax, eax
js 0x14000cba3
lfence
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.14000d414
mov ebx, eax
test eax, eax
js 0x14000cba3
lfence
mov rcx, qword [rdi + 0x28]
lea rdx, [rdi + 0x18]
call fcn.14000d34c
mov ebx, eax
test eax, eax
js 0x14000cba3
lea rsi, [r14 + 4]
cmp word [rsi], r13w
je 0x14000cba3
mov r14d, 0x80
lea rcx, [rbp + 0x20]
mov r8d, r14d
xor edx, edx
call fcn.140002640
xorps xmm0, xmm0
lea rax, [rbp + 0x20]
movups xmmword [rsp + 0x40], xmm0
mov r8, rsi
mov qword [rsp + 0x48], rax
lea rdx, [0x140010220]
mov word [rsp + 0x42], r14w
lea rcx, [rsp + 0x40]
call fcn.1400018e8
test eax, eax
js 0x14000cb83
lfence
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r13d
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
lea rcx, [rdi + 0x30]
mov qword [rsp + 0x58], 0x30
lea r9, [rbp - 0x78]
mov qword [rsp + 0x70], 0x40
lea r8, [rsp + 0x58]
mov qword [rsp + 0x60], r13
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
movdqu xmmword [rsp + 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jns 0x14000cba3
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x1400101d0]
lea r8, [0x140010240]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x14000cbe1
cmp byte [rsp + 0x30], r13b
jne 0x14000cbbd
cmp qword [rdi], r13
jne 0x14000cbe1
lfence
lea rcx, [rdi + 0x38]
xor edx, edx
call fcn.14000d280
mov rcx, qword [rdi + 0x28]
lea rdx, [rdi + 8]
call fcn.14000d34c
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rdi], rax
test r12, r12
je 0x14000cbea
mov qword [r12], rdi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000cbfa
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, 0x80000000
lea eax, [rbx + rdx]
test edx, eax
jne 0x14000cc19
cmp ebx, 0xc000020a
je 0x14000cc19
lfence
mov rcx, rdi
call fcn.14000c37c
lea rcx, [0x1400054c0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400025d0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rax + 0x10]
lea r9, [0x1400101d0]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [0x140010280]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rsi, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp rsi, rax
je 0x14000cbb1
test rsi, rsi
je 0x14000cbb1
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r9, [0x1400101d0]
lea r8, [0x1400102c0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000020a
jmp 0x14000cbe1