Function at 0x214d8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x560
mov rax, qword [0x00028100]
xor rax, rsp
mov qword [rsp + 0x550], rax
xor r15d, r15d
mov r13, rcx
mov rbx, rdx
lea rcx, [rsp + 0x48]
mov dx, 0x200
mov r14, r9
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], r15
call fcn.0002114c
cmp eax, r15d
jl 0x21a1c
lea rcx, [rsp + 0x60]
mov dx, 0x200
call fcn.0002114c
cmp eax, r15d
jl 0x21a1c
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x38]
mov edx, 0x2001f
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x90], 0x40
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r15
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r15d
mov ebx, eax
jl 0x21a0f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x520]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x18
mov r12d, r15d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov edi, 0x8000001a
cmp eax, edi
mov ebx, eax
je 0x219f9
mov ecx, eax
and ecx, 0xc0000000
cmp ecx, 0xc0000000
je 0x219f9
mov esi, dword [rsp + 0x52c]
mov r8d, 0x666d6463
mov ecx, 1
add esi, 0x12
mov edx, esi
mov edi, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r15
mov rbx, rax
je 0x219b9
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.00021f50
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor r8d, r8d
mov edx, r12d
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r15d
mov esi, eax
jl 0x219d6
mov eax, dword [rsp + 0x30]
lea rcx, [rdi - 2]
cmp rcx, rax
jne 0x219b0
movzx r8d, word [rsp + 0x4a]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov word [rsp + 0x48], r15w
call fcn.00021f50
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov edx, 0x2001f
mov dword [rsp + 0xd8], 0x30
mov dword [rsp + 0xf0], 0x40
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf8], r15
mov qword [rsp + 0x100], r15
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r15d
mov ebx, eax
jl 0x219f9
mov ebp, r15d
xor edx, edx
jmp 0x218bf
and eax, 0xc0000000
cmp eax, 0xc0000000
je 0x218f4
mov esi, dword [rsp + 0x544]
mov r8d, 0x666d6463
mov ecx, 1
add esi, 0x12
mov edx, esi
mov edi, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r15
mov rbx, rax
je 0x21983
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.00021f50
mov rcx, qword [rsp + 0x40]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r15d
mov esi, eax
jl 0x21995
mov eax, dword [rsp + 0x30]
lea rcx, [rdi - 2]
cmp rcx, rax
jne 0x2197a
movzx r8d, word [rsp + 0x62]
mov rcx, qword [rsp + 0x68]
xor edx, edx
mov word [rsp + 0x60], r15w
call fcn.00021f50
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x58]
mov edx, 0x2001f
mov dword [rsp + 0xa8], 0x30
mov dword [rsp + 0xc0], 0x40
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], r15
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r15d
mov ebx, eax
jl 0x21965
mov ebx, 0x400
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8, rbx
call fcn.00021f50
lea rdx, str.Driver
lea rcx, [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x58]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x120]
lea rdx, [rsp + 0x108]
mov r8d, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r15d
jne 0x218af
mov eax, dword [rsp + 0x12c]
cmp eax, r15d
je 0x218af
mov r8, rax
mov eax, dword [rsp + 0x128]
mov rcx, r14
lea rdx, [rsp + rax + 0x120]
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
mov ecx, dword [rsp + 0x12c]
cmp rax, rcx
je 0x21933
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add ebp, 1
mov edx, ebp
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x538]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov edi, 0x8000001a
cmp eax, edi
jne 0x21700
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
add r12d, 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x520]
xor r8d, r8d
mov edx, r12d
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
jmp 0x215cf
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r11, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov qword [r13], r11
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov ebx, r15d
jmp 0x21a0f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x40]
jmp 0x219fe
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x40]
jmp 0x219be
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x40]
jmp 0x219e4
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov ebx, 0xc000009a
jmp 0x21a0f
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov ebx, esi
jmp 0x21a0f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, ebx
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.00021ef0
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x560
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret