Function at 0x211b0
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
sub rsp, 0x4f0
mov rax, qword [0x00028100]
xor rax, rsp
mov qword [rsp + 0x4e8], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x40], 0
mov r12, rcx
mov rbx, rdx
lea rcx, [rsp + 0x48]
mov dx, 0x200
mov r13, r9
call fcn.0002114c
test eax, eax
js 0x214aa
and qword [rsp + 0x68], 0
and qword [rsp + 0x80], 0
and qword [rsp + 0x88], 0
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov edx, 0x2001f
mov dword [rsp + 0x60], 0x30
mov dword [rsp + 0x78], 0x40
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
mov ebx, eax
js 0x2149d
xor ebp, ebp
xor edx, edx
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x4d0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, 0x8000001a
mov ebx, eax
je 0x21492
mov ecx, eax
and ecx, 0xc0000000
cmp ecx, 0xc0000000
je 0x21492
mov esi, dword [rsp + 0x4dc]
mov r8d, 0x666d6462
mov ecx, 1
add esi, 0x12
mov edx, esi
mov edi, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov rbx, rax
je 0x21468
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.00021f50
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0x38]
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]
test eax, eax
mov esi, eax
js 0x2147a
mov eax, dword [rsp + 0x38]
lea rcx, [rdi - 2]
cmp rcx, rax
jne 0x2145f
movzx r8d, word [rsp + 0x4a]
mov rcx, qword [rsp + 0x50]
and word [rsp + 0x48], 0
xor edx, edx
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 + 0x30]
and qword [rsp + 0xb0], 0
and qword [rsp + 0xb8], 0
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0x40]
mov edx, 0x2001f
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x90], 0x30
mov dword [rsp + 0xa8], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
mov ebx, eax
js 0x21492
mov edi, 0x400
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8, rdi
call fcn.00021f50
lea rdx, str.Driver
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0xd0]
lea rdx, [rsp + 0xc0]
mov r8d, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x21432
mov eax, dword [rsp + 0xdc]
test eax, eax
je 0x21432
mov r8, rax
mov eax, dword [rsp + 0xd8]
mov rcx, r13
lea rdx, [rsp + rax + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
mov ecx, dword [rsp + 0xdc]
cmp rax, rcx
je 0x21447
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add ebp, 1
mov edx, ebp
jmp 0x21250
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r11, qword [rsp + 0x40]
xor eax, eax
mov qword [r12], r11
jmp 0x214aa
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, 0xc000009a
jmp 0x2149d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, esi
jmp 0x2149d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, ebx
mov rcx, qword [rsp + 0x4e8]
xor rcx, rsp
call fcn.00021ef0
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret