Function at 0x1400077e4
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 [0x140011008]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0xf8]
mov r15, qword [rbp + 0xf0]
xor edi, edi
mov qword [rsp + 0x60], rax
mov eax, dword [rbp + 0x100]
mov rsi, rcx
mov r13, r8
mov rbx, rdx
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x4c], edi
mov byte [rsp + 0x70], dil
call sub.msvcrt.dll_memset
or r14, 0xffffffffffffffff
mov dword [rsp + 0x30], 0x104
mov r12, r14
inc r12
cmp byte [r15 + r12], dil
jne 0x14000787a
cmp dword [rsi], 0
mov edi, 1
je 0x140007a01
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsi + 0x30], 7
jge 0x1400078ab
mov ebx, 0x8007139f
jmp 0x1400079dd
test rbx, rbx
je 0x1400079d8
test r13, r13
je 0x1400079d8
mov rdx, qword [rsi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x1400078d7
add rbx, 2
test ecx, ecx
jne 0x1400078c4
test eax, eax
je 0x1400078e5
mov ebx, 0x80070005
jmp 0x1400079dd
lea rcx, [rsp + 0x50]
call fcn.14000d238
mov ebx, eax
test eax, eax
jne 0x1400079dd
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, [0x140003750]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140007941
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [0x140003750]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140007b10
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007981
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140007b10
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x140003894]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140007a48
lea rcx, [rsp + 0x70]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140007a8d
test byte [rsp + 0x48], dil
je 0x140007a8d
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400079ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400079fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140007a0d
mov rdx, qword [rsp + 0x58]
call fcn.14000544c
mov ebx, eax
cmp dword [rsi], 0
je 0x140007a1c
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000faa0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [rsp + 0x48]
mov ecx, 0xe
lea rax, [0x1400037c0]
and edx, edi
mov r9d, edi
cmovne ecx, r12d
test edx, edx
lea rdx, [0x140003894]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x38]
cmovne rax, r15
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140007b10
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, r15
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140007aca
xor edi, edi
jmp 0x1400079dd
mov rcx, qword [rsp + 0x60]
lea rax, [0x140003450]
test rcx, rcx
cmovne rax, rcx
inc r14
cmp byte [rax + r14], 0
jne 0x140007add
mov rcx, qword [rsp + 0x38]
add r14d, edi
mov r9d, edi
xor r8d, r8d
mov rdx, r15
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400079dd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400079dd