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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x4f8
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x14002ddc8]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov dword [rsp + 0x78], r9d
mov qword [rsp + 0x80], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov ecx, dword [rsp + 0x540]
mov dword [rsp + 0xa0], ecx
mov rcx, rax
call fcn.140004570
mov edi, eax
test eax, eax
jns 0x140007aca
jmp 0x1400083b9
cmp word [rbp], 0x7d
je 0x1400083a0
nop
nop
nop
mov dword [rsp + 0x7c], 1
lea rdx, str.Delete
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140007b1c
test esi, esi
je 0x140007c04
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
cmp dword [rsp + 0x78], 0
je 0x140007c04
xor edi, edi
mov qword [rsp + 0x90], rdi
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x140007b76
cmp ax, 0x5c
je 0x140007b6d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x140007b54
jmp 0x140007b76
test rcx, rcx
jne 0x14000827c
lea rdi, case.0x14001f416.5
nop
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140007bcc
add rdi, 8
lea rax, str.75D2CB4E_E4FE_4B56_948D_E21FDBE8A0C9
cmp rdi, rax
jl 0x140007b80
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.140005220
mov qword [rsp + 0x90], 0
test esi, esi
je 0x140007c04
mov rdx, rbp
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call fcn.140004570
mov edi, eax
test eax, eax
js 0x14000829e
mov rdx, rbp
mov rcx, rsi
call fcn.140004720
mov edi, eax
test eax, eax
js 0x140008299
jmp 0x140007f34
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140007c37
xor esi, esi
mov dword [rsp + 0x7c], esi
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
jmp 0x140007c3b
mov esi, dword [rsp + 0x7c]
lea rdx, [0x140022670]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140007da6
add dword [rax], eax
invalid
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x70]
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
cmp word [rbp], 0x3d
jne 0x1400082fb
cmp dword [rsp + 0x78], 0
je 0x140007cef
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x98], rax
cwde
add byte [rax], al
add byte [rbx + rcx*4 - 0x33], cl
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x98]
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call fcn.140007480
mov edi, eax
mov qword [rsp + 0x98], 0
test eax, eax
js 0x1400082a3
jmp 0x140007f34
cmp dword [rsp + 0x540], 0
jne 0x140007d8a
test esi, esi
je 0x140007d8a
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400082ed
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x88], rsi
lea rdx, [rsp + 0x2d0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140007d70
cmp eax, 2
jne 0x1400082c1
test rsi, rsi
je 0x140007d8a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x88], 0
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004720
mov edi, eax
test eax, eax
js 0x1400083a0
jmp 0x14000826c
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x140007dd4
cmp ax, 0x5c
je 0x140007dcb
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x140007db2
jmp 0x140007dd4
test rcx, rcx
jne 0x14000831c
cmp dword [rsp + 0x78], 0
je 0x140007f90
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007e38
mov eax, esi
test rbx, rbx
je 0x140007e26
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x140007ef1
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007e83
mov eax, esi
test rbx, rbx
je 0x140007e75
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x140007ef1
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008341
mov eax, esi
test rbx, rbx
je 0x140007edf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
jne 0x140008341
mov rdx, rbp
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
cmp word [rbp], 0x3d
jne 0x140007f34
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.140007480
mov edi, eax
test eax, eax
js 0x14000833a
mov rbx, qword [rsp + 0x68]
cmp word [rbp], 0x7b
jne 0x14000826c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x14000826c
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140007a60
mov edi, eax
test eax, eax
js 0x1400083a0
mov rdx, rbp
mov rcx, rsi
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
jmp 0x14000826c
cmp dword [rsp + 0x540], 0
jne 0x140007ff2
xor edi, edi
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x140007fec
mov esi, edi
test rbx, rbx
je 0x140007fe2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov qword [rsp + 0x68], rdi
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test esi, esi
je 0x140008002
jmp 0x140007ff7
mov esi, 2
mov dword [rsp + 0x540], 1
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.140011cf0
test eax, eax
je 0x140008043
cmp eax, 0xc
je 0x140008377
cmp eax, 0x16
je 0x14000836c
cmp eax, 0x22
je 0x14000836c
cmp eax, 0x50
jne 0x140008361
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004720
mov edi, eax
test eax, eax
js 0x1400083a0
cmp word [rbp], 0x7b
jne 0x1400080cf
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1400080cf
mov eax, dword [rsp + 0x540]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140007a60
mov edi, eax
test eax, eax
jns 0x1400080b8
cmp dword [rsp + 0x540], 0
je 0x1400083a0
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.140004570
mov edi, eax
test eax, eax
js 0x1400083a0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x540], eax
cmp esi, 2
je 0x14000826c
test esi, esi
je 0x1400080f7
test eax, eax
je 0x140008382
jmp 0x14000826c
test eax, eax
je 0x1400081b1
xor esi, esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400081b3
mov eax, esi
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x1400081b3
lea rsi, case.0x14001f416.5
nop
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000826c
add rsi, 8
lea rax, str.75D2CB4E_E4FE_4B56_948D_E21FDBE8A0C9
cmp rsi, rax
jl 0x140008160
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14000826c
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.140005220
mov rbx, qword [rsp + 0x68]
jmp 0x14000826c
xor esi, esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140008202
cmp dword [rsp + 0x60], 0
seta sil
test rbx, rbx
je 0x14000821f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test eax, eax
jne 0x14000838d
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14000826c
test esi, esi
jne 0x14000826c
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 0xa8], 0
test eax, eax
jne 0x140008397
cmp word [rbp], 0x7d
je 0x1400083a0
jmp 0x140007ae0
test rbx, rbx
je 0x14000828f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rdi
mov eax, 0x80020009
jmp 0x1400083b9
jmp 0x1400083a0
jmp 0x1400083a0
test rbx, rbx
je 0x1400082ba
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], 0
mov eax, edi
jmp 0x1400083b9
mov ecx, eax
call fcn.140004250
mov edi, eax
test rsi, rsi
je 0x1400083a0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x88], 0
jmp 0x1400083a0
mov ecx, eax
call fcn.140004250
mov edi, eax
jmp 0x1400083a0
test rbx, rbx
je 0x140008312
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], 0
mov eax, 0x80020009
jmp 0x1400083b9
test rbx, rbx
je 0x140008333
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], 0
mov eax, 0x80020009
jmp 0x1400083b9
mov rbx, qword [rsp + 0x68]
jmp 0x1400083a0
mov ecx, eax
call fcn.140004250
mov edi, eax
test rbx, rbx
je 0x14000835d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
mov eax, edi
jmp 0x1400083b9
mov ecx, 0x80004005
call fcn.140004110
int3
mov ecx, 0x80070057
call fcn.140004110
int3
mov ecx, 0x8007000e
call fcn.140004110
int3
mov ecx, esi
call fcn.140004250
mov edi, eax
jmp 0x1400083a0
mov ecx, eax
call fcn.140004250
nop
jmp 0x1400083b9
mov ecx, eax
call fcn.140004250
mov edi, eax
test rbx, rbx
je 0x1400083b7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], 0
mov eax, edi
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400127e0
add rsp, 0x4f8
pop rdi
pop rsi
pop rbp
pop rbx
ret