Function at 0x140008f60
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.1400641b0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1120], rbx
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0xfd8], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x70], rdx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
mov dword [rbp + 0xfb4], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0xfb4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140009021
mov r8d, eax
lea rdx, str.Could_not_get_registry_subkey_count_while_attempting_to_get_subkey_names___i_.
lea rcx, [rbp - 0x70]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp - 0x70]
call fcn.140066028
int3
mov dword [rbp + 0xfb0], 0xff
mov qword [rbp + 0xfc8], r15
mov qword [rbp + 0xfd0], r15
mov qword [rbp + 0xfd0], 7
mov qword [rbp + 0xfc8], r15
mov word [rbp + 0xfb8], r15w
xor r8d, r8d
mov edx, 0xff
lea rcx, [rbp + 0xfb8]
call fcn.140003880
nop
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov dword [rsp + 0x60], 1
mov ecx, dword [rbp + 0xfb4]
mov edx, ecx
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
sar rax, 5
cmp rax, rcx
jae 0x1400090a1
mov rcx, rbx
call fcn.140006c20
mov ecx, dword [rbp + 0xfb4]
mov edi, r15d
test ecx, ecx
je 0x140009187
nop dword [rax]
mov dword [rbp + 0xfb0], 0xff
lea r8, [rbp + 0xfb8]
cmp qword [rbp + 0xfd0], 8
cmovae r8, qword [rbp + 0xfb8]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov edx, edi
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140009160
lea rsi, [rbp + 0xfb8]
cmp qword [rbp + 0xfd0], 8
cmovae rsi, qword [rbp + 0xfb8]
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x140009129
mov edx, 1
mov rcx, rbx
call fcn.140006b20
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rcx
test rcx, rcx
je 0x14000914b
mov r8d, dword [rbp + 0xfb0]
mov rdx, rsi
call fcn.140002e20
nop
add qword [rbx + 8], 0x20
inc edi
cmp edi, dword [rbp + 0xfb4]
jb 0x1400090b0
jmp 0x140009187
mov r9d, eax
mov r8d, edi
lea rdx, str.Could_not_get_registry_subkey_name_at_index__i___i_.
lea rcx, [rbp - 0x70]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp - 0x70]
call fcn.140066028
nop
mov rax, qword [rbp + 0xfd0]
cmp rax, 8
jb 0x1400091ff
inc rax
mov rcx, qword [rbp + 0xfb8]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x1400091b3
call fcn.14006ef04
int3
add rax, rax
cmp rax, 0x1000
jb 0x1400091fa
test byte [rbp + 0xfb8], 0x1f
je 0x1400091cd
call fcn.14006ef04
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400091dc
call fcn.14006ef04
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400091eb
call fcn.14006ef04
int3
cmp rcx, 0x27
jbe 0x1400091f7
call fcn.14006ef04
int3
mov rcx, rax
call fcn.1400369b0
mov qword [rbp + 0xfd0], 7
mov qword [rbp + 0xfc8], r15
mov word [rbp + 0xfb8], r15w
mov rax, rbx
mov rcx, qword [rbp + 0xfd8]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x1120]
add rsp, 0x10e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret