Function at 0x14001bb68
Capabilities:
Query or enumerate registry key

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc8
xor ebx, ebx
mov r14, rdx
mov dword [rbp + 0x67], ebx
mov r12, rcx
mov dword [rbp + 0x7f], ebx
mov esi, ebx
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], rbx
test rcx, rcx
jne 0x14001bbb1
mov ebx, 0xc000000d
jmp 0x14001bec4
test rdx, rdx
je 0x14001bba7
mov r15d, 0x118
mov r8d, 0x75417953
mov edx, r15d
mov ecx, 0x400
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp byte [0x140018e70], bl
mov rdi, rax
jne 0x14001bc38
test rax, rax
je 0x14001bc3d
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14000ae80
mov r13d, ebx
lea rax, [rbp + 0x67]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, r13d
mov dword [rsp + 0x20], r15d
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x14001be9b
cmp eax, 0xc0000023
je 0x14001bc47
cmp eax, 0x80000005
je 0x14001bc47
test eax, eax
jns 0x14001bcd2
jmp 0x14001be4f
test rax, rax
jne 0x14001bbed
mov ebx, 0xc000009a
jmp 0x14001bec4
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 0x14001bd36
test rbx, rbx
je 0x14001bd36
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, r13d
mov dword [rsp + 0x20], r15d
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x14001be90
test eax, eax
js 0x14001be4f
mov r14, qword [rbp + 0x6f]
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 0x14001bd0f
test rax, rax
je 0x14001bd0f
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 0x14001bd89
shr rdx, 1
cmp rdx, r8
jbe 0x14001bd4c
mov word [rsi], r10w
jmp 0x14001bd89
xor r14d, r14d
test rbx, rbx
jne 0x14001bc99
mov ebx, 0xc000009a
jmp 0x14001be4f
sub rdx, rcx
mov r9, rdi
sub r9, rsi
mov r8, rsi
lea rax, [rdx + rcx]
test rax, rax
je 0x14001bd7a
movzx eax, word [r9 + r8 + 0x10]
test ax, ax
je 0x14001bd7a
mov word [r8], ax
add r8, 2
sub rcx, 1
jne 0x14001bd58
test rcx, rcx
lea rax, [r8 - 2]
cmovne rax, r8
mov word [rax], r10w
mov eax, dword [rdi + 0xc]
lea rcx, [rbp - 0x59]
shr rax, 1
mov rdx, rsi
mov word [rsi + rax*2], r10w
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x59]
mov dword [rbp - 0x49], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x49]
mov qword [rbp - 0x41], r12
mov edx, 0x20019
mov dword [rbp - 0x31], 0x240
lea rcx, [rbp - 0x69]
movdqu xmmword [rbp - 0x29], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
jns 0x14001bde8
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14001be4f
lea rax, [rbp - 0x59]
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], rax
lea r8, [rbp - 0x19]
lea rax, [rbp + 0x7f]
mov dword [rbp - 0x19], 0x30
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x61]
xor r14d, r14d
mov dword [rbp - 1], 0x200
xorps xmm0, xmm0
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov edx, 0x20006
movdqu xmmword [rbp + 7], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov rcx, qword [rbp - 0x69]
mov ebx, eax
test eax, eax
js 0x14001bde0
mov rdx, qword [rbp - 0x61]
lea r8d, [r14 + 1]
call fcn.14001bb68
mov ebx, eax
test rsi, rsi
je 0x14001be62
mov edx, 0x75417953
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14001be71
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14001be80
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x14001beb1
mov r14, qword [rbp + 0x6f]
inc r13d
jmp 0x14001bbf0
mov ebx, r14d
xor eax, eax
mov r14, qword [rbp + 0x6f]
jmp 0x14001be9f
xor eax, eax
mov ebx, eax
cmp dword [rbp + 0x77], eax
je 0x14001beb1
mov rdx, r14
mov rcx, r12
call fcn.14001bedc
mov ebx, eax
test rdi, rdi
je 0x14001bec4
mov edx, 0x75417953
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret