Function at 0x140014b98
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 0x140014be1
mov ebx, 0xc000000d
jmp 0x140014ef4
test rdx, rdx
je 0x140014bd7
mov r15d, 0x118
mov r8d, 0x75417953
mov edx, r15d
mov ecx, 0x400
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp byte [0x140012180], bl
mov rdi, rax
jne 0x140014c68
test rax, rax
je 0x140014c6d
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140009c00
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 0x140014ecb
cmp eax, 0xc0000023
je 0x140014c77
cmp eax, 0x80000005
je 0x140014c77
test eax, eax
jns 0x140014d02
jmp 0x140014e7f
test rax, rax
jne 0x140014c1d
mov ebx, 0xc000009a
jmp 0x140014ef4
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 0x140014d66
test rbx, rbx
je 0x140014d66
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, r13d
mov dword [rsp + 0x20], r15d
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140014ec0
test eax, eax
js 0x140014e7f
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 [0x140012180], r10b
jne 0x140014d3f
test rax, rax
je 0x140014d3f
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 0x140014db9
shr rdx, 1
cmp rdx, r8
jbe 0x140014d7c
mov word [rsi], r10w
jmp 0x140014db9
xor r14d, r14d
test rbx, rbx
jne 0x140014cc9
mov ebx, 0xc000009a
jmp 0x140014e7f
sub rdx, rcx
mov r9, rdi
sub r9, rsi
mov r8, rsi
lea rax, [rdx + rcx]
test rax, rax
je 0x140014daa
movzx eax, word [r9 + r8 + 0x10]
test ax, ax
je 0x140014daa
mov word [r8], ax
add r8, 2
sub rcx, 1
jne 0x140014d88
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 0x140014e18
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140014e7f
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 0x140014e10
mov rdx, qword [rbp - 0x61]
lea r8d, [r14 + 1]
call fcn.140014b98
mov ebx, eax
test rsi, rsi
je 0x140014e92
mov edx, 0x75417953
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140014ea1
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140014eb0
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x140014ee1
mov r14, qword [rbp + 0x6f]
inc r13d
jmp 0x140014c20
mov ebx, r14d
xor eax, eax
mov r14, qword [rbp + 0x6f]
jmp 0x140014ecf
xor eax, eax
mov ebx, eax
cmp dword [rbp + 0x77], eax
je 0x140014ee1
mov rdx, r14
mov rcx, r12
call fcn.140014f0c
mov ebx, eax
test rdi, rdi
je 0x140014ef4
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