Function at 0x180008e20
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.180078390
sub rsp, rax
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x60], r9d
mov r15, r8
mov qword [rbp - 0x10], r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov r14d, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rax
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
cmp word [rdi], 0x7d
je 0x18000921c
mov eax, 1
mov r13d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180008ed8
test esi, esi
je 0x180008fc0
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
cmp dword [rsp + 0x60], edx
je 0x180008fbe
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x70], edx
mov qword [rbp - 0x68], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x180008f20
cmp ax, 0x5c
je 0x180008f27
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x180008f0c
jmp 0x180008f30
test rcx, rcx
jne 0x18000959a
lea rbx, [0x18008a870]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180008f7d
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x180008f37
mov qword [rbp - 0x78], r15
xor ebx, ebx
mov dword [rbp - 0x70], ebx
mov qword [rbp - 0x68], rbx
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180008a0c
mov qword [rbp - 0x78], rbx
mov dword [rbp - 0x70], ebx
mov qword [rbp - 0x68], rbx
jmp 0x180008f7f
xor ebx, ebx
test esi, esi
je 0x180008fb9
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1800095a7
mov rdx, rdi
mov rcx, r12
call fcn.180008888
mov ebx, eax
xor edx, edx
mov dword [rbp - 0x70], edx
test eax, eax
js 0x18000921c
jmp 0x18000952e
mov dword [rbp - 0x70], ebx
jmp 0x180008fc0
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180008fee
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
lea rdx, [0x18008a750]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x18000910a
lea rdx, [rbp + 0x210]
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
cmp word [rdi], 0x3d
jne 0x18000959d
cmp dword [rsp + 0x60], edx
je 0x18000908d
mov qword [rbp - 0x58], rdx
mov dword [rbp - 0x50], edx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x50], edx
mov qword [rbp - 0x48], rdx
mov r9, rdi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x58]
mov rcx, r12
call fcn.18000834c
mov ebx, eax
xor edx, edx
mov qword [rbp - 0x58], rdx
mov dword [rbp - 0x50], edx
mov qword [rbp - 0x48], rdx
mov dword [rbp - 0x50], edx
jmp 0x180008fac
cmp dword [rbp + 0x2290], edx
jne 0x1800090fa
test r13d, r13d
je 0x1800090fa
mov qword [rbp - 0x40], rdx
mov dword [rbp - 0x38], edx
mov qword [rbp - 0x30], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.18000892c
xor edx, edx
test eax, eax
jne 0x1800095c4
lea rdx, [rbp + 0x210]
mov rsi, qword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1800095af
xor ebx, ebx
test rsi, rsi
je 0x1800090f7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], ebx
mov rdx, rdi
mov rcx, r12
call fcn.180008888
jmp 0x18000957b
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x180009126
cmp ax, 0x5c
je 0x18000912d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x180009112
jmp 0x180009136
test rcx, rcx
jne 0x18000959d
cmp dword [rsp + 0x60], edx
je 0x18000929d
mov esi, 0x2001f
mov r9d, esi
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.18000892c
xor ebx, ebx
test eax, eax
je 0x18000925a
lea r9d, [rsi - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.18000892c
test eax, eax
je 0x18000925a
mov qword [rsp + 0x68], rbx
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x60]
test rcx, rcx
je 0x1800091ac
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, r15
call fcn.180008224
jmp 0x1800091da
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x1800095ea
mov eax, edx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1800091fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x78], edx
mov r14, qword [rsp + 0x68]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], edx
test eax, eax
je 0x18000925f
mov ecx, eax
call fcn.180008c58
mov ebx, eax
test r14, r14
je 0x180009231
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x78], edx
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x2328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
cmp word [rdi], 0x3d
jne 0x18000952e
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.18000834c
mov ebx, eax
xor edx, edx
mov r14, qword [rsp + 0x70]
jmp 0x180008fac
mov ebx, dword [rbp + 0x2290]
test ebx, ebx
jne 0x1800092c6
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.18000892c
mov esi, eax
mov r14, qword [rsp + 0x70]
jmp 0x1800092cb
mov esi, 2
mov r15d, ebx
test esi, esi
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp]
call fcn.180070500
test eax, eax
je 0x180009316
cmp eax, 0xc
je 0x180009605
cmp eax, 0x16
je 0x18000961b
cmp eax, 0x22
je 0x18000961b
cmp eax, 0x50
jne 0x180009610
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
mov rdx, rdi
mov rcx, r12
call fcn.180008888
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
cmp word [rdi], 0x7b
jne 0x18000939b
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x18000934e
cmp rax, 1
jne 0x18000939b
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.180008e20
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x180009384
test r15d, r15d
je 0x18000921c
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
cmp esi, 2
je 0x180009587
test esi, esi
je 0x1800093bb
cmp dword [rbp + 0x2290], edx
jne 0x180009587
mov ecx, esi
jmp 0x180009215
cmp dword [rbp + 0x2290], edx
je 0x180009466
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x180009466
cmp dword [rsp + 0x68], edx
jbe 0x180009466
lea rsi, [0x18008a870]
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x180009587
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x18000941c
test r13d, r13d
je 0x180009587
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.180008a0c
mov r14, qword [rsp + 0x70]
xor edx, edx
jmp 0x180009587
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x1800094b8
cmp dword [rsp + 0x68], edx
seta sil
mov eax, edx
test r14, r14
je 0x1800094d2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x78], edx
test eax, eax
jne 0x180009213
test r13d, r13d
je 0x180009587
test esi, esi
jne 0x180009587
mov qword [rbp - 0x28], rdx
mov dword [rbp - 0x20], edx
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], edx
mov qword [rbp - 0x18], rdx
lea rdx, [rbp]
lea rcx, [rbp - 0x28]
call fcn.180008b5c
xor edx, edx
mov qword [rbp - 0x28], rdx
mov dword [rbp - 0x20], edx
mov qword [rbp - 0x18], rdx
test eax, eax
jne 0x1800095f4
mov dword [rbp - 0x20], edx
mov ecx, dword [rsp + 0x60]
test ecx, ecx
je 0x180009587
cmp word [rdi], 0x7b
jne 0x180009587
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x180009540
cmp rax, 1
jne 0x180009587
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.180008e20
mov ebx, eax
xor edx, edx
test eax, eax
js 0x18000921c
mov rdx, rdi
mov rcx, r12
call fcn.180008c68
xor edx, edx
test eax, eax
mov ebx, eax
js 0x18000921c
cmp word [rdi], 0x7d
je 0x18000921c
mov r15, qword [rbp - 0x10]
jmp 0x180008e9a
mov dword [rbp - 0x70], edx
mov ebx, 0x80020009
jmp 0x18000921c
mov dword [rbp - 0x70], edx
jmp 0x18000921c
mov ecx, eax
call fcn.180008c58
mov ebx, eax
xor edx, edx
test rsi, rsi
je 0x1800095e2
mov rcx, rsi
jmp 0x1800095d6
mov ecx, eax
call fcn.180008c58
mov ebx, eax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1800095e2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rbp - 0x40], rdx
mov dword [rbp - 0x38], edx
jmp 0x18000921c
mov r14, qword [rsp + 0x70]
jmp 0x180009213
mov ecx, eax
call fcn.180008c58
mov ebx, eax
mov dword [rbp - 0x20], edx
jmp 0x18000921c
mov ecx, 0x8007000e
call fcn.18000a540
int3
mov ecx, 0x80004005
call fcn.18000a540
int3
mov ecx, 0x80070057
call fcn.18000a540
int3