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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x920]
sub rsp, 0xa20
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x910], rax
mov rax, rcx
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x58]
mov rsi, rdx
mov qword [rsp + 0x20], rcx
mov rbx, 0xffffffff80000001
mov rcx, rbx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009f5cc
xor al, al
jmp 0x14009f822
mov rdx, rsi
mov rcx, rbx
call fcn.14009fac4
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov rcx, rbx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14009f620
mov rcx, qword [rsp + 0x58]
call fcn.14009e96c
jmp 0x14009f5c5
mov ecx, 0x100000
call fcn.1400f9f30
mov rbx, rax
test rax, rax
jne 0x14009f640
lea rcx, [0x14018fe18]
call fcn.140063208
jmp 0x14009f5c5
lea rax, [rsp + 0x54]
xor edi, edi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x14009f6ae
mov eax, dword [rsp + 0x54]
lea rdx, [rbp + 0x110]
mov r9d, dword [rsp + 0x60]
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x54]
inc edi
mov qword [rsp + 0x38], rax
mov edx, edi
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x110]
mov dword [rsp + 0x50], 0x200
mov dword [rsp + 0x54], 0x100000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14009f664
mov rcx, rbx
call fcn.1400f9f28
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
xor edi, edi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
lea r8, [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x50], 0xc8
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14009f80c
mov rdi, qword [rsp + 0x78]
lea rax, [rbp - 0x80]
mov r9, rdi
lea r8, [0x140125d90]
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rbp + 0x510]
call fcn.140002694
lea rax, [rbp - 0x80]
mov r9, rsi
lea r8, [0x140125d90]
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rbp + 0x110]
call fcn.140002694
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x110]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14009f80c
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x510]
call fcn.14009f568
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x50]
xor eax, eax
mov dword [rsp + 0x50], 0xc8
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rax
inc ebx
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14009f729
mov rcx, qword [rsp + 0x58]
call fcn.14009e96c
mov rcx, qword [rsp + 0x70]
call fcn.14009e96c
mov al, 1
mov rcx, qword [rbp + 0x910]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa20
pop rdi
pop rsi
pop rbp
ret