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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r15, qword [rbp + 0xf8]
xor edi, edi
mov r12, qword [rbp + 0xf0]
mov rbx, rdx
mov qword [rsp + 0x58], r8
mov rsi, rcx
mov r14d, 0x104
mov qword [rsp + 0x60], r9
mov r8d, r14d
mov qword [rsp + 0x50], rdi
xor edx, edx
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], r14d
or r14, 0xffffffffffffffff
mov r13, r14
inc r13
cmp byte [r12 + r13], dil
jne 0x1400053f0
cmp dword [rsi], 0
mov edi, 1
je 0x1400055b6
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x30], 7
jge 0x140005427
mov ebx, 0x8007139f
jmp 0x140005586
test rbx, rbx
je 0x140005581
cmp qword [rsp + 0x58], 0
je 0x140005581
mov rdx, qword [rsi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140005456
add rbx, 2
test ecx, ecx
jne 0x140005443
test eax, eax
je 0x140005464
mov ebx, 0x80070005
jmp 0x140005586
lea rcx, [rsp + 0x50]
call fcn.14000b79c
mov ebx, eax
test eax, eax
jne 0x140005586
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionModuleUsage
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400054cc
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionModuleUsage
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x1400056e1
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
je 0x14000551c
mov rdx, qword [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
nop dword [rax + rax]
test eax, eax
jne 0x1400056e1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str..Owner
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140005604
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [rax + rax]
test eax, eax
je 0x140005657
test byte [rbp + 0x100], dil
je 0x140005657
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000559c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400055b2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x1400055c2
mov rdx, qword [rsp + 0x60]
call fcn.140005700
mov ebx, eax
cmp dword [rsi], 0
je 0x1400055d7
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140001560
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [rbp + 0x100]
lea r9, str.Unknown_Owner
and r8d, edi
lea rdx, str..Owner
mov ecx, 0xe
mov rax, r12
cmovne ecx, r13d
test edi, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x38]
cmove rax, r9
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400056e1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000569a
xor edi, edi
jmp 0x140005586
test r15, r15
lea rax, [0x140013d90]
cmove r15, rax
inc r14
cmp byte [r15 + r14], 0
jne 0x1400056a8
mov rcx, qword [rsp + 0x38]
add r14d, edi
mov dword [rsp + 0x28], r14d
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
test eax, eax
je 0x140005586
jg 0x1400056ea
mov ebx, eax
jmp 0x140005586
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140005586