Function at 0x18010eb10
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x280
mov rax, qword [0x180157688]
mov qword [rsp + 0x278], rax
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x260], 0
lea rax, [0x180136b58]
mov qword [rsp + 0x20], rax
lea r9, [0x180136b70]
lea r8, [0x180136bb8]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180003110
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x18010ebcd
mov ecx, dword [rsp + 0x34]
call fcn.18010eac0
mov dword [rsp + 0x270], eax
mov edx, dword [rsp + 0x270]
lea rcx, str.SetProductFlag_StringCchPrintf_Error
call fcn.18010eab0
mov eax, dword [rsp + 0x270]
jmp 0x18010ee0e
lea r8, [rsp + 0x258]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x18010edd9
mov dword [rsp + 0x250], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x180136c20]
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x18010ed24
cmp dword [rsp + 0x298], 1
jne 0x18010ec80
mov eax, dword [rsp + 0x290]
mov ecx, dword [rsp + 0x260]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x260], eax
jmp 0x18010ec9b
mov eax, dword [rsp + 0x290]
not eax
mov ecx, dword [rsp + 0x260]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x260], eax
mov ecx, 1
call fcn.18010f750
mov qword [rsp + 0x268], rax
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x180136c38]
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x270], eax
cmp qword [rsp + 0x268], 0xffffffffffffffff
je 0x18010ed02
mov rcx, qword [rsp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x270], 0
je 0x18010ed1f
mov edx, dword [rsp + 0x270]
lea rcx, [0x180136c50]
call fcn.18010eab0
jmp 0x18010edc9
cmp dword [rsp + 0x298], 1
jne 0x18010edb6
mov ecx, 1
call fcn.18010f750
mov qword [rsp + 0x268], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ProductFlag
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x270], eax
cmp qword [rsp + 0x268], 0xffffffffffffffff
je 0x18010ed97
mov rcx, qword [rsp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x270], 0
je 0x18010edb4
mov edx, dword [rsp + 0x270]
lea rcx, str.SetProductFlag_RegSetValueEx_Error
call fcn.18010eab0
jmp 0x18010edc9
mov edx, dword [rsp + 0x270]
lea rcx, str.SetProductFlag_RegQueryValueEx_Error
call fcn.18010eab0
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18010edec
mov edx, dword [rsp + 0x270]
lea rcx, str.SetProductFlag_RegOpenKey_Error
call fcn.18010eab0
cmp dword [rsp + 0x270], 0
jne 0x18010ee07
mov rax, qword [rsp + 0x2a0]
mov ecx, dword [rsp + 0x260]
mov dword [rax], ecx
mov eax, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x278]
call fcn.180124250
add rsp, 0x280
pop rdi
ret