Function at 0x14000c218
Capabilities:
Query or enumerate registry key

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 rsi, rcx
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], 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 r15d, ebx
mov dword [rsp + 0x50], ebx
mov r12b, 1
mov eax, dword [rdi + 8]
test eax, eax
js 0x14000c55a
lea rcx, [rsi + 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 0x14000c55a
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0xa0], xmm0
lea r8d, [rbx + 2]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.14000bc00
test al, al
jne 0x14000c2ec
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
jmp 0x14000c558
lea rdx, [0x14000fc20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r13, qword [rdi + 0x10]
mov qword [rsp + 0xa0], r13
lea rcx, [r13 + 0x10]
mov qword [rsp + 0x90], rcx
lea rax, [r13 + 0xc]
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x68]
mov r8, qword [rcx]
mov edx, dword [rax]
mov rcx, rsi
call fcn.14000bef0
test al, al
je 0x14000c2dc
movzx ecx, word [rsp + 0x6a]
shr rcx, 1
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
lea rax, [rsp + 0x80]
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 r14d, eax
test eax, eax
js 0x14000c2dc
lea rax, [r13 + 0x18]
mov qword [rsp + 0x88], rax
mov r8d, dword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
call fcn.140003804
cmp qword [rsp + 0x58], rbx
je 0x14000c520
mov dword [rsp + 0xd4], 2
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 0x14000c523
mov edx, dword [r13 + 8]
add edx, r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov r8d, dword [rax]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov r14d, eax
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x14000c43c
mov r12b, bl
jmp 0x14000c3e9
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov edx, dword [rax]
mov rcx, rsi
call fcn.14000bef0
test al, al
je 0x14000c437
movzx ecx, word [rsp + 0x6a]
shr rcx, 1
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
lea r8, [0x14000fc30]
mov edx, 0xff
lea rcx, [rsp + 0xd8]
call sub.ntoskrnl.exe_wcscat_s
mov r8, qword [rsp + 0x70]
mov edx, 0xff
lea rcx, [rsp + 0xd8]
call sub.ntoskrnl.exe_wcscat_s
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.14000bd00
test al, al
jne 0x14000c50b
mov rcx, qword [r13 + 0x20]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call fcn.14000ea80
jmp 0x14000c506
mov r12b, bl
jmp 0x14000c513
inc r15d
mov dword [rsp + 0x50], r15d
mov word [rsp + 0xd8], bx
jmp 0x14000c3c7
mov r14d, ebx
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x14000c558
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