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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x9510
call fcn.1401d4c90
sub rsp, rax
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x9500], rax
mov rcx, qword [rsp + 0x9520]
call fcn.140117270
mov rcx, qword [rsp + 0x9528]
call fcn.140117270
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x9520]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140117515
jmp 0x140117906
lea rax, [rsp + 0x84d0]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x9528]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140117575
lea r8, [rsp + 0x84d0]
mov rdx, qword [rsp + 0x9528]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140117575
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140117906
movzx eax, word [0x140221f94]
mov word [rsp + 0x80a0], ax
lea rdi, [rsp + 0x80a2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x78], 0x104
mov dword [rsp + 0x8094], 0
mov dword [rsp + 0x84d8], 0x3fff
lea rax, [rsp + 0x84c0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x8090]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x84c8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x84cc]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x82b0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8094]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80a0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x8094], 0
je 0x140117734
mov edx, dword [rsp + 0x8094]
lea rcx, str._nNumber_of_subkeys:__d_n
call fcn.1400ac834
mov dword [rsp + 0x6c], 0
jmp 0x14011766a
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x8094]
cmp dword [rsp + 0x6c], eax
jae 0x140117734
mov dword [rsp + 0x68], 0xff
lea rax, [rsp + 0x84c0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x82c0]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x14011772f
lea r9, [rsp + 0x82c0]
mov r8, qword [rsp + 0x9520]
lea rdx, [0x140222640]
lea rcx, [rsp + 0x84e0]
call fcn.1400a9064
lea r9, [rsp + 0x82c0]
mov r8, qword [rsp + 0x9528]
lea rdx, [0x140222650]
lea rcx, [rsp + 0x8ce0]
call fcn.1400a9064
lea rdx, [rsp + 0x8ce0]
lea rcx, [rsp + 0x84e0]
call fcn.1401174a0
jmp 0x14011765f
cmp dword [rsp + 0x84cc], 0
je 0x1401178ed
mov edx, dword [rsp + 0x84cc]
lea rcx, str._nNumber_of_values:__d_n
call fcn.1400ac834
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x7c], 0
jmp 0x140117772
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x84cc]
cmp dword [rsp + 0x6c], eax
jae 0x1401178ed
mov dword [rsp + 0x84d8], 0x3fff
xor eax, eax
mov word [rsp + 0x90], ax
mov dword [rsp + 0x94e8], 0
mov qword [rsp + 0x94e0], 0
mov dword [rsp + 0x94ec], 0
lea rax, [rsp + 0x94ec]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x94e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x84d8]
lea r8, [rsp + 0x90]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x7c], eax
mov ecx, dword [rsp + 0x94ec]
call fcn.140071ab0
mov qword [rsp + 0x94f0], rax
mov rax, qword [rsp + 0x94f0]
mov qword [rsp + 0x94e0], rax
mov dword [rsp + 0x84d8], 0x3fff
lea rax, [rsp + 0x94ec]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x94e0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x94e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x84d8]
lea r8, [rsp + 0x90]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x1401178cb
mov eax, dword [rsp + 0x94ec]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x94e0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x94e8]
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x84d0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rsp + 0x94e0]
mov qword [rsp + 0x94f8], rax
mov rcx, qword [rsp + 0x94f8]
call fcn.140071aa8
jmp 0x140117767
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x84d0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x9500]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x9510
pop rdi
ret