Function at 0x1400060a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rdi, rdx
cmp dword [rdx + 8], 0
jl 0x14000632a
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.1400046a8
test al, al
jne 0x14000632a
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [0x14000e060]
call qword [sym.imp.ntoskrnl.exe_CmCallbackGetKeyObjectID]
mov esi, eax
test eax, eax
jns 0x140006128
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [rsp + 0x28], esi
lea r8, [0x14000abf0]
mov qword [rsp + 0x20], rax
movzx r9d, bl
mov edx, 1
lea ecx, [rdx + 0x4c]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000632a
mov rsi, qword [rdi + 0x10]
lea r8, [rsp + 0x60]
mov rdx, qword [rsi + 0x10]
mov ecx, dword [rsi + 0xc]
call fcn.140005e78
test al, al
je 0x14000632a
and dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x14000e090]
call fcn.1400070f4
test al, al
je 0x1400061ac
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
movzx r9d, bl
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [0x14000ac60]
mov edx, 2
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rsp + 0xa0], 0
jbe 0x14000632a
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 [rdi]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov r14d, eax
test eax, eax
jns 0x140006211
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [rsp + 0x28], r14d
lea r8, [0x14000acd0]
jmp 0x14000610c
mov edx, dword [rsi + 0x18]
mov ecx, 1
mov r8d, 0x46526c46
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140006318
mov edx, dword [rsi + 8]
add edx, dword [rsp + 0xa0]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsi + 0x18]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov r8d, dword [rsi + 0xc]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140006308
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, dword [rsi + 0xc]
call fcn.140005e78
test al, al
je 0x140006308
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x14000e090]
call fcn.1400070f4
test al, al
jne 0x140006236
mov rdx, qword [rsi + 0x20]
mov eax, dword [rsp + 0xa8]
mov dword [rdx], eax
mov r8d, dword [rsp + 0xa8]
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call fcn.1400079c0
jmp 0x140006308
mov edx, 0x46526c46
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000631b
xor r14d, r14d
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret