Function at 0x1800046d4
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 [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x4c0], 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 + 0x520]
mov dword [rsp + 0x88], ecx
mov rcx, rax
call fcn.180002bbc
mov esi, eax
test eax, eax
jns 0x18000473e
jmp 0x180004f1f
cmp word [rbp], 0x7d
je 0x180004f0f
mov eax, 1
mov dword [rsp + 0x7c], eax
lea rdx, str.Delete
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
mov dword [rsp + 0x60], edi
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000478a
test edi, edi
je 0x180004866
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
cmp dword [rsp + 0x78], 0
je 0x18000486b
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x1800047dd
cmp ax, 0x5c
je 0x1800047d4
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x1800047bb
jmp 0x1800047dd
test rcx, rcx
jne 0x180004e24
lea rdi, str.AppID
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180004824
add rdi, 8
lea rax, [0x1800d6e80]
cmp rdi, rax
jl 0x1800047e4
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.180003154
cmp dword [rsp + 0x60], 0
je 0x18000485f
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
mov rdx, rbp
mov rcx, rdi
call fcn.180002dd8
mov esi, eax
test eax, eax
js 0x180004f0f
jmp 0x180004b04
mov rdi, qword [rsp + 0x70]
jmp 0x18000486b
mov rdi, qword [rsp + 0x70]
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180004898
and dword [rsp + 0x7c], eax
mov rdx, rbp
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
lea rdx, [0x1800d6d80]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800049c2
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
mov rdx, rbp
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
cmp word [rbp], 0x3d
jne 0x180004e7f
xor esi, esi
cmp dword [rsp + 0x78], esi
je 0x18000492c
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov r9, rbp
lea r8, [rsp + 0x2b0]
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.1800041f4
mov esi, eax
test eax, eax
js 0x180004e3c
jmp 0x180004b04
cmp dword [rsp + 0x520], esi
jne 0x1800049a8
cmp dword [rsp + 0x7c], esi
je 0x1800049a8
mov qword [rsp + 0x60], rsi
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]
cmp eax, esi
jne 0x180004e71
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x18000498e
cmp eax, 2
jne 0x180004e51
cmp rdi, rsi
je 0x1800049a3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
jmp 0x1800049a8
mov rdi, qword [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.180002dd8
mov esi, eax
test eax, eax
js 0x180004f0f
jmp 0x180004e0f
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x1800049f0
cmp ax, 0x5c
je 0x1800049e7
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x1800049ce
jmp 0x1800049f0
test rcx, rcx
jne 0x180004e97
cmp dword [rsp + 0x78], 0
je 0x180004b61
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rsi, qword [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004a48
test rbx, rbx
je 0x180004a3a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x180004ac6
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004a8d
test rbx, rbx
je 0x180004a7f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x180004ac6
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1800025a8
test eax, eax
jne 0x180004eb3
mov rbx, qword [rsp + 0x68]
mov rdx, rbp
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
cmp word [rbp], 0x3d
jne 0x180004b04
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.1800041f4
mov esi, eax
test eax, eax
js 0x180004eac
mov rbx, qword [rsp + 0x68]
cmp word [rbp], 0x7b
jne 0x180004e0f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x180004e0f
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.1800046d4
mov esi, eax
test eax, eax
js 0x180004f0f
mov rdx, rbp
mov rcx, rdi
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
jmp 0x180004e0f
mov esi, dword [rsp + 0x520]
test esi, esi
jne 0x180004bb8
and qword [rsp + 0x60], 0
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 edi, eax
test eax, eax
jne 0x180004bbd
test rbx, rbx
je 0x180004bac
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
jmp 0x180004bbd
mov edi, 2
test edi, edi
mov eax, 1
cmovne esi, eax
mov dword [rsp + 0x520], esi
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.180088050
test eax, eax
je 0x180004c0f
cmp eax, 0xc
je 0x180004ee6
cmp eax, 0x16
je 0x180004edb
cmp eax, 0x22
je 0x180004edb
cmp eax, 0x50
jne 0x180004ed0
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180002dd8
mov esi, eax
test eax, eax
js 0x180004f0f
cmp word [rbp], 0x7b
jne 0x180004c9f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x180004c9f
mov eax, dword [rsp + 0x520]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800046d4
mov esi, eax
test eax, eax
jns 0x180004c88
cmp dword [rsp + 0x520], 0
je 0x180004f0f
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180002bbc
mov esi, eax
test eax, eax
js 0x180004f0f
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x520], eax
cmp edi, 2
je 0x180004e0f
test edi, edi
je 0x180004cc7
test eax, eax
je 0x180004ef1
jmp 0x180004e0f
xor edi, edi
cmp eax, edi
je 0x180004d7b
mov dword [rsp + 0x60], 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, [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]
cmp eax, edi
jne 0x180004d7b
mov eax, edi
cmp dword [rsp + 0x60], edi
seta al
cmp eax, edi
je 0x180004d7b
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180004e0f
add rdi, 8
lea rax, [0x1800d6e80]
cmp rdi, rax
jl 0x180004d2b
cmp dword [rsp + 0x7c], 0
je 0x180004e0f
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.180003154
mov rbx, qword [rsp + 0x68]
jmp 0x180004e0f
mov dword [rsp + 0x60], 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, [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]
cmp eax, edi
jne 0x180004dc9
cmp dword [rsp + 0x60], edi
seta dil
test rbx, rbx
je 0x180004de6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test eax, eax
jne 0x180004efc
cmp dword [rsp + 0x7c], 0
je 0x180004e0f
test edi, edi
jne 0x180004e0f
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180004f06
cmp word [rbp], 0x7d
je 0x180004f0f
mov eax, 1
jmp 0x18000474e
test rbx, rbx
je 0x180004e32
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180004f1f
test rbx, rbx
je 0x180004e4a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x180004f1f
mov ecx, eax
call fcn.18000243c
mov esi, eax
test rdi, rdi
je 0x180004f0f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180004f0f
mov ecx, eax
call fcn.18000243c
mov esi, eax
jmp 0x180004f0f
test rbx, rbx
je 0x180004e8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180004f1f
test rbx, rbx
je 0x180004ea5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180004f1f
mov rbx, qword [rsp + 0x68]
jmp 0x180004f0f
mov ecx, eax
call fcn.18000243c
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180004ecc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180004f1f
mov ecx, 0x80004005
call fcn.1800012c4
int3
mov ecx, 0x80070057
call fcn.1800012c4
int3
mov ecx, 0x8007000e
call fcn.1800012c4
int3
mov ecx, edi
call fcn.18000243c
mov esi, eax
jmp 0x180004f0f
mov ecx, eax
call fcn.18000243c
nop
jmp 0x180004f1f
mov ecx, eax
call fcn.18000243c
mov esi, eax
test rbx, rbx
je 0x180004f1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180086e60
add rsp, 0x4d8
pop rdi
pop rsi
pop rbp
pop rbx
ret