Function at 0x140009c20
Capabilities:
Query or enumerate registry value

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 0x140009c48
xor eax, eax
jmp 0x140009fb5
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, rax
call fcn.140006fe0
movzx eax, al
test eax, eax
je 0x140009c64
xor eax, eax
jmp 0x140009fb5
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 0x140009cd4
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, [0x14000f2f0]
mov edx, 1
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140009fb5
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.1400094c0
movzx eax, al
test eax, eax
jne 0x140009d11
xor eax, eax
jmp 0x140009fb5
mov dword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x140012088]
call fcn.14000b340
movzx eax, al
test eax, eax
je 0x140009d8c
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, [0x14000f360]
mov edx, 2
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp dword [rsp + 0x48], 0
jbe 0x140009fb3
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 0x140009e2f
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, [0x14000f3d0]
mov edx, 1
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x140009fb5
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 0x140009f91
mov dword [rsp + 0x64], 0
jmp 0x140009e6f
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140009f7f
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_ZwEnumerateValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140009ec9
jmp 0x140009f7f
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xc]
call fcn.1400094c0
movzx eax, al
test eax, eax
jne 0x140009eef
jmp 0x140009f7f
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [0x140012088]
call fcn.14000b340
movzx eax, al
test eax, eax
jne 0x140009f7a
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 0x140009f78
jmp 0x140009f7f
jmp 0x140009e65
mov edx, 0x46526c46
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140009f99
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