Function at 0x18000b928
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 [0x18005a960]
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.180009a94
mov esi, eax
test eax, eax
jns 0x18000b992
jmp 0x18000c173
cmp word [rbp], 0x7d
je 0x18000c163
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 0x18000b9de
test edi, edi
je 0x18000baba
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
cmp dword [rsp + 0x78], 0
je 0x18000babf
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x18000ba31
cmp ax, 0x5c
je 0x18000ba28
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x18000ba0f
jmp 0x18000ba31
test rcx, rcx
jne 0x18000c078
lea rdi, str.AppID
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000ba78
add rdi, 8
lea rax, [0x180040b90]
cmp rdi, rax
jl 0x18000ba38
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.1800082b8
cmp dword [rsp + 0x60], 0
je 0x18000bab3
mov rdx, rbp
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
mov rdx, rbp
mov rcx, rdi
call fcn.180009c08
mov esi, eax
test eax, eax
js 0x18000c163
jmp 0x18000bd58
mov rdi, qword [rsp + 0x70]
jmp 0x18000babf
mov rdi, qword [rsp + 0x70]
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000baec
and dword [rsp + 0x7c], eax
mov rdx, rbp
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
lea rdx, [0x180040ac0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000bc16
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
mov rdx, rbp
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
cmp word [rbp], 0x3d
jne 0x18000c0d3
xor esi, esi
cmp dword [rsp + 0x78], esi
je 0x18000bb80
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.18000b448
mov esi, eax
test eax, eax
js 0x18000c090
jmp 0x18000bd58
cmp dword [rsp + 0x520], esi
jne 0x18000bbfc
cmp dword [rsp + 0x7c], esi
je 0x18000bbfc
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 0x18000c0c5
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x18000bbe2
cmp eax, 2
jne 0x18000c0a5
cmp rdi, rsi
je 0x18000bbf7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
jmp 0x18000bbfc
mov rdi, qword [rsp + 0x70]
mov rdx, rbp
mov rcx, rdi
call fcn.180009c08
mov esi, eax
test eax, eax
js 0x18000c163
jmp 0x18000c063
mov rcx, rbp
movzx eax, word [rbp]
test ax, ax
je 0x18000bc44
cmp ax, 0x5c
je 0x18000bc3b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x18000bc22
jmp 0x18000bc44
test rcx, rcx
jne 0x18000c0eb
cmp dword [rsp + 0x78], 0
je 0x18000bdb5
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 0x18000bc9c
test rbx, rbx
je 0x18000bc8e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x18000bd1a
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 0x18000bce1
test rbx, rbx
je 0x18000bcd3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
test eax, eax
je 0x18000bd1a
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.180007738
test eax, eax
jne 0x18000c107
mov rbx, qword [rsp + 0x68]
mov rdx, rbp
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
cmp word [rbp], 0x3d
jne 0x18000bd58
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.18000b448
mov esi, eax
test eax, eax
js 0x18000c100
mov rbx, qword [rsp + 0x68]
cmp word [rbp], 0x7b
jne 0x18000c063
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x18000c063
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.18000b928
mov esi, eax
test eax, eax
js 0x18000c163
mov rdx, rbp
mov rcx, rdi
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
jmp 0x18000c063
mov esi, dword [rsp + 0x520]
test esi, esi
jne 0x18000be0c
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 0x18000be11
test rbx, rbx
je 0x18000be00
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
jmp 0x18000be11
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.180027210
test eax, eax
je 0x18000be63
cmp eax, 0xc
je 0x18000c13a
cmp eax, 0x16
je 0x18000c12f
cmp eax, 0x22
je 0x18000c12f
cmp eax, 0x50
jne 0x18000c124
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180009c08
mov esi, eax
test eax, eax
js 0x18000c163
cmp word [rbp], 0x7b
jne 0x18000bef3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x18000bef3
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.18000b928
mov esi, eax
test eax, eax
jns 0x18000bedc
cmp dword [rsp + 0x520], 0
je 0x18000c163
mov rdx, rbp
mov rcx, qword [rsp + 0x70]
call fcn.180009a94
mov esi, eax
test eax, eax
js 0x18000c163
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x520], eax
cmp edi, 2
je 0x18000c063
test edi, edi
je 0x18000bf1b
test eax, eax
je 0x18000c145
jmp 0x18000c063
xor edi, edi
cmp eax, edi
je 0x18000bfcf
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 0x18000bfcf
mov eax, edi
cmp dword [rsp + 0x60], edi
seta al
cmp eax, edi
je 0x18000bfcf
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000c063
add rdi, 8
lea rax, [0x180040b90]
cmp rdi, rax
jl 0x18000bf7f
cmp dword [rsp + 0x7c], 0
je 0x18000c063
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.1800082b8
mov rbx, qword [rsp + 0x68]
jmp 0x18000c063
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 0x18000c01d
cmp dword [rsp + 0x60], edi
seta dil
test rbx, rbx
je 0x18000c03a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test eax, eax
jne 0x18000c150
cmp dword [rsp + 0x7c], 0
je 0x18000c063
test edi, edi
jne 0x18000c063
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x18000c15a
cmp word [rbp], 0x7d
je 0x18000c163
mov eax, 1
jmp 0x18000b9a2
test rbx, rbx
je 0x18000c086
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000c173
test rbx, rbx
je 0x18000c09e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x18000c173
mov ecx, eax
call fcn.180007724
mov esi, eax
test rdi, rdi
je 0x18000c163
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000c163
mov ecx, eax
call fcn.180007724
mov esi, eax
jmp 0x18000c163
test rbx, rbx
je 0x18000c0e1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000c173
test rbx, rbx
je 0x18000c0f9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000c173
mov rbx, qword [rsp + 0x68]
jmp 0x18000c163
mov ecx, eax
call fcn.180007724
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000c120
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18000c173
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.180007724
mov esi, eax
jmp 0x18000c163
mov ecx, eax
call fcn.180007724
nop
jmp 0x18000c173
mov ecx, eax
call fcn.180007724
mov esi, eax
test rbx, rbx
je 0x18000c171
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180026960
add rsp, 0x4d8
pop rdi
pop rsi
pop rbp
pop rbx
ret