Function at 0x140002e8c
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.1400114e0
sub rsp, rax
mov rax, qword [0x1400190b8]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
xor eax, eax
mov dword [rsp + 0x68], r9d
mov esi, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov r15, r8
mov qword [rbp - 0x78], rax
mov rdi, rdx
mov qword [rsp + 0x70], r8
mov r12, rcx
call fcn.140002ca0
mov ebx, eax
test eax, eax
js 0x140003644
cmp word [rdi], 0x7d
je 0x140003630
mov eax, 1
lea rdx, str.Delete
mov rcx, rdi
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
xor ebx, ebx
lea rdx, str.ForceRemove
test eax, eax
mov r14d, ebx
mov rcx, rdi
sete r14b
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140002f48
test r14d, r14d
je 0x140003021
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
cmp dword [rsp + 0x68], edx
je 0x14000301f
movzx eax, word [rdi]
mov rcx, rdi
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
jmp 0x140002f95
cmp ax, 0x5c
je 0x140002f9c
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140002f7d
jmp 0x140002fa5
test rcx, rcx
jne 0x140003689
lea rbx, [0x1400133b0]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140002fe2
add rbx, 8
lea rax, str.Microsoft.Windows.WindowsColorSystem.Dccw.GetDialogId
cmp rbx, rax
jl 0x140002fac
mov rdx, rdi
mov qword [rbp - 0x70], r15
lea rcx, [rbp - 0x70]
call fcn.140002a48
xor ebx, ebx
test r14d, r14d
je 0x140003021
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
mov ebx, eax
test eax, eax
js 0x140003630
mov rdx, rdi
mov rcx, r12
call fcn.140002998
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
mov r14d, dword [rsp + 0x68]
jmp 0x14000330c
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140003053
mov rdx, rdi
mov rcx, r12
mov r13d, ebx
call fcn.140002ca0
mov ebx, eax
test eax, eax
js 0x140003630
lea rdx, [0x1400140e8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x14000316e
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.140002ca0
mov ebx, eax
test eax, eax
js 0x140003630
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
cmp word [rdi], 0x3d
jne 0x140003689
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x1400030de
mov qword [rbp - 0x68], rdx
lea r8, [rbp + 0x1c0]
mov qword [rbp - 0x60], rdx
mov r9, rdi
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x70], r15
mov rcx, r12
call fcn.140002518
jmp 0x140003300
cmp dword [rbp + 0x2240], edx
jne 0x140003154
test r13d, r13d
je 0x140003154
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rdx
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140003627
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x14000366a
test r14, r14
je 0x140003154
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, r12
call fcn.140002998
mov ebx, eax
test eax, eax
js 0x140003630
jmp 0x140002ef2
movzx eax, word [rdi]
mov rcx, rdi
jmp 0x140003190
cmp ax, 0x5c
je 0x140003197
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
movzx eax, word [rax]
test ax, ax
jne 0x140003176
jmp 0x1400031a0
test rcx, rcx
jne 0x140003689
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140003360
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov r13d, 0x2001f
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140003209
mov eax, ebx
test rsi, rsi
je 0x1400031f7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x1400032cb
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000325b
mov eax, ebx
test rsi, rsi
je 0x14000324d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x1400032cb
lea rax, [rbp - 0x58]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov qword [rsp + 0x30], rbx
mov rcx, r15
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x140003627
mov eax, edx
test rsi, rsi
je 0x1400032b9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
jne 0x140003627
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
cmp word [rdi], 0x3d
jne 0x14000330c
mov r9, rdi
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, r12
call fcn.140002518
mov rsi, qword [rsp + 0x78]
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
cmp word [rdi], 0x7b
jne 0x140002ef2
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14000331a
mov ecx, 1
cmp rax, rcx
jne 0x140002ef2
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov rdx, rdi
mov r8, rsi
mov rcx, r12
call fcn.140002e8c
mov ebx, eax
test eax, eax
js 0x140003630
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
jmp 0x14000315f
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x1400033c3
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor edx, edx
mov r14d, eax
test eax, eax
jne 0x1400033c9
mov r14d, edx
test rsi, rsi
je 0x1400033b7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r14d, eax
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
jmp 0x1400033c9
mov r14d, 2
mov eax, 1
lea rcx, [rbp - 0x50]
test r14d, r14d
mov r15d, ebx
mov r8, rdi
mov edx, 0x104
cmovne r15d, eax
or r9, 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
test eax, eax
je 0x14000341c
cmp eax, 0xc
je 0x140003695
cmp eax, 0x16
je 0x1400036ab
cmp eax, 0x22
je 0x1400036ab
cmp eax, 0x50
jne 0x1400036a0
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
mov ebx, eax
test eax, eax
js 0x140003630
mov rdx, rdi
mov rcx, r12
call fcn.140002998
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
cmp word [rdi], 0x7b
jne 0x1400034a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140003452
mov ecx, 1
cmp rax, rcx
jne 0x1400034a1
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.140002e8c
mov ebx, eax
test eax, eax
jns 0x14000348a
test r15d, r15d
je 0x140003630
mov rdx, rdi
mov rcx, r12
call fcn.140002ca0
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003630
cmp r14d, 2
je 0x1400034b8
test r14d, r14d
je 0x1400034c2
cmp dword [rbp + 0x2240], edx
je 0x140003690
mov r15, qword [rsp + 0x70]
jmp 0x140002ef2
cmp dword [rbp + 0x2240], edx
je 0x140003575
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
xor r9d, r9d
mov qword [rsp + 0x48], rdx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rcx, rsi
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x60], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x140003575
cmp dword [rsp + 0x60], edx
jbe 0x140003575
lea r14, [0x1400133b0]
mov rdx, qword [r14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x1400034b8
add r14, 8
lea rax, str.Microsoft.Windows.WindowsColorSystem.Dccw.GetDialogId
cmp r14, rax
jl 0x140003529
test r13d, r13d
je 0x1400034b8
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140002a48
mov rsi, qword [rsp + 0x78]
jmp 0x1400034b8
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
xor r9d, r9d
mov qword [rsp + 0x48], rdx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rcx, rsi
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x60], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor edx, edx
mov r14d, edx
test eax, eax
jne 0x1400035ce
cmp dword [rsp + 0x60], edx
seta r14b
test rsi, rsi
je 0x1400035ef
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edx, edx
mov qword [rsp + 0x78], rdx
mov esi, edx
test eax, eax
jne 0x140003627
test r13d, r13d
je 0x1400034b8
mov r15, qword [rsp + 0x70]
test r14d, r14d
jne 0x140002ef2
mov qword [rbp - 0x68], rdx
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x60], rdx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x70], r15
call fcn.140002bac
test eax, eax
je 0x140002ef2
mov ecx, eax
call fcn.140002c88
mov ebx, eax
test rsi, rsi
je 0x140003644
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.140010b90
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.140002c88
mov ebx, eax
test r14, r14
je 0x140003630
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140003630
mov ebx, 0x80020009
jmp 0x140003630
mov ecx, r14d
jmp 0x140003629
mov ecx, 0x8007000e
call fcn.140003dac
int3
mov ecx, 0x80004005
call fcn.140003dac
int3
mov ecx, 0x80070057
call fcn.140003dac
int3