Function at 0x14006fe80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov r12d, ecx
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call fcn.14013d07c
mov rcx, rax
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14006fec3
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.RTSnMg64.cpl
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.RTSnMg64.cpl
lea rcx, [rsp + 0x88]
call fcn.140002390
mov rsi, qword [rsp + 0x88]
test r12d, r12d
je 0x1400700d4
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006ff83
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x50], rdi
lea rbx, [0x14019cf88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9d, [rbp + 2]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140070244
mov qword [rsp + 0x80], rbx
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdi, rbx
test eax, eax
cmove rdi, qword [rsp + 0x80]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.Control_Paneldont_load
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140070068
mov eax, ebx
test rdi, rdi
je 0x140070023
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x50], rdi
test eax, eax
jne 0x140070068
lea rbx, [0x14019cf88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140070244
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Control_Paneldont_load
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140070244
test rdi, rdi
je 0x1400700c5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
jmp 0x140070244
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007011c
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rcx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140070244
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdi, rbx
test eax, eax
cmove rdi, qword [rsp + 0x78]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.Control_Paneldont_load
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400701d8
mov eax, ebx
test rdi, rdi
je 0x1400701b9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x98]
mov qword [rsp + 0x50], rdi
test eax, eax
jne 0x1400701d8
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140070244
mov qword [rsp + 0x90], rbx
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Control_Paneldont_load
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140070244
test rdi, rdi
je 0x140070237
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
lea rdx, [rsi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14007025e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14007026e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0xb0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret