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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x4d8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x1800fca30]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov dword [rsp + 0x7c], r9d
mov qword [rsp + 0x80], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov ecx, dword [rsp + 0x520]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.180063ff0
mov esi, eax
test eax, eax
jns 0x180065c4a
jmp 0x180066476
cmp word [rbp], 0x7d
je 0x180066466
nop
nop
nop
mov dword [rsp + 0x78], 1
lea rdx, str.Delete
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x68], ebx
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180065c9f
test ebx, ebx
je 0x180065d7b
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
cmp dword [rsp + 0x7c], 0
je 0x180065d7b
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x180065cf2
nop
cmp ax, 0x5c
je 0x180065ce9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x180065cd0
jmp 0x180065cf2
test rcx, rcx
jne 0x18006637d
lea rbx, str.AppID
nop
nop
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180065d40
add rbx, 8
lea rax, str.__r_t_n
cmp rbx, rax
jl 0x180065d00
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.180064300
cmp dword [rsp + 0x68], 0
je 0x180065d7b
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
mov rdx, rbp
mov rcx, rbx
call fcn.1800641a0
mov esi, eax
test eax, eax
js 0x180066466
jmp 0x180066063
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180065dae
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
jmp 0x180065db2
mov ebx, dword [rsp + 0x78]
lea rdx, [0x1800d4150]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180065edd
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x70]
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
cmp word [rbp], 0x3d
jne 0x1800663d8
cmp dword [rsp + 0x7c], 0
je 0x180065e4e
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov r9, rbp
lea r8, [rsp + 0x2b0]
lea rdx, [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.180065640
mov esi, eax
test eax, eax
js 0x180066395
jmp 0x180066063
cmp dword [rsp + 0x520], 0
jne 0x180065ec1
test ebx, ebx
je 0x180065ec1
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
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 0x1800663ca
mov rbx, qword [rsp + 0x68]
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x180065eb3
cmp eax, 2
jne 0x1800663aa
test rbx, rbx
je 0x180065ec1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800641a0
mov esi, eax
test eax, eax
js 0x180066466
jmp 0x18006636d
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x180065f12
nop
nop
cmp ax, 0x5c
je 0x180065f09
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x180065ef0
jmp 0x180065f12
test rcx, rcx
jne 0x1800663f0
cmp dword [rsp + 0x7c], 0
je 0x1800660bf
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 rbx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180065f71
mov eax, esi
test rdi, rdi
je 0x180065f5f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x180066020
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180065fb7
mov eax, esi
test rdi, rdi
je 0x180065fa9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x180066020
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x94]
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18006640c
mov eax, esi
test rdi, rdi
je 0x18006600e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x18006640c
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
cmp word [rbp], 0x3d
jne 0x180066063
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180065640
mov esi, eax
test eax, eax
js 0x180066405
mov rdi, qword [rsp + 0x60]
cmp word [rbp], 0x7b
jne 0x18006636d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x18006636d
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x7c]
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.180065be0
mov esi, eax
test eax, eax
js 0x180066466
mov rdx, rbp
mov rcx, rbx
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
jmp 0x18006636d
cmp dword [rsp + 0x520], 0
jne 0x18006611c
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
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 ebx, eax
test eax, eax
jne 0x180066116
test rdi, rdi
je 0x18006610c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test ebx, ebx
je 0x18006612c
jmp 0x180066121
mov ebx, 2
mov dword [rsp + 0x520], 1
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.1800a3480
test eax, eax
je 0x18006616d
cmp eax, 0xc
je 0x18006643d
cmp eax, 0x16
je 0x180066432
cmp eax, 0x22
je 0x180066432
cmp eax, 0x50
jne 0x180066427
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800641a0
mov esi, eax
test eax, eax
js 0x180066466
cmp word [rbp], 0x7b
jne 0x1800661f9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1800661f9
mov eax, dword [rsp + 0x520]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180065be0
mov esi, eax
test eax, eax
jns 0x1800661e2
cmp dword [rsp + 0x520], 0
je 0x180066466
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180063ff0
mov esi, eax
test eax, eax
js 0x180066466
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x520], eax
cmp ebx, 2
je 0x18006636d
test ebx, ebx
je 0x180066221
test eax, eax
je 0x180066448
jmp 0x18006636d
test eax, eax
je 0x1800662d6
xor ebx, ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1800662d8
mov eax, ebx
cmp dword [rsp + 0x68], ebx
seta al
test eax, eax
je 0x1800662d8
lea rbx, str.AppID
mov rdx, qword [rbx]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18006636d
add rbx, 8
lea rax, str.__r_t_n
cmp rbx, rax
jl 0x180066285
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x18006636d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.180064300
mov rdi, qword [rsp + 0x60]
jmp 0x18006636d
xor ebx, ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180066326
cmp dword [rsp + 0x68], 0
seta bl
test rdi, rdi
je 0x180066343
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x180066453
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x18006636d
test ebx, ebx
jne 0x18006636d
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x18006645d
cmp word [rbp], 0x7d
je 0x180066466
jmp 0x180065c60
test rdi, rdi
je 0x18006638b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180066476
test rdi, rdi
je 0x1800663a3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x180066476
mov ecx, eax
call fcn.180063e70
mov esi, eax
test rbx, rbx
je 0x180066466
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180066466
mov ecx, eax
call fcn.180063e70
mov esi, eax
jmp 0x180066466
test rdi, rdi
je 0x1800663e6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180066476
test rdi, rdi
je 0x1800663fe
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180066476
mov rdi, qword [rsp + 0x60]
jmp 0x180066466
mov ecx, eax
call fcn.180063e70
mov ebx, eax
test rdi, rdi
je 0x180066423
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180066476
mov ecx, 0x80004005
call fcn.1800141c0
int3
mov ecx, 0x80070057
call fcn.1800141c0
int3
mov ecx, 0x8007000e
call fcn.1800141c0
int3
mov ecx, ebx
call fcn.180063e70
mov esi, eax
jmp 0x180066466
mov ecx, eax
call fcn.180063e70
nop
jmp 0x180066476
mov ecx, eax
call fcn.180063e70
mov esi, eax
test rdi, rdi
je 0x180066474
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1800a3210
add rsp, 0x4d8
pop rdi
pop rsi
pop rbp
pop rbx
ret