Function at 0x14004c8f4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x5a8
mov dword [rsp + 0x50], 0
mov r8d, 0x70
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.140058b80
lea rax, [0x14005b080]
mov qword [rsp + 0x90], rax
mov eax, 0x38
imul rax, rax, 0
mov dword [rsp + rax + 0x138], 0x20
mov eax, 0x38
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
mov qword [rsp + rax + 0x140], rcx
mov eax, 0x38
imul rax, rax, 0
lea rcx, [rsp + 0x54]
mov qword [rsp + rax + 0x148], rcx
mov eax, 0x38
imul rax, rax, 0
mov dword [rsp + rax + 0x150], 4
mov eax, 0x38
imul rax, rax, 0
lea rcx, [rsp + 0x50]
mov qword [rsp + rax + 0x158], rcx
mov eax, 0x38
imul rax, rax, 0
mov dword [rsp + rax + 0x160], 4
lea rdx, [0x14005b0a0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14005b140]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8w, 0x200
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x98]
call fcn.14002bbec
mov r8w, 0x200
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x70]
call fcn.14002bbec
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov dword [rsp + 0xe8], 0x30
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0x100], 0x40
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
lea r8, [rsp + 0xe8]
mov edx, 0xf003f
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14004caa8
jmp 0x14004cda4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x118]
call fcn.140029d24
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140029cf4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000023
je 0x14004cb14
cmp dword [rsp + 0x30], 0x80000005
je 0x14004cb14
lea rcx, [rsp + 0x80]
call fcn.14004c6bc
jmp 0x14004cda4
mov eax, dword [rsp + 0x34]
mov r8d, 0x53414645
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x120]
call fcn.140029d24
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140029cf4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14004cb9d
lea rcx, [rsp + 0xc8]
call fcn.14004c70c
lea rcx, [rsp + 0x80]
call fcn.14004c6bc
jmp 0x14004cda4
mov dword [rsp + 0x38], 0
jmp 0x14004cbb1
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x38], eax
jae 0x14004cd80
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000023
je 0x14004cc07
cmp dword [rsp + 0x30], 0x80000005
je 0x14004cc07
jmp 0x14004cd80
mov eax, dword [rsp + 0x34]
mov ecx, eax
call fcn.14005864c
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x128]
call fcn.140029d24
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.140029cf4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14004cc7f
lea rcx, [rsp + 0xb8]
call fcn.14004c6e4
jmp 0x14004cd80
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0xc]
mov word [rsp + 0x62], ax
movzx eax, word [rsp + 0x62]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0xc], 0x14
jbe 0x14004cd45
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x130]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp dword [rsp + 0x54], 0
jbe 0x14004cd45
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x5b8]
call fcn.140026cbc
lea rcx, [rsp + 0xb8]
call fcn.14004c6e4
lea rcx, [rsp + 0xc8]
call fcn.14004c70c
lea rcx, [rsp + 0x80]
call fcn.14004c6bc
mov rax, qword [rsp + 0x5b8]
jmp 0x14004cdc0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rcx, [rsp + 0xb8]
call fcn.14004c6e4
jmp 0x14004cba7
lea rcx, [rsp + 0xc8]
call fcn.14004c70c
lea rcx, [rsp + 0x80]
call fcn.14004c6bc
xor eax, eax
test eax, eax
jne 0x14004ca80
lea rdx, [0x14005af40]
mov rcx, qword [rsp + 0x5b8]
call fcn.140026cbc
mov rax, qword [rsp + 0x5b8]
add rsp, 0x5a8
ret