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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.14000e3d0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14003d088]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x68], r9d
mov qword [rsp + 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x70], ecx
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
cmp word [rsi], 0x7d
je 0x140009099
mov ecx, 1
mov dword [rsp + 0x6c], ecx
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 0x140008903
test edi, edi
je 0x1400089ea
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
cmp dword [rsp + 0x68], 0
je 0x1400089ea
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140008963
cmp ax, 0x5c
je 0x14000895a
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140008941
jmp 0x140008963
test rcx, rcx
jne 0x140009064
lea rbx, [0x140036a70]
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400089bc
add rbx, 8
lea rax, str.RegOpenKeh
cmp rbx, rax
jl 0x140008970
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.140008350
mov qword [rbp - 0x60], 0
test edi, edi
je 0x1400089ea
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
mov rdx, rsi
mov rcx, rdi
call fcn.1400081c0
jmp 0x140008cb4
lea rdx, str.NoRemov
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140008a1d
xor edi, edi
mov dword [rsp + 0x6c], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
jmp 0x140008a21
mov edi, dword [rsp + 0x6c]
lea rdx, [0x140036940]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140008b39
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x60]
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
cmp word [rsi], 0x3d
jne 0x140009064
cmp dword [rsp + 0x68], 0
je 0x140008abe
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x48], rax
xor eax, eax
mov dword [rbp - 0x40], eax
mov qword [rbp - 0x38], rax
mov r9, rsi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x48]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140007c70
mov ebx, eax
mov qword [rbp - 0x48], 0
jmp 0x140008cb6
cmp dword [rbp + 0x2240], 0
jne 0x140008b27
test edi, edi
je 0x140008b27
mov qword [rbp - 0x80], 0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009090
lea rdx, [rbp + 0x1e0]
mov rdi, qword [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000904b
test rdi, rdi
je 0x140008b27
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400081c0
jmp 0x1400088b2
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140008b66
cmp ax, 0x5c
je 0x140008b5d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140008b44
jmp 0x140008b66
test rcx, rcx
jne 0x140009064
cmp dword [rsp + 0x68], 0
je 0x140008d15
mov qword [rbp - 0x80], 0
mov rax, qword [rbp - 0x68]
mov rbx, qword [rsp + 0x70]
test rax, rax
je 0x140008ba8
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140008280
jmp 0x140008bc6
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008bf2
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140008bd9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x80]
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], 0
test eax, eax
je 0x140008c82
jmp 0x140008bf6
mov rdi, qword [rbp - 0x78]
mov qword [rbp - 0x80], 0
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140008c28
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140008280
jmp 0x140008c46
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008c6b
test rdi, rdi
je 0x140008c58
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x80]
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], 0
test eax, eax
je 0x140008c82
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.1400079d0
test eax, eax
jne 0x140009090
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
cmp word [rsi], 0x3d
jne 0x140008cbe
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140007c70
mov ebx, eax
test eax, eax
js 0x140009099
cmp word [rsi], 0x7b
jne 0x1400088bc
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140008cd0
cmp rax, 1
jne 0x1400088bc
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
mov rdx, rsi
mov rcx, rdi
call fcn.140008850
mov ebx, eax
test eax, eax
js 0x140009099
mov rdx, rsi
mov rcx, rdi
jmp 0x1400088ad
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140008d9e
mov qword [rbp - 0x80], 0
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140008d53
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140008280
jmp 0x140008d73
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140008da3
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x140008d8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0
jmp 0x140008da3
mov edi, 2
mov eax, ebx
test edi, edi
mov ecx, 1
cmovne eax, ecx
mov dword [rbp - 0x80], eax
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.140011ee0
test eax, eax
je 0x140008def
cmp eax, 0xc
je 0x140009081
cmp eax, 0x16
je 0x140009076
cmp eax, 0x22
je 0x140009076
cmp eax, 0x50
jne 0x14000906b
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400081c0
mov ebx, eax
test eax, eax
js 0x140009099
cmp word [rsi], 0x7b
jne 0x140008e82
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140008e30
cmp rax, 1
jne 0x140008e82
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x78]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140008850
mov ebx, eax
test eax, eax
jns 0x140008e6b
cmp dword [rbp - 0x80], 0
je 0x140009099
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140008680
mov ebx, eax
test eax, eax
js 0x140009099
cmp edi, 2
je 0x1400088bc
test edi, edi
je 0x140008ea1
cmp dword [rbp + 0x2240], 0
je 0x14000908c
jmp 0x1400088bc
xor edi, edi
cmp dword [rbp + 0x2240], edi
je 0x140008f53
mov dword [rbp - 0x80], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140008f53
mov eax, edi
cmp dword [rbp - 0x80], edi
seta al
test eax, eax
je 0x140008f53
lea rdi, [0x140036a70]
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400088bc
add rdi, 8
lea rax, str.RegOpenKeh
cmp rdi, rax
jl 0x140008f10
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x1400088bc
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.140008350
jmp 0x1400088bc
mov dword [rbp - 0x80], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140008f9f
cmp dword [rbp - 0x80], eax
seta dil
xor eax, eax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140008fb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x70], 0
test eax, eax
jne 0x140009090
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x1400088bc
test edi, edi
jne 0x1400088bc
cmp byte [0x14003fe28], dil
jne 0x14000901d
lea rcx, [0x140036b00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000900d
lea rdx, [0x140036b20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe20], rax
jmp 0x140009014
mov rax, qword [0x14003fe20]
mov byte [0x14003fe28], 1
jmp 0x140009024
mov rax, qword [0x14003fe20]
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x70]
test rax, rax
je 0x14000903c
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140009042
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140009090
jmp 0x1400088bc
mov ecx, eax
call fcn.140008670
mov ebx, eax
test rdi, rdi
je 0x140009099
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009099
mov ebx, 0x80020009
jmp 0x140009099
mov ecx, 0x80004005
call fcn.1400081a0
int3
mov ecx, 0x80070057
call fcn.1400081a0
int3
mov ecx, 0x8007000e
call fcn.1400081a0
int3
mov ecx, edi
jmp 0x140009092
mov ecx, eax
call fcn.140008670
mov ebx, eax
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1400090ab
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.14000d750
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret