Function at 0x14000fa14
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rsi, rdx
cmp dword [rdx + 8], 0
jl 0x14000fcf2
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.14000d3e8
test al, al
jne 0x14000fcf2
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsi]
lea rcx, [0x14006de68]
call qword [sym.imp.ntoskrnl.exe_CmCallbackGetKeyObjectID]
mov r14d, eax
test eax, eax
jns 0x14000faae
lfence
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov dword [rsp + 0x30], r14d
lea r8, [0x140015c90]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
movzx r9d, al
mov edx, 1
lea ecx, [rdx + 0x4c]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000fcf2
mov r14, qword [rsi + 0x10]
lea r8, [rsp + 0x60]
mov rdx, qword [r14 + 0x10]
mov ecx, dword [r14 + 0xc]
call fcn.14000f774
test al, al
je 0x14000fcf2
and dword [rsp + 0xb0], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x14006de98]
call fcn.140010c4c
test al, al
je 0x14000fb46
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx r9d, al
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea r8, [0x140015d00]
mov edx, 2
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rsp + 0xb0], 0
jbe 0x14000fcf2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_CmKeyObjectType]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov r15d, eax
test eax, eax
jns 0x14000fbbc
lfence
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov dword [rsp + 0x30], r15d
lea r8, [0x140015d70]
jmp 0x14000fa8d
mov edx, dword [r14 + 0x18]
mov ecx, 0x100
mov r8d, 0x46526c46
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000fce2
mov edx, dword [r14 + 8]
add edx, dword [rsp + 0xb0]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov ecx, dword [r14 + 0x18]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov r8d, dword [r14 + 0xc]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x14000fcd2
lfence
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, dword [r14 + 0xc]
call fcn.14000f774
test al, al
je 0x14000fcd2
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x14006de98]
call fcn.140010c4c
test al, al
jne 0x14000fbe2
mov rcx, qword [r14 + 0x20]
mov eax, dword [rsp + 0xb8]
mov dword [rcx], eax
lfence
mov r8d, dword [rsp + 0xb8]
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call fcn.140011780
jmp 0x14000fcd2
mov edx, 0x46526c46
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000fce4
xor edi, edi
mov dword [rsi + 0x18], edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret