Function at 0x14000c588
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4f0
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rdx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x40], ebx
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0xd0]
call fcn.14000e880
mov r12b, 1
mov r15d, ebx
mov dword [rsp + 0x50], ebx
mov eax, dword [rdi + 8]
test eax, eax
js 0x14000c8a6
lea rcx, [r13 + 0x3140]
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_CmCallbackGetKeyObjectIDEx]
test eax, eax
js 0x14000c8a4
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x70], xmm0
lea r8d, [rbx + 3]
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.14000bc00
test al, al
jne 0x14000c656
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
jmp 0x14000c8a4
mov r14, qword [rdi + 0x10]
mov qword [rsp + 0xa0], r14
lea rax, [r14 + 0x10]
mov qword [rsp + 0x88], rax
lea rcx, [r14 + 0xc]
mov qword [rsp + 0x80], rcx
lea r9, [rsp + 0x70]
mov r8, qword [rax]
mov edx, dword [rcx]
mov rcx, r13
call fcn.14000bf50
test al, al
je 0x14000c646
movzx ecx, word [rsp + 0x70]
shr rcx, 1
mov rax, qword [rsp + 0x78]
mov word [rax + rcx*2], bx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x6864694e
mov byte [rsp + 0x28], bl
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_ObOpenObjectByPointerWithTag]
mov esi, eax
test eax, eax
js 0x14000c646
lea rax, [r14 + 0x18]
mov qword [rsp + 0x98], rax
mov r8d, dword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xb8]
call fcn.140003804
cmp qword [rsp + 0x58], rbx
je 0x14000c86e
mov dword [rsp + 0xd4], 3
mov r8, qword [rsp + 0x48]
movzx r9d, word [r8]
shr r9, 1
mov r8, qword [r8 + 8]
mov edx, 0xff
lea rcx, [rsp + 0xd8]
call sub.ntoskrnl.exe_wcsncpy_s
test r12b, r12b
je 0x14000c870
mov edx, dword [r14 + 8]
add edx, r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov esi, eax
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x14000c798
mov r12b, bl
jmp 0x14000c743
lea r9, [rsp + 0x70]
mov rax, qword [rsp + 0x88]
mov r8, qword [rax]
mov rax, qword [rsp + 0x80]
mov edx, dword [rax]
mov rcx, r13
call fcn.14000bf50
neg al
sbb cl, cl
and r12b, cl
movzx r9d, word [rsp + 0x70]
shr r9, 1
mov r8, qword [rsp + 0x78]
mov word [r8 + r9*2], bx
mov word [rsp + 0x2d6], bx
mov edx, 0x104
lea rcx, [rsp + 0x2d6]
call sub.ntoskrnl.exe_wcsncpy_s
lea rdx, [rsp + 0xd0]
mov rcx, r13
call fcn.14000bd00
test al, al
jne 0x14000c861
mov rcx, qword [r14 + 0x20]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call fcn.14000ea80
jmp 0x14000c793
inc r15d
mov dword [rsp + 0x50], r15d
jmp 0x14000c743
mov esi, ebx
mov dword [rdi + 0x18], esi
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14000c8a4
mov edx, 0x6864694e
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14000e590
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret