Function at 0x14000c028
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 [0x1400121b0]
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.14000e640
mov r15d, ebx
mov dword [rsp + 0x50], ebx
mov r12b, 1
mov eax, dword [rdi + 8]
test eax, eax
js 0x14000c36a
lea rcx, [rsi + 0x3098]
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 0x14000c36a
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.14000b9e0
test al, al
jne 0x14000c0fc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
jmp 0x14000c368
lea rdx, [0x14000fa60]
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.14000bd38
test al, al
je 0x14000c0ec
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 0x14000c0ec
lea rax, [r13 + 0x18]
mov qword [rsp + 0x88], rax
mov r8d, dword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
call fcn.140002fe4
cmp qword [rsp + 0x58], rbx
je 0x14000c330
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 0x14000c333
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 0x14000c24c
mov r12b, bl
jmp 0x14000c1f9
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov edx, dword [rax]
mov rcx, rsi
call fcn.14000bd38
test al, al
je 0x14000c247
movzx ecx, word [rsp + 0x6a]
shr rcx, 1
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
lea r8, [0x14000fa70]
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.14000bb70
test al, al
jne 0x14000c31b
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.14000e840
jmp 0x14000c316
mov r12b, bl
jmp 0x14000c323
inc r15d
mov dword [rsp + 0x50], r15d
mov word [rsp + 0xd8], bx
jmp 0x14000c1d7
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 0x14000c368
mov edx, 0x6864694e
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14000e360
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