Function at 0x100076580
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
call fcn.1000141d0
nop
mov rax, qword [rsp + 0x128]
mov dword [rax], 1
lea rcx, [rsp + 0x30]
call fcn.100014450
nop
mov rdx, qword [0x1000a87e8]
lea rcx, [rsp + 0xb0]
call fcn.100018c00
nop
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0xb0]
call fcn.100048450
nop
lea rcx, [rsp + 0xb0]
call fcn.1000144b0
lea rcx, [rsp + 0x30]
call fcn.100013bb0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10007664f
jmp 0x100076a32
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1000766b2
cmp dword [rsp + 0x38], 2
jne 0x1000766ad
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x48], 1
jmp 0x100076a32
mov eax, dword [rsp + 0x80]
add rax, 4
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x130]
cmp qword [rax], 0
jne 0x100076701
jmp 0x100076a32
mov rax, qword [rsp + 0x138]
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
mov eax, dword [rsp + 0x80]
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10007676c
jmp 0x100076a32
mov rax, qword [rsp + 0x130]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.100054c80
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc8]
call fcn.1000148e0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x50]
call fcn.1000508f0
test eax, eax
jne 0x1000767e4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100076950
lea rcx, [rsp + 0x90]
call fcn.100014450
nop
lea rcx, [rsp + 0x88]
call fcn.100014450
nop
lea rcx, [rsp + 0x50]
call fcn.100013bb0
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.100013bc0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.100015fc0
mov rcx, qword [rsp + 0x110]
call fcn.100013bb0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.100013e90
test eax, eax
jne 0x100076915
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.100056c00
lea rcx, [rsp + 0x50]
call fcn.100013ba0
movzx eax, al
test eax, eax
jne 0x100076913
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x120]
call fcn.100076b70
lea rcx, [rsp + 0x50]
call fcn.100013bb0
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.100013bc0
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.100015fc0
mov rdx, qword [0x1000a87f8]
lea rcx, [rsp + 0x88]
call fcn.100013e90
test eax, eax
jne 0x100076913
mov rdx, qword [0x1000a87f8]
lea rcx, [rsp + 0xa0]
call fcn.100018c00
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.100056c00
nop
lea rcx, [rsp + 0xa0]
call fcn.1000144b0
jmp 0x100076935
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x50]
call fcn.100056c00
mov rax, qword [rsp + 0x128]
mov dword [rax], 0
lea rcx, [rsp + 0x88]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x90]
call fcn.1000144b0
lea rcx, [rsp + 0x50]
call fcn.100013ba0
movzx eax, al
test eax, eax
jne 0x100076a07
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.10004b610
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x10007698f
jmp 0x100076a32
mov eax, dword [rsp + 0x80]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000769e8
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x100076a32
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x100076a1f
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100076a1f
jmp 0x100076a32
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x48], 1
cmp dword [rsp + 0x48], 0
jne 0x100076a4c
cmp qword [rsp + 0x40], 0
je 0x100076a4c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xe0], eax
lea rcx, [rsp + 0x30]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x50]
call fcn.100014300
mov eax, dword [rsp + 0xe0]
add rsp, 0x108
ret