Function at 0x100007edc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x2b0
mov rax, qword [0x10001d180]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rax, qword [0x10001d100]
xor ebp, ebp
mov esi, ecx
lea rcx, [0x10001d100]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x44], ebp
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x1000047a0]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x50]
lea r12d, [rbp + 1]
cmp rcx, rbp
je 0x100008004
lea rax, [rsp + 0x40]
lea rbx, [0x100004800]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x100007ff9
mov eax, esi
and eax, 4
je 0x100007fc0
cmp dword [rsp + 0x30], 3
je 0x100007fc0
mov dword [rsp + 0x30], 3
jmp 0x100007fd0
cmp eax, ebp
jne 0x100007ff9
cmp dword [rsp + 0x30], r12d
je 0x100007ff9
mov dword [rsp + 0x30], r12d
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea rax, [rsp + 0x60]
lea r9, [0x1000048c8]
lea r8d, [rdx + 0x17]
lea rcx, [0x100004888]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x10000803d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov r8d, r12d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x18]
cmp eax, ebp
jl 0x100008210
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x44]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, ebp
jl 0x100008210
mov ebx, ebp
cmp dword [rsp + 0x44], ebp
jbe 0x100008210
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x38]
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x90]
mov r8d, 0x104
call fcn.10000828c
cmp eax, 0x10
jne 0x100008203
mov rcx, qword [rsp + 0x38]
xor eax, eax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
cmp rcx, rbp
je 0x100008135
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x28]
cmp eax, ebp
jl 0x10000811b
mov rdx, qword [rsp + 0x58]
cmp rdx, rbp
jne 0x1000080f1
mov ecx, ebp
jmp 0x100008103
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
mov r8d, ecx
lea rcx, [rsp + 0x88]
call fcn.1000092b0
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
cmp rcx, rbp
je 0x100008130
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x58], rbp
mov rcx, qword [rsp + 0x38]
cmp dword [rdi - 0x10], ebp
je 0x100008215
xor edx, edx
lea rax, [rsp + 0x48]
lea r9, [0x1000048d8]
lea rcx, [0x100004898]
lea r8d, [rdx + 0x17]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x100008210
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
lea r9, [0x100003a00]
mov qword [rsp + 0x20], rdx
mov r8d, r12d
mov rdx, rdi
call qword [rax + 0x50]
cmp eax, ebp
jl 0x1000081e8
cmp word [rsp + 0x70], 0x13
jne 0x1000081e8
mov eax, esi
and eax, 4
je 0x1000081b6
cmp dword [rsp + 0x78], 3
je 0x1000081b6
mov dword [rsp + 0x78], 3
jmp 0x1000081c6
cmp eax, ebp
jne 0x1000081e8
cmp dword [rsp + 0x78], r12d
je 0x1000081e8
mov dword [rsp + 0x78], r12d
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
lea r9, [0x100003a00]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
mov r8d, r12d
mov rdx, rdi
call qword [rax + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x100008203
mov rax, qword [rcx]
call qword [rax + 0x10]
add ebx, r12d
cmp ebx, dword [rsp + 0x44]
jb 0x10000807e
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x100008225
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x60]
cmp rcx, rbp
je 0x10000823a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x60], rbp
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebp
jg 0x100008255
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.10000e9b0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret