Function at 0x14000c93c
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 0x14000c9a9
mov eax, 0xc000000d
jmp 0x14000cc48
lea rcx, [0x1400054a0]
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 0x14000c9f9
lfence
mov rcx, qword [rbp - 0x50]
lea r9, [0x1400101f0]
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r8, [0x140010200]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000cc39
mov rcx, qword [rsp + 0x38]
call fcn.140001ee8
test al, al
je 0x14000ca3e
mov rax, qword [rbp - 0x50]
lea r9, [0x1400101f0]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [0x14000e9e0]
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 0x14000cc39
lfence
lea r9, [rsp + 0x30]
mov r8d, edi
lea rdx, [rbp - 0x60]
lea rcx, [0x1400054e0]
call qword [sym.imp.ntoskrnl.exe_RtlInsertElementGenericTableAvl]
mov rdi, rax
cmp byte [rsp + 0x30], r13b
je 0x14000cc72
lea rsi, [rax + 0x38]
lea rcx, [rax + 0x20]
mov qword [rsi + 8], rsi
lea rdx, [rax + 0x28]
mov qword [rsi], rsi
call fcn.14000c010
mov ebx, eax
test eax, eax
js 0x14000cc01
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.14000c0c0
mov ebx, eax
test eax, eax
js 0x14000cbc3
lfence
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.14000d434
mov ebx, eax
test eax, eax
js 0x14000cbc3
lfence
mov rcx, qword [rdi + 0x28]
lea rdx, [rdi + 0x18]
call fcn.14000d36c
mov ebx, eax
test eax, eax
js 0x14000cbc3
lea rsi, [r14 + 4]
cmp word [rsi], r13w
je 0x14000cbc3
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, [0x140010240]
mov word [rsp + 0x42], r14w
lea rcx, [rsp + 0x40]
call fcn.1400018e8
test eax, eax
js 0x14000cba3
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 0x14000cbc3
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x1400101f0]
lea r8, [0x140010260]
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 0x14000cc01
cmp byte [rsp + 0x30], r13b
jne 0x14000cbdd
cmp qword [rdi], r13
jne 0x14000cc01
lfence
lea rcx, [rdi + 0x38]
xor edx, edx
call fcn.14000d2a0
mov rcx, qword [rdi + 0x28]
lea rdx, [rdi + 8]
call fcn.14000d36c
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rdi], rax
test r12, r12
je 0x14000cc0a
mov qword [r12], rdi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000cc1a
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, 0x80000000
lea eax, [rbx + rdx]
test edx, eax
jne 0x14000cc39
cmp ebx, 0xc000020a
je 0x14000cc39
lfence
mov rcx, rdi
call fcn.14000c39c
lea rcx, [0x1400054a0]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400023d0
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, [0x1400101f0]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [0x1400102a0]
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 0x14000cbd1
test rsi, rsi
je 0x14000cbd1
xor edx, edx
mov qword [rsp + 0x20], rsi
lea r9, [0x1400101f0]
lea r8, [0x1400102e0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov ebx, 0xc000020a
jmp 0x14000cc01