Function at 0x1d5a8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, qword [rcx + 0x40]
mov rcx, rbp
call fcn.00013a9c
lea rdx, str.RegistryMACHINESystemCurrentControlSetutool
lea rcx, [rsp + 0xc0]
xor esi, esi
mov ebx, esi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [rsi + 0x30]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0xc0]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov edx, 0x20019
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1da52
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rsi + 2]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov edi, 0x1000
lea ecx, [rsi + 1]
cmp dword [rsp + 0x30], edi
mov eax, edi
mov r8d, 0x656e6f4e
cmovb eax, dword [rsp + 0x30]
mov edx, eax
mov dword [rsp + 0x30], eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r12, rax
lea rax, [rsp + 0x30]
lea edx, [rsi + 2]
mov r8, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov r13d, esi
cmp dword [r12 + 0x14], esi
jbe 0x1da36
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, r13d
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp dword [rsp + 0x30], edi
mov r11d, edi
mov r8d, 0x656e6f4e
cmovb r11d, dword [rsp + 0x30]
xor ecx, ecx
mov edx, r11d
mov dword [rsp + 0x30], r11d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [rsp + 0x30]
xor r8d, r8d
mov r14, rax
lea rax, [rsp + 0x30]
mov edx, r13d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
mov r9, r14
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov r9d, dword [r14 + 0xc]
mov ecx, 1
mov edi, esi
mov r8d, esi
lea rdx, [r14 + 0x10]
shr r9d, 1
lea r10d, [rcx + 7]
cmp r9d, r10d
mov eax, r9d
cmova eax, r10d
cmp r8d, eax
jae 0x1d7b7
mov eax, 0x30
cmp word [rdx], ax
jb 0x1d780
cmp word [rdx], 0x39
ja 0x1d780
movzx eax, word [rdx]
add edi, edi
lea edi, [rax + rdi*8 - 0x30]
jmp 0x1d7ac
cmp word [rdx], 0x41
jb 0x1d797
cmp word [rdx], 0x46
ja 0x1d797
movzx eax, word [rdx]
add edi, edi
lea edi, [rax + rdi*8 - 0x37]
jmp 0x1d7ac
cmp word [rdx], 0x61
jb 0x1d7b5
cmp word [rdx], 0x66
ja 0x1d7b5
movzx eax, word [rdx]
add edi, edi
lea edi, [rax + rdi*8 - 0x57]
inc r8d
add rdx, 2
jmp 0x1d756
mov ecx, esi
cmp dword [r14 + 0xc], 0x12
cmova ecx, esi
cmp ecx, esi
je 0x1da1a
xor edx, edx
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x40], esi
lea r8d, [rdx + 0x28]
call fcn.000163a0
mov r8d, dword [r14 + 0xc]
lea rdx, [r14 + 0x10]
lea rcx, [rsp + 0x150]
call fcn.00015fc0
lea r9, [rsp + 0x150]
lea r8, str.RegistryMACHINESystemCurrentControlSetutool
lea rdx, [0x0001f800]
lea rcx, [rsp + 0x180]
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x30
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
mov edx, 0x20019
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1da1a
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [0x0001fb20]
mov r9d, 4
call fcn.00013ec8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov esi, dword [rsp + 0x40]
lea eax, [rsi - 1]
cmp eax, 1
ja 0x1d922
xor edx, edx
lea rcx, [rsp + 0xdc]
inc ebx
lea r8d, [rdx + 0x28]
mov dword [rsp + 0xd0], 0x34
mov dword [rsp + 0xd8], edi
mov dword [rsp + 0xd4], ebx
call fcn.000163a0
mov r8d, dword [r14 + 0xc]
lea rdx, [r14 + 0x10]
lea rcx, [rsp + 0xdc]
call fcn.00015fc0
lea rcx, [rsp + 0x104]
lea rdx, [0x0001fb40]
mov r8d, 0x42
call fcn.00015fc0
lea rcx, [rsp + 0xd0]
mov r8, rbp
mov edx, 0x76
call fcn.00019958
test eax, eax
jns 0x1d922
dec ebx
cmp esi, 3
jne 0x1d99b
lea r8d, [rsi + 0x25]
lea rcx, [rsp + 0xdc]
inc ebx
xor edx, edx
mov dword [rsp + 0xd0], 0x34
mov dword [rsp + 0xd8], edi
mov dword [rsp + 0xd4], ebx
call fcn.000163a0
mov r8d, dword [r14 + 0xc]
lea rdx, [r14 + 0x10]
lea rcx, [rsp + 0xdc]
call fcn.00015fc0
lea rcx, [rsp + 0x104]
lea rdx, [0x0001fb90]
lea r8d, [rsi + 0x3f]
call fcn.00015fc0
lea edx, [rsi + 0x73]
lea rcx, [rsp + 0xd0]
mov r8, rbp
call fcn.00019958
test eax, eax
jns 0x1da18
dec ebx
cmp esi, 4
jne 0x1da18
lea r8d, [rsi + 0x24]
lea rcx, [rsp + 0xdc]
inc ebx
xor edx, edx
mov dword [rsp + 0xd0], 0x34
mov dword [rsp + 0xd8], edi
mov dword [rsp + 0xd4], ebx
call fcn.000163a0
mov r8d, dword [r14 + 0xc]
lea rdx, [r14 + 0x10]
lea rcx, [rsp + 0xdc]
call fcn.00015fc0
lea rcx, [rsp + 0x104]
lea rdx, [0x0001fbe0]
lea r8d, [rsi + 0x3e]
call fcn.00015fc0
lea edx, [rsi + 0x72]
lea rcx, [rsp + 0xd0]
mov r8, rbp
call fcn.00019958
xor esi, esi
cmp eax, esi
jge 0x1da1a
dec ebx
jmp 0x1da1a
xor esi, esi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
inc r13d
mov edi, 0x1000
cmp r13d, dword [r12 + 0x14]
jb 0x1d6cf
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, rbp
call fcn.00013acc
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.00015f60
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret