Function at 0x140006340
Capabilities:
Query or enumerate registry value

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 0x1400065c6
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.1400046a8
test al, al
jne 0x1400065c6
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 0x1400063c4
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [rsp + 0x28], esi
lea r8, [0x14000ada0]
mov qword [rsp + 0x20], rax
movzx r9d, bl
mov edx, 1
lea ecx, [rdx + 0x4c]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x1400065c6
mov rsi, qword [rdi + 0x10]
lea r8, [rsp + 0x60]
mov rdx, qword [rsi + 0x10]
mov ecx, dword [rsi + 0xc]
call fcn.140005eac
test al, al
je 0x1400065c6
and dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x14000e088]
call fcn.1400070f4
test al, al
je 0x140006448
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, [0x14000ae10]
mov edx, 2
lea ecx, [rdx + 0x4b]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rsp + 0xa0], 0
jbe 0x1400065c6
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 0x1400064ad
mov rbx, cr8
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [rsp + 0x28], r14d
lea r8, [0x14000ae80]
jmp 0x1400063a8
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 0x1400065b4
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_ZwEnumerateValueKey]
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1400065a4
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, dword [rsi + 0xc]
call fcn.140005eac
test al, al
je 0x1400065a4
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x14000e088]
call fcn.1400070f4
test al, al
jne 0x1400064d2
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 0x1400065a4
mov edx, 0x46526c46
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400065b7
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