Function at 0x1400667a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12, rdx
lea rax, [rbp - 0x80]
xor r13d, r13d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesVSSVssAccessControl
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, r13d
mov r14d, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140066862
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x140066c9d
test byte [rcx + 0x1c], 1
je 0x140066c9d
cmp byte [rcx + 0x19], 3
jb 0x140066c9d
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x17]
mov r9d, ebx
lea r8, [0x14015f0b8]
call fcn.140004e7c
jmp 0x140066c9d
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], r13
xor r9d, r9d
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x64]
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x78], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
je 0x14006691a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x140066c8d
test byte [rcx + 0x1c], 1
je 0x140066c8d
cmp byte [rcx + 0x19], 3
jb 0x140066c8d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f0b8]
mov edx, 0x18
mov r9d, ebx
call fcn.140004e7c
jmp 0x140066c8d
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x140066953
test byte [rcx + 0x1c], 1
je 0x140066953
cmp byte [rcx + 0x19], 4
jb 0x140066953
mov r9d, dword [rsp + 0x60]
lea r8, [0x14015f0b8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
call fcn.140004e7c
mov r15d, r13d
cmp dword [rsp + 0x60], r13d
jbe 0x140066c8d
lea rax, [0x140157f78]
mov byte [rbp - 0x24], r13b
mov qword [rbp - 0x70], rax
lea rcx, [0x1401832b0]
mov rax, qword [0x1401832b0]
mov dword [rbp - 0x20], 7
mov rax, qword [rax + 0x18]
call qword [case.0x140005df3.0]
add rax, 0x18
lea rcx, [0x1401832b0]
mov qword [rbp - 0x18], rax
mov rax, qword [0x1401832b0]
mov rax, qword [rax + 0x18]
call qword [case.0x140005df3.0]
add rax, 0x18
lea rcx, [0x1401832b0]
mov qword [rbp - 0x10], rax
mov rax, qword [0x1401832b0]
mov rax, qword [rax + 0x18]
call qword [case.0x140005df3.0]
add rax, 0x18
lea rcx, [0x1401832b0]
mov qword [rbp - 8], rax
mov rax, qword [0x1401832b0]
mov rax, qword [rax + 0x18]
call qword [case.0x140005df3.0]
add rax, 0x18
mov dword [rsp + 0x6c], r13d
mov qword [rbp], rax
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x74], r13d
mov dword [rsp + 0x68], r13d
test r14, r14
je 0x140066a1f
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x64]
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140066c6b
mov eax, dword [rsp + 0x64]
lea r9, [rsp + 0x6c]
mov rcx, qword [rbp - 0x80]
inc eax
mov dword [rsp + 0x6c], eax
mov r8, r14
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x38], rax
mov edx, r15d
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
je 0x140066ada
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x140066c52
test byte [rcx + 0x1c], 1
je 0x140066c52
cmp byte [rcx + 0x19], 2
jb 0x140066c52
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f0b8]
mov edx, 0x1a
mov dword [rsp + 0x20], r13d
mov r9d, r15d
call fcn.1400104d0
jmp 0x140066c52
mov r9d, dword [rsp + 0x70]
mov eax, dword [rsp + 0x68]
cmp r9d, 4
jne 0x140066c21
cmp eax, r9d
jne 0x140066c21
cmp dword [rsp + 0x74], 1
je 0x140066b42
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x140066c52
test byte [rcx + 0x1c], 1
je 0x140066c52
cmp byte [rcx + 0x19], r9b
jb 0x140066c52
lea edx, [r9 + 0x18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f0b8]
mov r9d, r15d
mov qword [rsp + 0x20], r14
call fcn.1400105f0
jmp 0x140066c52
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.14006ba1c
test al, al
jne 0x140066bb9
mov rax, qword [0x140183048]
cmp rax, rdi
je 0x140066c52
test byte [rax + 0x1c], 1
je 0x140066c52
cmp byte [rax + 0x19], 2
jb 0x140066c52
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x1d
lea r8, [0x14015f0b8]
mov ecx, eax
mov r9, r14
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov rcx, qword [0x140183048]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140005f80
jmp 0x140066c52
xor r9d, r9d
lea rdx, [rbp - 0x70]
mov rcx, r12
lea r8d, [r9 + 1]
call fcn.14006cc9c
test al, al
jne 0x140066bff
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x140066c52
test byte [rcx + 0x1c], 1
je 0x140066c52
cmp byte [rcx + 0x19], 2
jb 0x140066c52
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f0b8]
mov edx, 0x1e
call fcn.140004e50
jmp 0x140066c52
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x140066c52
test byte [rcx + 0x1c], 1
je 0x140066c52
cmp byte [rcx + 0x19], 4
jb 0x140066c52
mov edx, 0x1f
jmp 0x140066b25
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x140066c52
test byte [rcx + 0x1c], 1
je 0x140066c52
cmp byte [rcx + 0x19], 3
jb 0x140066c52
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f0b8]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
call fcn.1400104d0
lea rcx, [rbp - 0x70]
call fcn.14006d780
inc r15d
cmp r15d, dword [rsp + 0x60]
jb 0x140066961
jmp 0x140066c79
lea rcx, [rbp - 0x70]
mov ebx, 0x8007000e
call fcn.14006d780
test r14, r14
je 0x140066c8d
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1401534b0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret