Function at 0x180067df0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x8a0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x890], rax
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExt
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180067fed
cmp qword [rsp + 0x60], rsi
je 0x180068002
mov word [rsp + 0x90], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x92]
call fcn.1800c31a0
lea r8, str.Stats_
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800c0e4c
lea r8, [0x180103280]
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800c29a4
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea r8, str.Settings_
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800c0e4c
lea r8, [0x180103280]
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800c29a4
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 5
jne 0x180067fed
mov qword [rsp + 0x68], rsi
lea rax, vtable.CNTSecurityObject.0
mov qword [rsp + 0x70], rax
mov rdi, rsi
mov qword [rsp + 0x78], rsi
mov rbx, rsi
mov qword [rsp + 0x80], rbx
call fcn.18007f450
lea rcx, [rsp + 0x70]
call fcn.18007f7a0
lea r11, [rsp + 0x68]
mov qword [rsp + 0x20], r11
mov r9d, 0x1060000
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180067fbc
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x180067fd1
mov r8d, 0xf003f
lea rcx, [rsp + 0x70]
call fcn.180080010
test eax, eax
jne 0x180067faf
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
jmp 0x180067fbc
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180067fd1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
test rdi, rdi
je 0x180067fdf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x180067fed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180068002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExtCLSID
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006809f
lea rdx, [0x180103280]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18006809f
cmp dword [rsp + 0x68], eax
jne 0x18006809f
lea rdx, [0x180107284]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1800680af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1800bf8d0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret