Function at 0x18000b668
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 [0x180057b40]
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.1800097d4
mov esi, eax
test eax, eax
jns 0x18000b6d2
jmp 0x18000beb3
cmp word [rbp], 0x7d
je 0x18000bea3
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 0x18000b71e
test edi, edi
je 0x18000b7fa
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
cmp dword [rsp + 0x78], 0
je 0x18000b7ff
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x18000b771
cmp ax, 0x5c
je 0x18000b768
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x18000b74f
jmp 0x18000b771
test rcx, rcx
jne 0x18000bdb8
lea rdi, str.AppID
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000b7b8
add rdi, 8
lea rax, [0x180040b90]
cmp rdi, rax
jl 0x18000b778
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.180007f18
cmp dword [rsp + 0x60], 0
je 0x18000b7f3
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
mov rdx, rbp
mov rcx, rdi
call fcn.180009948
mov esi, eax
test eax, eax
js 0x18000bea3
jmp 0x18000ba98
mov rdi, qword [rsp + 0x70]
jmp 0x18000b7ff
mov rdi, qword [rsp + 0x70]
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000b82c
and dword [rsp + 0x7c], eax
mov rdx, rbp
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
lea rdx, [0x180040ac0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000b956
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
mov rdx, rbp
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
cmp word [rbp], 0x3d
jne 0x18000be13
xor esi, esi
cmp dword [rsp + 0x78], esi
je 0x18000b8c0
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.18000b188
mov esi, eax
test eax, eax
js 0x18000bdd0
jmp 0x18000ba98
cmp dword [rsp + 0x520], esi
jne 0x18000b93c
cmp dword [rsp + 0x7c], esi
je 0x18000b93c
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 0x18000be05
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x18000b922
cmp eax, 2
jne 0x18000bde5
cmp rdi, rsi
je 0x18000b937
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
jmp 0x18000b93c
mov rdi, qword [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.180009948
mov esi, eax
test eax, eax
js 0x18000bea3
jmp 0x18000bda3
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x18000b984
cmp ax, 0x5c
je 0x18000b97b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x18000b962
jmp 0x18000b984
test rcx, rcx
jne 0x18000be2b
cmp dword [rsp + 0x78], 0
je 0x18000baf5
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 0x18000b9dc
test rbx, rbx
je 0x18000b9ce
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x18000ba5a
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 0x18000ba21
test rbx, rbx
je 0x18000ba13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x18000ba5a
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.180007388
test eax, eax
jne 0x18000be47
mov rbx, qword [rsp + 0x68]
mov rdx, rbp
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
cmp word [rbp], 0x3d
jne 0x18000ba98
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.18000b188
mov esi, eax
test eax, eax
js 0x18000be40
mov rbx, qword [rsp + 0x68]
cmp word [rbp], 0x7b
jne 0x18000bda3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x18000bda3
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.18000b668
mov esi, eax
test eax, eax
js 0x18000bea3
mov rdx, rbp
mov rcx, rdi
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
jmp 0x18000bda3
mov esi, dword [rsp + 0x520]
test esi, esi
jne 0x18000bb4c
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 0x18000bb51
test rbx, rbx
je 0x18000bb40
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
jmp 0x18000bb51
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.1800275a0
test eax, eax
je 0x18000bba3
cmp eax, 0xc
je 0x18000be7a
cmp eax, 0x16
je 0x18000be6f
cmp eax, 0x22
je 0x18000be6f
cmp eax, 0x50
jne 0x18000be64
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180009948
mov esi, eax
test eax, eax
js 0x18000bea3
cmp word [rbp], 0x7b
jne 0x18000bc33
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x18000bc33
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.18000b668
mov esi, eax
test eax, eax
jns 0x18000bc1c
cmp dword [rsp + 0x520], 0
je 0x18000bea3
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.1800097d4
mov esi, eax
test eax, eax
js 0x18000bea3
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x520], eax
cmp edi, 2
je 0x18000bda3
test edi, edi
je 0x18000bc5b
test eax, eax
je 0x18000be85
jmp 0x18000bda3
xor edi, edi
cmp eax, edi
je 0x18000bd0f
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 0x18000bd0f
mov eax, edi
cmp dword [rsp + 0x60], edi
seta al
cmp eax, edi
je 0x18000bd0f
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000bda3
add rdi, 8
lea rax, [0x180040b90]
cmp rdi, rax
jl 0x18000bcbf
cmp dword [rsp + 0x7c], 0
je 0x18000bda3
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.180007f18
mov rbx, qword [rsp + 0x68]
jmp 0x18000bda3
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 0x18000bd5d
cmp dword [rsp + 0x60], edi
seta dil
test rbx, rbx
je 0x18000bd7a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test eax, eax
jne 0x18000be90
cmp dword [rsp + 0x7c], 0
je 0x18000bda3
test edi, edi
jne 0x18000bda3
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x18000be9a
cmp word [rbp], 0x7d
je 0x18000bea3
mov eax, 1
jmp 0x18000b6e2
test rbx, rbx
je 0x18000bdc6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000beb3
test rbx, rbx
je 0x18000bdde
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x18000beb3
mov ecx, eax
call fcn.180007374
mov esi, eax
test rdi, rdi
je 0x18000bea3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000bea3
mov ecx, eax
call fcn.180007374
mov esi, eax
jmp 0x18000bea3
test rbx, rbx
je 0x18000be21
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000beb3
test rbx, rbx
je 0x18000be39
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000beb3
mov rbx, qword [rsp + 0x68]
jmp 0x18000bea3
mov ecx, eax
call fcn.180007374
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000be60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18000beb3
mov ecx, 0x80004005
call fcn.180001000
int3
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, 0x8007000e
call fcn.180001000
int3
mov ecx, edi
call fcn.180007374
mov esi, eax
jmp 0x18000bea3
mov ecx, eax
call fcn.180007374
nop
jmp 0x18000beb3
mov ecx, eax
call fcn.180007374
mov esi, eax
test rbx, rbx
je 0x18000beb1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180026cf0
add rsp, 0x4d8
pop rdi
pop rsi
pop rbp
pop rbx
ret