Function at 0x1976c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xb0
mov r12d, 0x200
xor ebp, ebp
xor ecx, ecx
mov rdx, r12
mov ebx, ebp
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r13d, 0x400
xor ecx, ecx
mov rdx, r13
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], ebp
mov rdi, rax
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], ebp
mov esi, ebp
mov word [rsp + 0x40], bp
mov word [rsp + 0x42], r13w
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x48], rax
cmp rax, rbp
jne 0x197d6
xor eax, eax
jmp 0x19a12
xor edx, edx
cmp rdi, rbp
jne 0x197e8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x197cf
mov r8, r12
mov rcx, rdi
call fcn.000231f0
lea rdx, [0x00023900]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xf0]
mov edx, 0x20019
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rbp
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebp
jge 0x1987f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x197cf
xor edx, edx
jmp 0x197e0
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.000231f0
mov rcx, qword [rsp + 0xf0]
lea r11, [rsp + 0xe0]
mov qword [rsp + 0x28], r11
mov r9, rdi
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, ebp
jl 0x199e5
mov rcx, qword [rsp + 0x48]
mov r8, r13
xor edx, edx
mov word [rsp + 0x40], bp
mov word [rsp + 0x42], r13w
call fcn.000231f0
lea rdx, [0x000239a0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebp
jl 0x199bd
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
cmp eax, ebp
jl 0x199bd
mov r8, r12
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0xe0], r12d
mov dword [rsp + 0xe8], 1
call fcn.000231f0
lea rdx, [0x00023a50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0xe0]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
mov r9, rdi
mov qword [rsp + 0x20], r11
call fcn.00012984
cmp eax, ebp
jne 0x199bd
lea rcx, [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
cmp eax, ebp
jne 0x199bd
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [0x00023a70]
mov qword [rsp + 0x20], rax
call fcn.00022038
cmp eax, 4
je 0x199cc
inc esi
cmp esi, 0x80
jge 0x199e5
jmp 0x1987f
mov ebx, dword [rsp + 0x3c]
shl ebx, 8
or ebx, dword [rsp + 0x38]
shl ebx, 8
or ebx, dword [rsp + 0x34]
shl ebx, 8
or ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x19a10
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret