Function at 0x180063560
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 [0x1800f0938]
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.180061320
mov esi, eax
test eax, eax
jns 0x1800635ca
jmp 0x180063df6
cmp word [rbp], 0x7d
je 0x180063de6
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 0x18006361f
test ebx, ebx
je 0x1800636fb
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
cmp dword [rsp + 0x7c], 0
je 0x1800636fb
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x180063672
nop
cmp ax, 0x5c
je 0x180063669
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x180063650
jmp 0x180063672
test rcx, rcx
jne 0x180063cfd
lea rbx, str.AppID
nop
nop
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800636c0
add rbx, 8
lea rax, str.__r_t_n
cmp rbx, rax
jl 0x180063680
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.1800615f0
cmp dword [rsp + 0x68], 0
je 0x1800636fb
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
mov rdx, rbp
mov rcx, rbx
call fcn.1800614d0
mov esi, eax
test eax, eax
js 0x180063de6
jmp 0x1800639e3
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18006372e
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
jmp 0x180063732
mov ebx, dword [rsp + 0x78]
lea rdx, [0x1800c9860]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18006385d
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x70]
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
cmp word [rbp], 0x3d
jne 0x180063d58
cmp dword [rsp + 0x7c], 0
je 0x1800637ce
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.180062fc0
mov esi, eax
test eax, eax
js 0x180063d15
jmp 0x1800639e3
cmp dword [rsp + 0x520], 0
jne 0x180063841
test ebx, ebx
je 0x180063841
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 0x180063d4a
mov rbx, qword [rsp + 0x68]
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x180063833
cmp eax, 2
jne 0x180063d2a
test rbx, rbx
je 0x180063841
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800614d0
mov esi, eax
test eax, eax
js 0x180063de6
jmp 0x180063ced
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x180063892
nop
nop
cmp ax, 0x5c
je 0x180063889
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x180063870
jmp 0x180063892
test rcx, rcx
jne 0x180063d70
cmp dword [rsp + 0x7c], 0
je 0x180063a3f
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 0x1800638f1
mov eax, esi
test rdi, rdi
je 0x1800638df
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x1800639a0
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 0x180063937
mov eax, esi
test rdi, rdi
je 0x180063929
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
je 0x1800639a0
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 0x180063d8c
mov eax, esi
test rdi, rdi
je 0x18006398e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x180063d8c
mov rdx, rbp
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
cmp word [rbp], 0x3d
jne 0x1800639e3
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180062fc0
mov esi, eax
test eax, eax
js 0x180063d85
mov rdi, qword [rsp + 0x60]
cmp word [rbp], 0x7b
jne 0x180063ced
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x180063ced
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x7c]
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.180063560
mov esi, eax
test eax, eax
js 0x180063de6
mov rdx, rbp
mov rcx, rbx
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
jmp 0x180063ced
cmp dword [rsp + 0x520], 0
jne 0x180063a9c
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 0x180063a96
test rdi, rdi
je 0x180063a8c
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 0x180063aac
jmp 0x180063aa1
mov ebx, 2
mov dword [rsp + 0x520], 1
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.180098d70
test eax, eax
je 0x180063aed
cmp eax, 0xc
je 0x180063dbd
cmp eax, 0x16
je 0x180063db2
cmp eax, 0x22
je 0x180063db2
cmp eax, 0x50
jne 0x180063da7
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800614d0
mov esi, eax
test eax, eax
js 0x180063de6
cmp word [rbp], 0x7b
jne 0x180063b79
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x180063b79
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.180063560
mov esi, eax
test eax, eax
jns 0x180063b62
cmp dword [rsp + 0x520], 0
je 0x180063de6
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180061320
mov esi, eax
test eax, eax
js 0x180063de6
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x520], eax
cmp ebx, 2
je 0x180063ced
test ebx, ebx
je 0x180063ba1
test eax, eax
je 0x180063dc8
jmp 0x180063ced
test eax, eax
je 0x180063c56
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 0x180063c58
mov eax, ebx
cmp dword [rsp + 0x68], ebx
seta al
test eax, eax
je 0x180063c58
lea rbx, str.AppID
mov rdx, qword [rbx]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180063ced
add rbx, 8
lea rax, str.__r_t_n
cmp rbx, rax
jl 0x180063c05
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x180063ced
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.1800615f0
mov rdi, qword [rsp + 0x60]
jmp 0x180063ced
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 0x180063ca6
cmp dword [rsp + 0x68], 0
seta bl
test rdi, rdi
je 0x180063cc3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x60], rdi
test eax, eax
jne 0x180063dd3
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x180063ced
test ebx, ebx
jne 0x180063ced
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180063ddd
cmp word [rbp], 0x7d
je 0x180063de6
jmp 0x1800635e0
test rdi, rdi
je 0x180063d0b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180063df6
test rdi, rdi
je 0x180063d23
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x180063df6
mov ecx, eax
call fcn.1800611a0
mov esi, eax
test rbx, rbx
je 0x180063de6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180063de6
mov ecx, eax
call fcn.1800611a0
mov esi, eax
jmp 0x180063de6
test rdi, rdi
je 0x180063d66
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180063df6
test rdi, rdi
je 0x180063d7e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180063df6
mov rdi, qword [rsp + 0x60]
jmp 0x180063de6
mov ecx, eax
call fcn.1800611a0
mov ebx, eax
test rdi, rdi
je 0x180063da3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180063df6
mov ecx, 0x80004005
call fcn.18000fe60
int3
mov ecx, 0x80070057
call fcn.18000fe60
int3
mov ecx, 0x8007000e
call fcn.18000fe60
int3
mov ecx, ebx
call fcn.1800611a0
mov esi, eax
jmp 0x180063de6
mov ecx, eax
call fcn.1800611a0
nop
jmp 0x180063df6
mov ecx, eax
call fcn.1800611a0
mov esi, eax
test rdi, rdi
je 0x180063df4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180099050
add rsp, 0x4d8
pop rdi
pop rsi
pop rbp
pop rbx
ret