Function at 0x17410
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r15, rcx
lea rdx, [0x0001a100]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
and qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x240
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
lea r8, [rsp + 0x58]
mov edx, 0xf003f
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x174ab
mov r9d, eax
lea r8, [rsp + 0x38]
lea rdx, [0x0001a1a0]
xor ecx, ecx
call fcn.0001923c
jmp 0x1772c
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea r12d, [r9 + 2]
mov edx, r12d
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1750d
cmp eax, 0xc0000023
je 0x1750d
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r9d, ebx
lea r8, [rsp + 0x38]
lea rdx, [0x0001a1e0]
xor ecx, ecx
call fcn.0001923c
jmp 0x1772c
mov esi, dword [rsp + 0xc8]
mov rdx, rsi
mov ecx, 1
mov r8d, 0x62525249
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x17556
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r8, [rsp + 0x38]
lea rdx, [0x0001a220]
xor ecx, ecx
call fcn.0001923c
jmp 0x1772c
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, rdi
mov edx, r12d
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x175ad
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r9d, ebx
lea r8, [rsp + 0x38]
lea rdx, [0x0001a270]
xor ecx, ecx
call fcn.0001923c
jmp 0x1772c
mov r14d, dword [rdi + 0x14]
xor edi, edi
mov dword [rsp + 0x34], edi
cmp edi, r14d
jae 0x1771d
and dword [rsp + 0xc8], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1761c
cmp eax, 0xc0000023
je 0x1761c
mov r9d, eax
lea r8, [rsp + 0x38]
lea rdx, [0x0001a2b0]
xor ecx, ecx
call fcn.0001923c
jmp 0x17712
mov r12d, dword [rsp + 0xc8]
mov r8d, 0x62525249
mov rdx, r12
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
jne 0x17658
lea r8, [rsp + 0x38]
lea rdx, [0x0001a2f0]
xor ecx, ecx
call fcn.0001923c
jmp 0x17712
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.00011320
lea r11, [rsp + 0xc8]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x176bd
mov edx, 0x62525249
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r9d, ebx
lea r8, [rsp + 0x38]
lea rdx, [0x0001a330]
xor ecx, ecx
call fcn.0001923c
jmp 0x17712
lea rcx, [rsi + 0x10]
test rcx, rcx
je 0x17704
cmp dword [rsi + 0xc], 0
je 0x17704
movzx eax, word [rsi + 0xc]
mov word [rsp + 0x48], ax
movzx eax, word [rsi + 0xc]
mov word [rsp + 0x4a], ax
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x48]
mov ecx, r14d
call r15
mov ebx, eax
mov dword [rsp + 0x30], eax
mov edx, 0x62525249
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x17712
mov edx, 0x62525249
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc edi
mov dword [rsp + 0x34], edi
jmp 0x175b7
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
nop
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret