Function at 0x1400053a8
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 [0x140018018]
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 0x14000542c
cmp dword [rsi], 0
mov edi, 1
je 0x14000569b
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x30], 7
jge 0x140005463
mov ebx, 0x8007139f
jmp 0x1400056a0
test rbx, rbx
je 0x1400055b1
cmp qword [rsp + 0x58], 0
je 0x1400055b1
mov rdx, qword [rsi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140005492
add rbx, 2
test ecx, ecx
jne 0x14000547f
test eax, eax
je 0x1400054a0
mov ebx, 0x80070005
jmp 0x1400056a0
lea rcx, [rsp + 0x50]
call fcn.14000b970
mov ebx, eax
test eax, eax
jne 0x1400056a0
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 0x140005508
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 0x14000568a
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 0x140005558
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 0x14000568a
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 0x1400055bb
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [rax + rax]
test eax, eax
je 0x140005607
test byte [rbp + 0x100], dil
je 0x140005607
mov ebx, 0x80070057
jmp 0x1400056a0
test dword [rbp + 0x100], edi
lea r9, str.Unknown_Owner
mov ecx, 0xe
lea rdx, str..Owner
cmovne ecx, r13d
mov rax, r12
cmove rax, r9
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x38]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000568a
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 0x140005647
xor edi, edi
jmp 0x1400056a0
test r15, r15
lea rax, [0x140013db0]
cmove r15, rax
inc r14
cmp byte [r15 + r14], 0
jne 0x140005655
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 0x1400056a0
jg 0x140005690
mov ebx, eax
jmp 0x1400056a0
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400056a0
mov ebx, 0x8007000e
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400056b6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400056cc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x1400056dc
mov rdx, qword [rsp + 0x60]
call fcn.140005724
mov ebx, eax
cmp dword [rsi], 0
je 0x1400056f1
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.140001580
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret