Function at 0x14000b500
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x530], rbx
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r12, r8
mov rsi, rdx
mov rdi, qword [r8 + 8]
mov rbx, qword [r8]
cmp rbx, rdi
je 0x14000b561
nop
mov rcx, rbx
call fcn.14000c290
add rbx, 0x20
cmp rbx, rdi
jne 0x14000b550
mov rax, qword [r12]
mov qword [r12 + 8], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.14001c790
mov dword [rsp + 0x64], 0x104
xor r13d, r13d
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x70], r13
cmp qword [rsi + 0x18], 8
jb 0x14000b59d
mov rsi, qword [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b7b1
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x64]
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000b7b1
mov r15d, r13d
nop dword [rax]
mov dword [rsp + 0x68], 0x104
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x40]
mov edx, r15d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000b7b1
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r13
mov word [rbp - 0x60], r13w
cmp word [rbp - 0x40], ax
jne 0x14000b69b
mov r8, r13
jmp 0x14000b6ae
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14000b6a3
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.14000c490
nop
lea rbx, [rbp - 0x60]
mov r8, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
cmovae rbx, r8
lea rcx, [rbp - 0x60]
cmovae rcx, r8
mov rax, qword [rbp - 0x50]
lea rax, [rcx + rax*2]
lea rsi, [rbp - 0x60]
cmovae rsi, r8
mov rdi, r13
mov r14, rax
sub r14, rsi
inc r14
shr r14, 1
cmp rsi, rax
cmova r14, r13
test r14, r14
je 0x14000b71e
sub rsi, rbx
movzx ecx, word [rbx + rsi]
call fcn.140022b64
mov word [rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x14000b706
lea rcx, [rbp - 0x60]
call fcn.14000aee0
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.14000bf50
nop
mov rax, qword [rbp - 0x48]
cmp rax, 8
jb 0x14000b784
inc rax
mov rcx, qword [rbp - 0x60]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
ja 0x14000b7ab
add rax, rax
cmp rax, 0x1000
jb 0x14000b77f
test cl, 0x1f
jne 0x14000b7a5
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000b79f
sub rcx, rax
cmp rcx, 8
jb 0x14000b799
cmp rcx, 0x27
ja 0x14000b793
mov rcx, rax
call fcn.140019294
inc r15d
cmp r15d, dword [rsp + 0x60]
jae 0x14000b7b1
jmp 0x14000b640
call fcn.140022518
int3
call fcn.140022518
int3
call fcn.140022518
int3
call fcn.140022518
int3
call fcn.140022518
int3
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140019260
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret