Function at 0x140009880
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [rsp + 0xd8]
cmp dword [rax + 8], 0
jge 0x1400098a8
xor eax, eax
jmp 0x140009c15
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.140006fe0
movzx eax, al
test eax, eax
je 0x1400098c4
xor eax, eax
jmp 0x140009c15
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rax, qword [rsp + 0xd8]
mov rdx, qword [rax]
lea rcx, [0x140012060]
call qword [sym.imp.ntoskrnl.exe_CmCallbackGetKeyObjectID]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140009934
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rsp + 0x78], rax
call fcn.140001aa0
movzx eax, al
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea r8, [0x14000f140]
mov edx, 1
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140009c15
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x98]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x10]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xc]
call fcn.140009400
movzx eax, al
test eax, eax
jne 0x140009971
xor eax, eax
jmp 0x140009c15
mov dword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x140012090]
call fcn.14000b340
movzx eax, al
test eax, eax
je 0x1400099ec
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rsp + 0x90], rax
call fcn.140001aa0
movzx eax, al
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea r8, [0x14000f1b0]
mov edx, 2
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rsp + 0x48], 0
jbe 0x140009c13
mov byte [rsp + 0x44], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_CmKeyObjectType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov edx, 0x200
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140009a8f
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov qword [rsp + 0x80], rax
call fcn.140001aa0
movzx eax, al
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea r8, [0x14000f220]
mov edx, 1
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140009c15
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov r8d, 0x46526c46
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140009bf1
mov dword [rsp + 0x64], 0
jmp 0x140009acf
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140009bdf
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x18]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0xc]
mov edx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140009b29
jmp 0x140009bdf
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xc]
call fcn.140009400
movzx eax, al
test eax, eax
jne 0x140009b4f
jmp 0x140009bdf
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x140012090]
call fcn.14000b340
movzx eax, al
test eax, eax
jne 0x140009bda
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rsp + 0x58]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
jmp 0x140009bd8
jmp 0x140009bdf
jmp 0x140009ac5
mov edx, 0x46526c46
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140009bf9
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
add rsp, 0xb8
pop rdi
pop rsi
ret