Function at 0x12888
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x2c0
mov rax, qword [0x0001a100]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r12, rcx
lea rdx, [0x000174d0]
lea rcx, [r11 - 0x248]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00017570]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x200
lea rdx, [rsp + 0xa0]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
xor r13d, r13d
mov qword [rsp + 0x48], rax
mov word [rsp + 0x40], r13w
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov edx, 0xf003f
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x78], 0x40
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r13d
jl 0x12ac1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edi, [r13 + 2]
mov edx, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp eax, r13d
mov ebx, eax
jge 0x12997
cmp eax, 0xc0000023
jne 0x12ab4
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rsi, rax
lea rax, [rsp + 0x30]
mov edx, edi
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp eax, r13d
mov ebx, eax
jl 0x12aa4
mov ebp, r13d
cmp dword [rsi + 0x14], r13d
jbe 0x12aa4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r13d
mov ebx, eax
jge 0x12a0d
cmp eax, 0xc0000023
jne 0x12a75
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, r13
je 0x12a75
mov ecx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r13d
mov ebx, eax
jl 0x12a6a
movzx eax, word [rdi + 0xc]
mov word [rsp + 0x52], ax
mov word [rsp + 0x50], ax
lea rax, [rdi + 0x10]
mov qword [rsp + 0x58], rax
cmp dword [rdi + 0xc], 0x14
ja 0x12a81
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc ebp
cmp ebp, dword [rsi + 0x14]
jae 0x12aa4
jmp 0x129dd
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
movzx r8d, word [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call fcn.00016ab0
cmp rsi, r13
je 0x12ab4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.00016820
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret