Function at 0x14009d6e8
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 [0x1401412b0]
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 0x14009d74c
xor al, al
jmp 0x14009d9a2
mov rdx, rsi
mov rcx, rbx
call fcn.14009dc44
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 0x14009d7a0
mov rcx, qword [rsp + 0x58]
call fcn.14009caec
jmp 0x14009d745
mov ecx, 0x100000
call fcn.1400f7870
mov rbx, rax
test rax, rax
jne 0x14009d7c0
lea rcx, [0x14017f1b0]
call fcn.140062284
jmp 0x14009d745
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 0x14009d82e
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 0x14009d7e4
mov rcx, rbx
call fcn.1400f7868
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 0x14009d98c
mov rdi, qword [rsp + 0x78]
lea rax, [rbp - 0x80]
mov r9, rdi
lea r8, [0x140118fe0]
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rbp + 0x510]
call fcn.14000269c
lea rax, [rbp - 0x80]
mov r9, rsi
lea r8, [0x140118fe0]
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rbp + 0x110]
call fcn.14000269c
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 0x14009d98c
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x510]
call fcn.14009d6e8
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 0x14009d8a9
mov rcx, qword [rsp + 0x58]
call fcn.14009caec
mov rcx, qword [rsp + 0x70]
call fcn.14009caec
mov al, 1
mov rcx, qword [rbp + 0x910]
xor rcx, rsp
call fcn.1400f0b80
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa20
pop rdi
pop rsi
pop rbp
ret