Function at 0x140015dd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
lea rcx, [rbp - 0x71]
xor edx, edx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rbx
lea rcx, [rbp - 0x51]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x28]
call qword [0x14000b220]
mov rcx, rax
lea r9, [rbp - 0x71]
lea r8, [rbp - 0x51]
lea rdx, [0x14000b530]
call qword [sym.imp.ntoskrnl.exe_IoRegisterDeviceInterface]
lea r8, [rsp + 0x50]
mov edx, 0x80000000
lea rcx, [rbp - 0x71]
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceInterfaceRegistryKey]
mov ebx, eax
test eax, eax
js 0x1400161b0
lea r8, [rsp + 0x58]
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceInterfaceRegistryKey]
mov ebx, eax
test eax, eax
js 0x1400161b0
mov r13, qword [rsp + 0x50]
mov esi, r12d
mov r14, qword [rsp + 0x58]
mov qword [rbp - 0x79], r14
mov dword [rbp + 0x67], r12d
mov dword [rbp + 0x7f], r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
test r13, r13
jne 0x140015eb0
mov ebx, 0xc000000d
jmp 0x1400161b0
test r14, r14
je 0x140015ea6
mov r15d, 0x118
mov r8d, 0x75417953
mov edx, r15d
mov ecx, 0x400
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp byte [0x140012180], r12b
mov rdi, rax
jne 0x140015f35
test rax, rax
je 0x140015f3a
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140009c00
lea rax, [rbp + 0x67]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, r12d
mov dword [rsp + 0x20], r15d
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140016199
cmp eax, 0xc0000023
je 0x140015f44
cmp eax, 0x80000005
je 0x140015f44
test eax, eax
jns 0x140015fcf
jmp 0x140016151
test rax, rax
jne 0x140015eed
mov ebx, 0xc000009a
jmp 0x1400161b0
mov ebx, 0x75417953
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r15d, dword [rbp + 0x67]
mov r8d, ebx
mov edx, r15d
mov ecx, 0x400
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov rdi, rax
xor eax, eax
cmp byte [0x140012180], al
jne 0x140016033
test rbx, rbx
je 0x140016033
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call fcn.140009c00
xor r14d, r14d
lea rax, [rbp + 0x67]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, r12d
mov dword [rsp + 0x20], r15d
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140016194
test eax, eax
js 0x140016151
mov r14, qword [rbp - 0x79]
mov ebx, dword [rdi + 0xc]
mov r8d, 0x75417953
mov ecx, 0x400
lea rdx, [rbx + 2]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor r10d, r10d
mov rsi, rax
cmp byte [0x140012180], r10b
jne 0x14001600c
test rax, rax
je 0x14001600c
lea r8, [rbx + 2]
xor edx, edx
mov rcx, rax
call fcn.140009c00
xor r10d, r10d
mov edx, dword [rdi + 0xc]
mov r8d, 0x7ffffffe
lea rcx, [rdx + 2]
shr rcx, 1
lea rax, [rcx - 1]
cmp rax, r8
ja 0x140016086
shr rdx, 1
cmp rdx, r8
jbe 0x140016049
mov word [rsi], r10w
jmp 0x140016086
xor r14d, r14d
test rbx, rbx
jne 0x140015f96
mov ebx, 0xc000009a
jmp 0x140016151
sub rdx, rcx
mov r9, rdi
sub r9, rsi
mov r8, rsi
lea rax, [rdx + rcx]
test rax, rax
je 0x140016077
movzx eax, word [r9 + r8 + 0x10]
test ax, ax
je 0x140016077
mov word [r8], ax
add r8, 2
sub rcx, 1
jne 0x140016055
test rcx, rcx
lea rax, [r8 - 2]
cmovne rax, r8
mov word [rax], r10w
mov eax, dword [rdi + 0xc]
lea rcx, [rbp - 0x61]
shr rax, 1
mov rdx, rsi
mov word [rsi + rax*2], r10w
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x61]
mov dword [rbp - 0x41], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x31], rax
lea r8, [rbp - 0x41]
mov qword [rbp - 0x39], r13
mov edx, 0x20019
mov dword [rbp - 0x29], 0x240
lea rcx, [rsp + 0x40]
movdqu xmmword [rbp - 0x21], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
jns 0x1400160e7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140016151
lea rax, [rbp - 0x61]
mov qword [rbp - 9], r14
mov qword [rbp - 1], rax
lea r8, [rbp - 0x11]
lea rax, [rbp + 0x7f]
mov dword [rbp - 0x11], 0x30
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
xor r14d, r14d
mov dword [rbp + 7], 0x200
xorps xmm0, xmm0
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov edx, 0x20006
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x1400160df
mov rdx, qword [rsp + 0x48]
lea r8d, [r14 + 1]
call fcn.140014b98
mov ebx, eax
test rsi, rsi
je 0x140016164
mov edx, 0x75417953
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016174
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016184
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x14001619d
mov r14, qword [rbp - 0x79]
inc r12d
jmp 0x140015eed
mov ebx, r14d
jmp 0x14001619d
xor eax, eax
mov ebx, eax
test rdi, rdi
je 0x1400161b0
mov edx, 0x75417953
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rbp - 0x71]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400161ca
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400161da
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret