Function at 0x140008680
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.14000c6d0
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x140013b20]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x78], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
mov ecx, dword [rbp + 0x2230]
mov dword [rbp - 0x50], ecx
mov rcx, rax
call fcn.140007a94
test eax, eax
mov ebx, eax
js 0x140008d5a
cmp word [rdi], 0x7d
je 0x140008d5a
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
sete sil
lea rdx, [0x1400127a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008736
test esi, esi
je 0x140008807
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140007a94
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140008d5a
cmp dword [rsp + 0x70], edx
je 0x140008805
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000877e
cmp ax, 0x5c
je 0x140008785
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000876c
jmp 0x14000878e
test rcx, rcx
jne 0x140008d25
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400087d5
add rbx, 8
lea rax, [0x140012dc0]
cmp rbx, rax
jl 0x140008795
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
xor ebx, ebx
mov dword [rbp - 0x78], ebx
mov qword [rbp - 0x70], rbx
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140008104
jmp 0x1400087d7
xor ebx, ebx
test esi, esi
je 0x140008807
mov rdx, rdi
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.140007a94
mov ebx, eax
test eax, eax
js 0x140008d5a
mov rdx, rdi
mov rcx, rsi
call fcn.14000a0dc
jmp 0x140008a0c
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rsi, qword [rsp + 0x68]
test eax, eax
jne 0x140008839
mov dword [rsp + 0x74], ebx
mov rdx, rdi
mov rcx, rsi
call fcn.140007a94
mov ebx, eax
test eax, eax
js 0x140008d5a
lea rdx, [0x1400127a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x14000893e
lea rdx, [rbp + 0x1d0]
mov rcx, rsi
call fcn.140007a94
mov ebx, eax
test eax, eax
js 0x140008d5a
mov rdx, rdi
mov rcx, rsi
call fcn.140007a94
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140008d5a
cmp word [rdi], 0x3d
jne 0x140008d25
cmp dword [rsp + 0x70], edx
je 0x1400088c2
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.140004258
mov ebx, eax
xor edx, edx
jmp 0x140008a10
cmp dword [rbp + 0x2230], edx
jne 0x14000892c
cmp dword [rsp + 0x74], edx
je 0x14000892c
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.1400025c8
test eax, eax
jne 0x140008d0b
lea rdx, [rbp + 0x1d0]
mov rsi, qword [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140008cf8
test rsi, rsi
je 0x140008927
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, rsi
call fcn.14000a0dc
xor esi, esi
jmp 0x1400086e5
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000895a
cmp ax, 0x5c
je 0x140008961
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140008946
jmp 0x14000896a
test rcx, rcx
jne 0x140008d25
cmp dword [rsp + 0x70], edx
je 0x140008a6f
mov r9d, 0x2001f
mov r8, rdi
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.1400025c8
test eax, eax
je 0x1400089dd
mov r9d, 0x20019
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.1400025c8
xor ecx, ecx
test eax, eax
je 0x1400089dd
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140004a94
test eax, eax
jne 0x140008d51
mov rdx, rdi
mov rcx, rsi
call fcn.140007a94
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140008d5a
cmp word [rdi], 0x3d
jne 0x140008a18
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.140004258
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140008d5a
cmp word [rdi], 0x7b
jne 0x140008cf1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140008a26
mov ecx, 1
cmp rax, rcx
jne 0x140008cf1
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x70]
mov r8, qword [rbp - 0x68]
mov rdx, rdi
mov rcx, rsi
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140008d5a
mov rdx, rdi
mov rcx, rsi
call fcn.140007a94
jmp 0x140008937
mov ebx, dword [rbp + 0x2230]
test ebx, ebx
jne 0x140008a94
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.1400025c8
mov esi, eax
jmp 0x140008a99
mov esi, 2
test esi, esi
mov eax, 1
cmovne ebx, eax
mov dword [rbp + 0x2230], ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140008ae7
cmp eax, 0xc
je 0x140008d42
cmp eax, 0x16
je 0x140008d37
cmp eax, 0x22
je 0x140008d37
cmp eax, 0x50
jne 0x140008d2c
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140007a94
mov ebx, eax
test eax, eax
js 0x140008d5a
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000a0dc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140008d5a
cmp word [rdi], 0x7b
jne 0x140008b7f
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140008b21
mov ecx, 1
cmp rax, rcx
jne 0x140008b7f
mov eax, dword [rbp + 0x2230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x68]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140008680
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x140008b66
cmp dword [rbp + 0x2230], edx
je 0x140008d5a
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140007a94
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140008d5a
mov eax, dword [rbp - 0x50]
mov dword [rbp + 0x2230], eax
cmp esi, 2
je 0x140008cf1
test esi, esi
je 0x140008ba2
test eax, eax
je 0x140008d4d
jmp 0x140008cf1
test eax, eax
je 0x140008c4a
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, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140008c4a
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x140008c4a
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x140008cf1
add rsi, 8
lea rax, [0x140012dc0]
cmp rsi, rax
jl 0x140008c07
cmp dword [rsp + 0x74], edx
je 0x140008cf1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140008104
jmp 0x140008cf1
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, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x140008c9d
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140008cb4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
test eax, eax
jne 0x140008d51
cmp dword [rsp + 0x74], edx
je 0x140008cf1
test esi, esi
jne 0x140008cf1
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.1400021a4
xor esi, esi
test eax, eax
jne 0x140008d51
jmp 0x1400086ef
xor esi, esi
jmp 0x1400086ef
mov ecx, eax
call fcn.1400048a4
mov ebx, eax
test rsi, rsi
je 0x140008d5a
mov rcx, rsi
jmp 0x140008d1d
mov ecx, eax
call fcn.1400048a4
mov ebx, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140008d5a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008d5a
mov ebx, 0x80020009
jmp 0x140008d5a
mov ecx, 0x80004005
call fcn.1400020a8
int3
mov ecx, 0x80070057
call fcn.1400020a8
int3
mov ecx, 0x8007000e
call fcn.1400020a8
int3
mov ecx, esi
jmp 0x140008d53
mov ecx, eax
call fcn.1400048a4
mov ebx, eax
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140008d6c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.14000bab0
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret