Function at 0x1867c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x0001d100]
xor rax, rsp
mov qword [rsp + 0x78], rax
movabs rax, 0x1792f8648000
lea rbx, [0x0001a474]
lea r9, [0x0001a490]
lea rdx, [0x0001a440]
lea rcx, [0x0001d2e0]
xor r15d, r15d
mov r8, rbx
mov qword [0x0001d720], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_RtlInitializeGenericTableAvl]
lea r9, [0x0001a490]
lea rdx, [0x0001a414]
lea rcx, [0x0001d348]
mov r8, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_RtlInitializeGenericTableAvl]
lea r9, [0x0001a490]
lea rdx, [0x0001a440]
lea rcx, [0x0001d3b0]
mov r8, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_RtlInitializeGenericTableAvl]
lea rcx, [0x0001d278]
call qword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
mov r14d, 0x1000
mov rbx, r15
mov rsi, r15
mov r12d, r15d
mov ebp, r14d
call fcn.00018b74
cmp rax, r15
mov r13, rax
je 0x1885c
lea rdx, [0x0001b0b0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp rbx, r15
je 0x18782
xor edx, edx
mov rcx, rbx
add ebp, ebp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8d, dword [str.NxMm]
mov edx, ebp
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r15
mov rbx, rax
je 0x187c7
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, 2
mov rcx, r13
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
jmp 0x187cc
mov edi, 0xc000009a
cmp edi, 0x80000005
je 0x18770
cmp edi, 0xc0000023
je 0x18770
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, r15d
jl 0x1882c
cmp rbx, r15
je 0x1885c
cmp dword [rbx + 4], 3
jne 0x1882c
cmp dword [rbx + 8], r15d
je 0x1882c
mov edx, dword [rbx + 8]
mov r8d, dword [str.NxMm]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r15
mov rsi, rax
je 0x1882c
mov r8d, dword [rbx + 8]
lea rdx, [rbx + 0xc]
mov rcx, rax
call fcn.0001a620
mov r12d, dword [rbx + 8]
cmp rbx, r15
je 0x1883c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp rsi, r15
je 0x1885c
cmp r12d, r15d
je 0x1885c
mov edx, r12d
mov rcx, rsi
call fcn.00018c94
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x0001d348]
call qword [sym.imp.ntoskrnl.exe_RtlIsGenericTableEmptyAvl]
movzx r12d, r15b
mov r13d, 1
cmp al, r15b
mov rbx, r15
mov rdi, r15
cmove r12d, r13d
call fcn.00018b74
cmp rax, r15
mov rbp, rax
je 0x18a18
lea rdx, [0x0001b070]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp rbx, r15
je 0x188b6
xor edx, edx
mov rcx, rbx
add r14d, r14d
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8d, dword [str.NxMm]
mov edx, r14d
mov ecx, r13d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r15
mov rbx, rax
je 0x188fb
lea rax, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, 2
mov rcx, rbp
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
jmp 0x18900
mov esi, 0xc000009a
cmp esi, 0x80000005
je 0x188a3
cmp esi, 0xc0000023
je 0x188a3
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp esi, r15d
jl 0x1896e
cmp rbx, r15
je 0x18a18
cmp dword [rbx + 4], 3
jne 0x1896e
cmp dword [rbx + 8], r15d
je 0x1896e
mov eax, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
shl rax, 5
add rax, 8
cmp rdx, rax
jb 0x1896e
mov r8d, dword [str.NxMm]
mov ecx, r13d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r15
mov rdi, rax
je 0x1896e
mov r8d, dword [rbx + 8]
lea rdx, [rbx + 0xc]
mov rcx, rax
call fcn.0001a620
cmp rbx, r15
je 0x1897e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp rdi, r15
je 0x18a18
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [0x0001d278]
mov dl, r13b
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
cmp dword [rdi], r15d
mov esi, r15d
jbe 0x189fa
lea rbx, [rdi + 8]
mov ebp, 0x20
movabs rax, 0xfffff78000000014
mov rax, qword [rax]
sub rax, qword [rbx + 0x18]
cmp rax, qword [0x0001d720]
jge 0x189f0
lea rcx, [rsp + 0x58]
mov rdx, rbx
mov r8, rbp
call fcn.0001a620
lea rdx, [rsp + 0x58]
lea rcx, [0x0001d348]
xor r9d, r9d
mov r8d, ebp
call qword [sym.imp.ntoskrnl.exe_RtlInsertElementGenericTableAvl]
add esi, r13d
add rbx, rbp
cmp esi, dword [rdi]
jb 0x189ae
lea rcx, [0x0001d278]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp r12b, r15b
je 0x18a22
call fcn.000191c4
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.0001a4b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret