Function at 0x140009c6c
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.140014450
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x14001c038]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x80], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov esi, ecx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.140009ab4
test eax, eax
mov ebx, eax
js 0x14000a3c7
cmp word [rdi], 0x7d
je 0x14000a3c7
mov eax, 1
mov dword [rsp + 0x78], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009d21
test ebx, ebx
je 0x140009de6
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000a3c7
cmp dword [rsp + 0x70], edx
je 0x140009de6
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140009d6a
cmp ax, 0x5c
je 0x140009d71
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140009d58
jmp 0x140009d7a
test rcx, rcx
jne 0x14000a40d
lea rbx, [0x1400153c0]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009db5
add rbx, 8
lea rax, str.IMAGE
cmp rbx, rax
jl 0x140009d81
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140009890
xor eax, eax
cmp dword [rsp + 0x60], eax
je 0x140009de6
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
test eax, eax
js 0x14000a3c7
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400097e8
jmp 0x14000a090
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x140009e17
mov dword [rsp + 0x78], ecx
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
test eax, eax
js 0x14000a3c7
lea rdx, [0x140015ea8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x140009f23
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
test eax, eax
js 0x14000a3c7
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000a3c7
cmp word [rdi], 0x3d
jne 0x14000a40d
cmp dword [rsp + 0x70], edx
je 0x140009ea6
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov r9, rdi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.14000927c
mov ebx, eax
xor edx, edx
jmp 0x14000a094
cmp dword [rbp + 0x2240], edx
jne 0x140009f11
cmp dword [rsp + 0x78], edx
je 0x140009f11
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a3be
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000a3f2
test rbx, rbx
je 0x140009f11
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400097e8
jmp 0x140009ccb
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140009f3f
cmp ax, 0x5c
je 0x140009f46
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140009f2b
jmp 0x140009f4f
test rcx, rcx
jne 0x14000a40d
cmp dword [rsp + 0x70], edx
je 0x14000a0f1
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140009faa
mov eax, ecx
test rsi, rsi
je 0x140009f99
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
je 0x14000a059
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140009ff3
mov eax, ecx
test rsi, rsi
je 0x140009fe6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
je 0x14000a059
mov qword [rsp + 0x60], rcx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x14000a3be
mov eax, edx
test rsi, rsi
je 0x14000a048
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
jne 0x14000a3be
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000a3c7
cmp word [rdi], 0x3d
jne 0x14000a09c
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.14000927c
mov rsi, qword [rbp - 0x78]
xor edx, edx
mov ebx, eax
test eax, eax
js 0x14000a3c7
cmp word [rdi], 0x7b
jne 0x140009cd5
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14000a0aa
mov ecx, 1
cmp rax, rcx
jne 0x140009cd5
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x70]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009c6c
mov ebx, eax
test eax, eax
js 0x14000a3c7
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
jmp 0x140009cc6
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x14000a14d
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x74], eax
xor edx, edx
test eax, eax
jne 0x14000a156
mov eax, edx
mov dword [rsp + 0x74], edx
test rsi, rsi
je 0x14000a142
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x74], eax
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
jmp 0x14000a156
mov eax, 2
mov dword [rsp + 0x74], eax
mov ecx, ebx
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x60], ecx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
test eax, eax
je 0x14000a1a4
cmp eax, 0xc
je 0x14000a42a
cmp eax, 0x16
je 0x14000a41f
cmp eax, 0x22
je 0x14000a41f
cmp eax, 0x50
jne 0x14000a414
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
test eax, eax
js 0x14000a3c7
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400097e8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000a3c7
cmp word [rdi], 0x7b
jne 0x14000a237
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14000a1de
mov ecx, 1
cmp rax, rcx
jne 0x14000a237
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009c6c
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x14000a21e
cmp dword [rsp + 0x60], edx
je 0x14000a3c7
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140009ab4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000a3c7
mov ecx, dword [rsp + 0x74]
cmp ecx, 2
je 0x140009cd5
test ecx, ecx
je 0x14000a259
cmp dword [rbp + 0x2240], edx
je 0x14000a3c0
jmp 0x140009cd5
cmp dword [rbp + 0x2240], edx
je 0x14000a310
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14000a310
cmp dword [rsp + 0x60], edx
jbe 0x14000a310
lea rax, [0x1400153c0]
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x140009cd5
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, str.IMAGE
cmp rax, rcx
jl 0x14000a2bf
cmp dword [rsp + 0x78], edx
je 0x140009cd5
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.140009890
mov rsi, qword [rbp - 0x78]
jmp 0x140009cd5
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
je 0x14000a35e
mov dword [rsp + 0x60], edx
jmp 0x14000a36b
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
mov dword [rsp + 0x60], eax
test rsi, rsi
je 0x14000a385
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rbp - 0x78], rdx
test eax, eax
jne 0x14000a3be
cmp dword [rsp + 0x78], edx
je 0x140009cd5
cmp dword [rsp + 0x60], edx
jne 0x140009cd5
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call fcn.1400099ec
test eax, eax
je 0x140009cd5
mov ecx, eax
call fcn.140009aa4
mov ebx, eax
test rsi, rsi
je 0x14000a3d5
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.140013b10
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.140009aa4
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a3c7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a3c7
mov ebx, 0x80020009
jmp 0x14000a3c7
mov ecx, 0x80004005
call fcn.1400097c4
int3
mov ecx, 0x80070057
call fcn.1400097c4
int3
mov ecx, 0x8007000e
call fcn.1400097c4
int3