Function at 0x140012208
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2238]
mov eax, 0x2338
call fcn.1401a4ab0
sub rsp, rax
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [0x1402338a8]
xor rax, rsp
mov qword [rbp + 0x2220], rax
mov r14d, r9d
mov dword [rsp + 0x60], r9d
mov r13, r8
mov rdi, rdx
mov r15, rcx
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.140012054
mov ebx, eax
test eax, eax
js 0x140012970
lfence
cmp word [rdi], 0x7d
je 0x140012970
mov eax, 1
mov r12d, 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 0x1400122bf
test esi, esi
je 0x14001238e
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140012970
lfence
test r14d, r14d
je 0x14001238c
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], r8
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140012309
cmp ax, 0x5c
je 0x140012310
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400122f7
jmp 0x140012319
test rcx, rcx
jne 0x14001295c
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001235b
add rbx, 8
lea rax, [0x1401c32e0]
cmp rbx, rax
jl 0x140012320
lfence
mov qword [rbp - 0x48], r13
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140011e2c
xor ebx, ebx
mov qword [rbp - 0x48], rbx
jmp 0x14001235d
xor ebx, ebx
test esi, esi
je 0x14001238e
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
test eax, eax
js 0x140012970
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140011d7c
jmp 0x14001262e
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400123ba
mov r12d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
test eax, eax
js 0x140012970
lea rdx, [0x1401c9748]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor r8d, r8d
test eax, eax
jne 0x1400124c9
lea rdx, [rbp + 0x220]
mov rcx, r15
call fcn.140012054
mov ebx, eax
test eax, eax
js 0x140012970
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140012970
cmp word [rdi], 0x3d
jne 0x14001295c
test r14d, r14d
je 0x14001244b
lfence
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x30], r13
mov r9, rdi
lea r8, [rbp + 0x220]
lea rdx, [rbp - 0x30]
mov rcx, r15
call fcn.1400117e0
mov ebx, eax
xor r8d, r8d
mov qword [rbp - 0x30], r8
jmp 0x140012633
cmp dword [rbp + 0x22a0], r8d
jne 0x1400124ac
test r12d, r12d
je 0x1400124ac
mov qword [rbp - 0x78], r8
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012967
mov rsi, qword [rbp - 0x78]
lea rdx, [rbp + 0x220]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140012943
test rsi, rsi
je 0x1400124ac
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140011d7c
mov ebx, eax
test eax, eax
js 0x140012970
jmp 0x140012277
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400124e6
cmp ax, 0x5c
je 0x1400124ed
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor r8d, r8d
test ax, ax
jne 0x1400124d1
jmp 0x1400124f6
test rcx, rcx
jne 0x14001295c
test r14d, r14d
je 0x140012696
mov qword [rbp - 0x70], r8
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov esi, 0x2001f
mov r9d, esi
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14001254e
mov edx, ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001253d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x68], rax
test edx, edx
je 0x1400125fd
mov qword [rbp - 0x68], rbx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012595
mov edx, ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140012588
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x68], rax
test edx, edx
je 0x1400125fd
mov qword [rbp - 0x60], rbx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
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, r13
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, eax
xor r8d, r8d
test eax, eax
jne 0x140012963
mov edx, r8d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400125ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x68], rax
test edx, edx
jne 0x140012963
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140012970
cmp word [rdi], 0x3d
jne 0x14001263b
lfence
mov r9, rdi
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400117e0
xor r8d, r8d
mov ebx, eax
test eax, eax
js 0x140012970
cmp word [rdi], 0x7b
jne 0x140012277
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r8w
jne 0x140012649
mov ecx, 1
cmp rax, rcx
jne 0x140012277
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, r15
call fcn.140012208
mov ebx, eax
test eax, eax
js 0x140012970
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140012054
jmp 0x1400124ba
cmp dword [rbp + 0x22a0], r8d
jne 0x1400126ea
mov qword [rbp - 0x58], r8
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor r8d, r8d
test eax, eax
jne 0x1400126ef
mov esi, r8d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400126df
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x68], rax
jmp 0x1400126ef
mov esi, 2
mov r14d, dword [rbp + 0x22a0]
test esi, esi
mov eax, 1
cmovne r14d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x14001273f
cmp eax, 0xc
je 0x1400129a5
cmp eax, 0x16
je 0x1400129bb
cmp eax, 0x22
je 0x1400129bb
cmp eax, 0x50
jne 0x1400129b0
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
test eax, eax
js 0x140012970
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140011d7c
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140012970
cmp word [rdi], 0x7b
jne 0x1400127d5
lfence
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r8w
jne 0x14001277c
mov ecx, 1
cmp rax, rcx
jne 0x1400127d5
lfence
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, r15
call fcn.140012208
mov ebx, eax
test eax, eax
jns 0x1400127ba
test r14d, r14d
je 0x140012970
lfence
mov rdx, rdi
mov rcx, r15
call fcn.140012054
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140012970
cmp esi, 2
je 0x140012939
test esi, esi
je 0x1400127f6
cmp dword [rbp + 0x22a0], r8d
jne 0x140012939
mov ecx, esi
jmp 0x140012969
cmp dword [rbp + 0x22a0], r8d
je 0x14001289b
mov dword [rbp - 0x80], r8d
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor r8d, r8d
test eax, eax
jne 0x14001289b
cmp dword [rbp - 0x80], r8d
jbe 0x14001289b
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140012939
add rsi, 8
lea rax, [0x1401c32e0]
cmp rsi, rax
jl 0x14001285a
test r12d, r12d
je 0x140012939
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.140011e2c
jmp 0x140012939
mov dword [rbp - 0x7c], r8d
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor r8d, r8d
mov esi, r8d
test eax, eax
jne 0x1400128f0
cmp dword [rbp - 0x7c], r8d
seta sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001290c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov qword [rsp + 0x68], r8
test eax, eax
jne 0x140012967
test r12d, r12d
je 0x140012939
test esi, esi
jne 0x140012939
mov qword [rbp - 0x10], r8
mov qword [rbp - 8], r8
mov qword [rbp - 0x18], r13
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.140011f8c
xor r8d, r8d
mov qword [rbp - 0x18], r8
test eax, eax
jne 0x140012967
mov r14d, dword [rsp + 0x60]
jmp 0x140012277
mov ecx, eax
call fcn.140012044
mov ebx, eax
test rsi, rsi
je 0x140012970
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012970
mov ebx, 0x80020009
jmp 0x140012970
mov ecx, edx
jmp 0x140012969
mov ecx, eax
call fcn.140012044
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140012980
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x2220]
xor rcx, rsp
call fcn.140154030
add rsp, 0x2338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140011d58
int3
mov ecx, 0x80004005
call fcn.140011d58
int3
mov ecx, 0x80070057
call fcn.140011d58
int3