Function at 0x140003318
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.140037200
sub rsp, rax
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x68], r9d
mov r15, r8
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov esi, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call fcn.140002704
test eax, eax
mov ebx, eax
js 0x1400039ea
cmp word [rdi], 0x7d
je 0x1400039ea
mov eax, 1
mov r13d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov r14d, ebx
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400033d0
test r14d, r14d
je 0x14000349d
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1400039ea
cmp dword [rsp + 0x68], edx
je 0x14000349b
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140003417
cmp ax, 0x5c
je 0x14000341e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140003405
jmp 0x140003427
test rcx, rcx
jne 0x140003a36
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000345e
add rbx, 8
lea rax, [0x14003b090]
cmp rbx, rax
jl 0x14000342e
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140001d4c
xor ebx, ebx
test r14d, r14d
je 0x14000349d
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
test eax, eax
js 0x1400039ea
mov rdx, rdi
mov rcx, r12
call fcn.140002de8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1400039ea
mov r14d, dword [rsp + 0x68]
jmp 0x1400036f9
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400034c9
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
test eax, eax
js 0x1400039ea
lea rdx, [0x14003d928]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x1400035c6
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.140002704
mov ebx, eax
test eax, eax
js 0x1400039ea
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1400039ea
cmp word [rdi], 0x3d
jne 0x140003a36
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140003552
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], r15
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.1400028bc
mov ebx, eax
xor edx, edx
jmp 0x1400036f1
cmp dword [rbp + 0x2240], edx
jne 0x1400035b6
test r13d, r13d
je 0x1400035b6
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400039e1
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140003a1d
test r14, r14
je 0x1400035b6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.140002de8
jmp 0x14000337c
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400035e2
cmp ax, 0x5c
je 0x1400035e9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x1400035ce
jmp 0x1400035f2
test rcx, rcx
jne 0x140003a36
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140003748
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r13d, 0x2001f
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14000364b
mov eax, ebx
test rsi, rsi
je 0x14000363d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x1400036b8
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003691
mov eax, ebx
test rsi, rsi
je 0x140003683
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x1400036b8
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140001cc4
test eax, eax
jne 0x140003a3d
mov rsi, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1400039ea
cmp word [rdi], 0x3d
jne 0x1400036f9
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.1400028bc
mov ebx, eax
xor edx, edx
mov rsi, qword [rsp + 0x78]
test eax, eax
js 0x1400039ea
cmp word [rdi], 0x7b
jne 0x140003386
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140003707
mov ecx, 1
cmp rax, rcx
jne 0x140003386
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.140003318
mov ebx, eax
test eax, eax
js 0x1400039ea
mov rdx, rdi
mov rcx, r12
jmp 0x140003377
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x14000379f
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
xor edx, edx
test eax, eax
jne 0x1400037a5
mov r14d, edx
test rsi, rsi
je 0x140003793
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
jmp 0x1400037a5
mov r14d, 2
mov r15d, ebx
test r14d, r14d
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
test eax, eax
je 0x1400037f2
cmp eax, 0xc
je 0x140003a50
cmp eax, 0x16
je 0x140003a66
cmp eax, 0x22
je 0x140003a66
cmp eax, 0x50
jne 0x140003a5b
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
test eax, eax
js 0x1400039ea
mov rdx, rdi
mov rcx, r12
call fcn.140002de8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1400039ea
cmp word [rdi], 0x7b
jne 0x140003877
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140003828
mov ecx, 1
cmp rax, rcx
jne 0x140003877
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.140003318
mov ebx, eax
test eax, eax
jns 0x140003860
test r15d, r15d
je 0x1400039ea
mov rdx, rdi
mov rcx, r12
call fcn.140002704
mov ebx, eax
xor edx, edx
test eax, eax
js 0x1400039ea
cmp r14d, 2
je 0x14000388e
test r14d, r14d
je 0x140003898
cmp dword [rbp + 0x2240], edx
je 0x140003a4b
mov r15, qword [rsp + 0x70]
jmp 0x140003386
cmp dword [rbp + 0x2240], edx
je 0x14000393b
mov dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14000393b
cmp dword [rsp + 0x60], edx
jbe 0x14000393b
lea r14, str.AppID
mov rdx, qword [r14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000388e
add r14, 8
lea rax, [0x14003b090]
cmp r14, rax
jl 0x1400038f9
test r13d, r13d
je 0x14000388e
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140001d4c
mov rsi, qword [rsp + 0x78]
jmp 0x14000388e
mov dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov r14d, edx
test eax, eax
jne 0x14000398e
cmp dword [rsp + 0x60], edx
seta r14b
test rsi, rsi
je 0x1400039a9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rsp + 0x78], rdx
test eax, eax
jne 0x1400039e1
test r13d, r13d
je 0x14000388e
mov r15, qword [rsp + 0x70]
test r14d, r14d
jne 0x140003386
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], r15
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140001c08
test eax, eax
je 0x140003386
mov ecx, eax
call fcn.140001818
mov ebx, eax
test rsi, rsi
je 0x1400039f8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1400363b0
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.140001818
mov ebx, eax
test r14, r14
je 0x1400039ea
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400039ea
mov ebx, 0x80020009
jmp 0x1400039ea
mov ecx, eax
call fcn.140001818
mov rsi, qword [rsp + 0x78]
jmp 0x1400039e8
mov ecx, r14d
jmp 0x1400039e3
mov ecx, 0x8007000e
call fcn.140001768
int3
mov ecx, 0x80004005
call fcn.140001768
int3
mov ecx, 0x80070057
call fcn.140001768
int3