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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.140019860
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x140023020]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x68], r9d
mov qword [rsp + 0x58], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], ecx
mov qword [rbp - 0x80], rcx
mov ecx, dword [rbp + 0x2230]
mov dword [rbp - 0x70], ecx
mov rcx, rax
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
cmp word [rsi], 0x7d
je 0x14000d0dd
mov dword [rsp + 0x50], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000c958
test edi, edi
je 0x14000ca32
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
cmp dword [rsp + 0x68], 0
je 0x14000ca32
xor eax, eax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14000c9b4
cmp ax, 0x5c
je 0x14000c9ab
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000c992
jmp 0x14000c9b4
test rcx, rcx
jne 0x14000d0a8
lea rbx, [0x14001b640]
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000ca04
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x14000c9c0
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.14000c340
test edi, edi
je 0x14000ca32
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
mov rdx, rsi
mov rcx, rdi
call fcn.14000c1b0
jmp 0x14000cd7a
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000ca65
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
jmp 0x14000ca69
mov edi, dword [rsp + 0x50]
lea rdx, [0x14001b510]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000cb73
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x60]
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
cmp word [rsi], 0x3d
jne 0x14000d0a8
cmp dword [rsp + 0x68], 0
je 0x14000caf8
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x68], rax
xor eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x68]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14000bcc0
mov ebx, eax
jmp 0x14000cd7c
cmp dword [rbp + 0x2230], 0
jne 0x14000cb61
test edi, edi
je 0x14000cb61
mov qword [rbp - 0x78], 0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d0d4
mov rdi, qword [rbp - 0x78]
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000d08f
test rdi, rdi
je 0x14000cb61
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c1b0
jmp 0x14000c908
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14000cba2
nop
cmp ax, 0x5c
je 0x14000cb99
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000cb80
jmp 0x14000cba2
test rcx, rcx
jne 0x14000d0a8
cmp dword [rsp + 0x68], 0
je 0x14000cdd8
mov qword [rsp + 0x50], 0
mov rbx, qword [rbp - 0x80]
lea rax, [rsp + 0x50]
test rbx, rbx
je 0x14000cbe3
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.14000c270
jmp 0x14000cbff
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cc2f
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000cc13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0
test eax, eax
je 0x14000cd47
jmp 0x14000cc34
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
test rbx, rbx
je 0x14000cc66
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.14000c270
jmp 0x14000cc82
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ccae
test rdi, rdi
je 0x14000cc94
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0
test eax, eax
je 0x14000cd47
mov qword [rsp + 0x50], 0
lea rax, [rbp - 0x6c]
test rbx, rbx
je 0x14000cce3
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.14000ba00
xor ebx, ebx
jmp 0x14000cd19
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000d0d4
mov eax, ebx
test rdi, rdi
je 0x14000cd31
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], ebx
test eax, eax
jne 0x14000d0d4
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
cmp word [rsi], 0x3d
jne 0x14000cd84
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14000bcc0
mov ebx, eax
test eax, eax
js 0x14000d0dd
cmp word [rsi], 0x7b
jne 0x14000c912
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000cd92
cmp rax, 1
jne 0x14000c912
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call fcn.14000c8a0
mov ebx, eax
test eax, eax
js 0x14000d0dd
mov rdx, rsi
mov rcx, rdi
jmp 0x14000c903
cmp dword [rbp + 0x2230], 0
jne 0x14000ce67
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14000ce17
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.14000c270
jmp 0x14000ce37
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14000ce6c
mov edi, ebx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000ce54
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], ebx
test edi, edi
je 0x14000ce76
jmp 0x14000ce6c
mov edi, 2
mov dword [rbp + 0x2230], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCR110.dll_wcsncpy_s]
test eax, eax
je 0x14000ceb4
cmp eax, 0xc
je 0x14000d0c5
cmp eax, 0x16
je 0x14000d0ba
cmp eax, 0x22
je 0x14000d0ba
cmp eax, 0x50
jne 0x14000d0af
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c1b0
mov ebx, eax
test eax, eax
js 0x14000d0dd
cmp word [rsi], 0x7b
jne 0x14000cf49
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000cef0
cmp rax, 1
jne 0x14000cf49
mov eax, dword [rbp + 0x2230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c8a0
mov ebx, eax
test eax, eax
jns 0x14000cf32
cmp dword [rbp + 0x2230], 0
je 0x14000d0dd
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.14000c6e0
mov ebx, eax
test eax, eax
js 0x14000d0dd
mov eax, dword [rbp - 0x70]
mov dword [rbp + 0x2230], eax
cmp edi, 2
je 0x14000c912
test edi, edi
je 0x14000cf6c
test eax, eax
je 0x14000d0d0
jmp 0x14000c912
test eax, eax
je 0x14000cfd4
mov rdx, qword [rsp + 0x70]
call fcn.14000c4d0
test eax, eax
je 0x14000cfd4
lea rdi, [0x14001b640]
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000c912
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x14000cf90
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000c912
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.14000c340
jmp 0x14000c912
mov rdx, qword [rsp + 0x70]
call fcn.14000c4d0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000cff9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0
test eax, eax
jne 0x14000d0d4
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000c912
test edi, edi
jne 0x14000c912
cmp byte [0x140025458], dil
jne 0x14000d061
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d051
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140025450], rax
jmp 0x14000d058
mov rax, qword [0x140025450]
mov byte [0x140025458], 1
jmp 0x14000d068
mov rax, qword [0x140025450]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x58]
test rax, rax
je 0x14000d080
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x14000d086
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14000d0d4
jmp 0x14000c912
mov ecx, eax
call fcn.14000c6d0
mov ebx, eax
test rdi, rdi
je 0x14000d0dd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000d0dd
mov ebx, 0x80020009
jmp 0x14000d0dd
mov ecx, 0x80004005
call fcn.1400061d0
int3
mov ecx, 0x80070057
call fcn.1400061d0
int3
mov ecx, 0x8007000e
call fcn.1400061d0
int3
mov ecx, edi
jmp 0x14000d0d6
mov ecx, eax
call fcn.14000c6d0
mov ebx, eax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000d0f0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.140018cd0
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret