Function at 0x14001cda0
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 [0x14000d228]
mov rcx, rax
lea r9, [rbp - 0x71]
lea r8, [rbp - 0x51]
lea rdx, [0x14000d530]
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 0x14001d180
lea r8, [rsp + 0x58]
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceInterfaceRegistryKey]
mov ebx, eax
test eax, eax
js 0x14001d180
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 0x14001ce80
mov ebx, 0xc000000d
jmp 0x14001d180
test r14, r14
je 0x14001ce76
mov r15d, 0x118
mov r8d, 0x75417953
mov edx, r15d
mov ecx, 0x400
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp byte [0x140018e70], r12b
mov rdi, rax
jne 0x14001cf05
test rax, rax
je 0x14001cf0a
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14000ae80
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 0x14001d169
cmp eax, 0xc0000023
je 0x14001cf14
cmp eax, 0x80000005
je 0x14001cf14
test eax, eax
jns 0x14001cf9f
jmp 0x14001d121
test rax, rax
jne 0x14001cebd
mov ebx, 0xc000009a
jmp 0x14001d180
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 [0x140018e70], al
jne 0x14001d003
test rbx, rbx
je 0x14001d003
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call fcn.14000ae80
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 0x14001d164
test eax, eax
js 0x14001d121
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 [0x140018e70], r10b
jne 0x14001cfdc
test rax, rax
je 0x14001cfdc
lea r8, [rbx + 2]
xor edx, edx
mov rcx, rax
call fcn.14000ae80
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 0x14001d056
shr rdx, 1
cmp rdx, r8
jbe 0x14001d019
mov word [rsi], r10w
jmp 0x14001d056
xor r14d, r14d
test rbx, rbx
jne 0x14001cf66
mov ebx, 0xc000009a
jmp 0x14001d121
sub rdx, rcx
mov r9, rdi
sub r9, rsi
mov r8, rsi
lea rax, [rdx + rcx]
test rax, rax
je 0x14001d047
movzx eax, word [r9 + r8 + 0x10]
test ax, ax
je 0x14001d047
mov word [r8], ax
add r8, 2
sub rcx, 1
jne 0x14001d025
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 0x14001d0b7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14001d121
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 0x14001d0af
mov rdx, qword [rsp + 0x48]
lea r8d, [r14 + 1]
call fcn.14001bb68
mov ebx, eax
test rsi, rsi
je 0x14001d134
mov edx, 0x75417953
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001d144
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001d154
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x14001d16d
mov r14, qword [rbp - 0x79]
inc r12d
jmp 0x14001cebd
mov ebx, r14d
jmp 0x14001d16d
xor eax, eax
mov ebx, eax
test rdi, rdi
je 0x14001d180
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 0x14001d19a
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001d1aa
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