Function at 0x18000b550
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 [0x180295a70]
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.180009f90
mov esi, eax
test eax, eax
jns 0x18000b5ba
jmp 0x18000bd9b
cmp word [rbp], 0x7d
je 0x18000bd8b
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 0x18000b606
test edi, edi
je 0x18000b6e2
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
cmp dword [rsp + 0x78], 0
je 0x18000b6e7
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x18000b659
cmp ax, 0x5c
je 0x18000b650
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x18000b637
jmp 0x18000b659
test rcx, rcx
jne 0x18000bca0
lea rdi, str.AppID
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000b6a0
add rdi, 8
lea rax, [0x180189d60]
cmp rdi, rax
jl 0x18000b660
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.18000a234
cmp dword [rsp + 0x60], 0
je 0x18000b6db
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
mov rdx, rbp
mov rcx, rdi
call fcn.18000a104
mov esi, eax
test eax, eax
js 0x18000bd8b
jmp 0x18000b980
mov rdi, qword [rsp + 0x70]
jmp 0x18000b6e7
mov rdi, qword [rsp + 0x70]
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000b714
and dword [rsp + 0x7c], eax
mov rdx, rbp
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
lea rdx, [0x180189ca0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000b83e
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
mov rdx, rbp
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
cmp word [rbp], 0x3d
jne 0x18000bcfb
xor esi, esi
cmp dword [rsp + 0x78], esi
je 0x18000b7a8
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.18000b070
mov esi, eax
test eax, eax
js 0x18000bcb8
jmp 0x18000b980
cmp dword [rsp + 0x520], esi
jne 0x18000b824
cmp dword [rsp + 0x7c], esi
je 0x18000b824
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 0x18000bced
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x18000b80a
cmp eax, 2
jne 0x18000bccd
cmp rdi, rsi
je 0x18000b81f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
jmp 0x18000b824
mov rdi, qword [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.18000a104
mov esi, eax
test eax, eax
js 0x18000bd8b
jmp 0x18000bc8b
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x18000b86c
cmp ax, 0x5c
je 0x18000b863
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x18000b84a
jmp 0x18000b86c
test rcx, rcx
jne 0x18000bd13
cmp dword [rsp + 0x78], 0
je 0x18000b9dd
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 0x18000b8c4
test rbx, rbx
je 0x18000b8b6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x18000b942
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 0x18000b909
test rbx, rbx
je 0x18000b8fb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x18000b942
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.180009c04
test eax, eax
jne 0x18000bd2f
mov rbx, qword [rsp + 0x68]
mov rdx, rbp
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
cmp word [rbp], 0x3d
jne 0x18000b980
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.18000b070
mov esi, eax
test eax, eax
js 0x18000bd28
mov rbx, qword [rsp + 0x68]
cmp word [rbp], 0x7b
jne 0x18000bc8b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x18000bc8b
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.18000b550
mov esi, eax
test eax, eax
js 0x18000bd8b
mov rdx, rbp
mov rcx, rdi
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
jmp 0x18000bc8b
mov esi, dword [rsp + 0x520]
test esi, esi
jne 0x18000ba34
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 0x18000ba39
test rbx, rbx
je 0x18000ba28
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
jmp 0x18000ba39
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.1801612d0
test eax, eax
je 0x18000ba8b
cmp eax, 0xc
je 0x18000bd62
cmp eax, 0x16
je 0x18000bd57
cmp eax, 0x22
je 0x18000bd57
cmp eax, 0x50
jne 0x18000bd4c
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.18000a104
mov esi, eax
test eax, eax
js 0x18000bd8b
cmp word [rbp], 0x7b
jne 0x18000bb1b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x18000bb1b
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.18000b550
mov esi, eax
test eax, eax
jns 0x18000bb04
cmp dword [rsp + 0x520], 0
je 0x18000bd8b
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180009f90
mov esi, eax
test eax, eax
js 0x18000bd8b
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x520], eax
cmp edi, 2
je 0x18000bc8b
test edi, edi
je 0x18000bb43
test eax, eax
je 0x18000bd6d
jmp 0x18000bc8b
xor edi, edi
cmp eax, edi
je 0x18000bbf7
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 0x18000bbf7
mov eax, edi
cmp dword [rsp + 0x60], edi
seta al
cmp eax, edi
je 0x18000bbf7
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000bc8b
add rdi, 8
lea rax, [0x180189d60]
cmp rdi, rax
jl 0x18000bba7
cmp dword [rsp + 0x7c], 0
je 0x18000bc8b
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.18000a234
mov rbx, qword [rsp + 0x68]
jmp 0x18000bc8b
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 0x18000bc45
cmp dword [rsp + 0x60], edi
seta dil
test rbx, rbx
je 0x18000bc62
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test eax, eax
jne 0x18000bd78
cmp dword [rsp + 0x7c], 0
je 0x18000bc8b
test edi, edi
jne 0x18000bc8b
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x18000bd82
cmp word [rbp], 0x7d
je 0x18000bd8b
mov eax, 1
jmp 0x18000b5ca
test rbx, rbx
je 0x18000bcae
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000bd9b
test rbx, rbx
je 0x18000bcc6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x18000bd9b
mov ecx, eax
call fcn.180009b60
mov esi, eax
test rdi, rdi
je 0x18000bd8b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000bd8b
mov ecx, eax
call fcn.180009b60
mov esi, eax
jmp 0x18000bd8b
test rbx, rbx
je 0x18000bd09
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000bd9b
test rbx, rbx
je 0x18000bd21
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000bd9b
mov rbx, qword [rsp + 0x68]
jmp 0x18000bd8b
mov ecx, eax
call fcn.180009b60
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000bd48
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18000bd9b
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.180009b60
mov esi, eax
jmp 0x18000bd8b
mov ecx, eax
call fcn.180009b60
nop
jmp 0x18000bd9b
mov ecx, eax
call fcn.180009b60
mov esi, eax
test rbx, rbx
je 0x18000bd99
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1801604e0
add rsp, 0x4d8
pop rdi
pop rsi
pop rbp
pop rbx
ret