Function at 0x1400066d4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400416b0]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x60], r9
mov rdi, r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x68], rdx
mov r15, rcx
xor esi, esi
mov r12d, esi
mov edx, 0x104
lea rcx, [rbp - 0x58]
call fcn.140009c84
nop
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov eax, dword [rbp - 0x48]
mov dword [rsp + 0x40], eax
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r8, qword [rbp - 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r14d, eax
test eax, eax
jne 0x1400069fd
mov r13b, sil
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
call fcn.14000bec0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov qword [rbp + 0x10], 7
xor ecx, ecx
mov qword [rbp + 8], rcx
mov word [rbp - 8], cx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 8]
call fcn.14000444c
nop
lea r8, [rbp - 8]
lea rdx, [rbp - 0x60]
lea rcx, [r15 + 0x60]
call fcn.140009f60
mov rdi, qword [rax]
cmp qword [rbp + 0x10], 8
jb 0x140006800
mov rcx, qword [rbp - 8]
call fcn.140014720
mov qword [rbp + 0x10], 7
xor ecx, ecx
mov qword [rbp + 8], rcx
mov word [rbp - 8], cx
cmp rdi, qword [r15 + 0x68]
je 0x14000682a
mov rbx, qword [rdi + 0x40]
mov rax, qword [rbx]
cmp qword [rsp + 0x50], rax
seta r13b
jmp 0x14000687c
mov ecx, 0x28
call fcn.140014af4
mov rbx, rax
mov qword [rbp - 0x68], rax
xor esi, esi
test rax, rax
je 0x140006858
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], esi
mov qword [rbx + 0x18], rsi
mov byte [rbx + 0x20], 1
jmp 0x14000685b
mov rbx, rsi
test rbx, rbx
je 0x1400069f8
mov rcx, rbx
mov rdx, qword [rsp + 0x60]
mov r8d, 0x28
call fcn.140014bb0
mov sil, 1
xor ecx, ecx
test r13b, r13b
jne 0x14000688a
test sil, sil
je 0x1400069f6
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rcx
mov word [rbp - 0x30], cx
xor eax, eax
or rcx, 0xffffffffffffffff
mov r13, qword [rsp + 0x68]
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.14000444c
nop
lea rdx, [0x1400368ac]
lea rcx, [rbp - 0x30]
call fcn.140004020
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.14000418c
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400069c5
mov r9, rbx
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call fcn.140006580
mov rdx, qword [rsp + 0x50]
mov qword [rbx], rdx
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
call fcn.14000bec0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov qword [rbp + 0x38], 7
xor esi, esi
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
xor eax, eax
mov rcx, rdi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x20]
call fcn.14000444c
nop
lea rdx, [rbp + 0x20]
lea rcx, [r15 + 0x60]
call fcn.140009d70
mov qword [rax], rbx
cmp qword [rbp + 0x38], 8
jb 0x1400069a8
mov rcx, qword [rbp + 0x20]
call fcn.140014720
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400069d4
test sil, sil
je 0x1400069d2
mov rcx, rbx
call fcn.140014720
xor esi, esi
cmp qword [rbp - 0x18], 8
jb 0x1400069e4
mov rcx, qword [rbp - 0x30]
call fcn.140014720
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
jmp 0x1400069f8
xor esi, esi
mov rdi, qword [rsp + 0x48]
inc r12d
test r14d, r14d
je 0x14000673f
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
cmp qword [rbp - 0x40], 8
jb 0x140006a27
mov rcx, qword [rbp - 0x58]
call fcn.140014720
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140014700
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret