Function at 0x14000c598
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 [0x1400121b0]
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.14000e840
mov r12b, 1
mov r15d, ebx
mov dword [rsp + 0x50], ebx
mov eax, dword [rdi + 8]
test eax, eax
js 0x14000c8b6
lea rcx, [r13 + 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 0x14000c8b4
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.14000bbe0
test al, al
jne 0x14000c666
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
jmp 0x14000c8b4
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.14000bf98
test al, al
je 0x14000c656
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 0x14000c656
lea rax, [r14 + 0x18]
mov qword [rsp + 0x98], rax
mov r8d, dword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xb8]
call fcn.140002fe4
cmp qword [rsp + 0x58], rbx
je 0x14000c87e
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 0x14000c880
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 0x14000c7a8
mov r12b, bl
jmp 0x14000c753
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.14000bf98
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.14000bd70
test al, al
jne 0x14000c871
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.14000ea40
jmp 0x14000c7a3
inc r15d
mov dword [rsp + 0x50], r15d
jmp 0x14000c753
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 0x14000c8b4
mov edx, 0x6864694e
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14000e560
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