Function at 0x140006ad0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rsi, qword [r8]
xor eax, eax
mov rdi, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x70]
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
lea r9, [rbp - 0x70]
mov qword [rsp + 0x38], rax
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
mov rcx, rsi
test eax, eax
je 0x140006b90
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140006d40
xor eax, eax
lea r9, [rsp + 0x60]
lea r8, [rbp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov edi, 1
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0x208
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140006c5e
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
lea rdx, [rbp + 0xe0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006c1e
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0xe0]
mov rcx, rdi
call fcn.140006ad0
xor eax, eax
lea r9, [rsp + 0x60]
lea r8, [rbp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
je 0x140006be0
mov edi, 1
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x2f0]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
xor ebx, ebx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140006d2a
nop dword [rax]
mov eax, dword [rsp + 0x64]
mov r9d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x2f0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
lea r8, [rbp + 0x2f0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov edx, edi
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
je 0x140006cb0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140006d80
mov rbx, qword [rsp + 0x648]
add rsp, 0x610
pop rdi
pop rsi
pop rbp
ret