Function at 0x100076c10
Capabilities:
Delete registry key
Query or enumerate 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, 0xa8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.100014450
nop
lea rcx, [rsp + 0x58]
call fcn.100014450
nop
cmp qword [rsp + 0xc0], 0
je 0x100076c7e
cmp qword [rsp + 0xc8], 0
jne 0x100076cb2
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x58]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x40]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xb0]
call fcn.1000144b0
mov eax, dword [rsp + 0x60]
jmp 0x100076fd6
mov rax, qword [rsp + 0xc0]
mov qword [rax], 0
mov r8d, 0x80000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x100076ceb
mov dword [rsp + 0x50], 0
jmp 0x100076f33
mov rcx, qword [rsp + 0xb0]
call fcn.100013ee0
mov r8d, 0x80000000
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x100076d45
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x100076d36
mov rax, qword [rsp + 0xb8]
mov dword [rax], 1
jmp 0x100076d43
mov dword [rsp + 0x50], 0
jmp 0x100076f33
jmp 0x100076d60
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0xb8]
mov dword [rax], 0
jmp 0x100076f33
lea rdx, [0x100010df0]
lea rcx, [rsp + 0x68]
call fcn.100018c00
nop
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
call fcn.100048450
nop
lea rcx, [rsp + 0x68]
call fcn.1000144b0
mov rdx, qword [0x1000a8800]
lea rcx, [rsp + 0x70]
call fcn.100018c00
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.100048450
nop
lea rcx, [rsp + 0x70]
call fcn.1000144b0
lea rcx, [rsp + 0x58]
call fcn.100013ee0
lea rcx, [rsp + 0x48]
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 0x100076e03
mov dword [rsp + 0x50], 0
jmp 0x100076f33
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100076e42
mov dword [rsp + 0x50], 0
jmp 0x100076f33
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax]
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
jne 0x100076e84
mov dword [rsp + 0x50], 0
jmp 0x100076f33
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100076ec7
mov dword [rsp + 0x50], 0
jmp 0x100076f33
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x58]
call fcn.100013ee0
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x100076f03
mov dword [rsp + 0x50], 0
jmp 0x100076f33
lea rcx, [rsp + 0x40]
call fcn.100013ee0
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x100076f2b
mov dword [rsp + 0x50], 0
jmp 0x100076f33
mov dword [rsp + 0x50], 1
cmp qword [rsp + 0x30], 0
je 0x100076f46
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x38], 0
je 0x100076f59
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x48], 0
je 0x100076f6c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], 0
jne 0x100076fa1
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
je 0x100076fa1
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x88], eax
lea rcx, [rsp + 0x58]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x40]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xb0]
call fcn.1000144b0
mov eax, dword [rsp + 0x88]
add rsp, 0xa8
ret