Function at 0x140013a0c
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.14001ee60
sub rsp, rax
mov rax, qword [0x140033010]
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 r14d, eax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
call fcn.140012c2c
test eax, eax
mov ebx, eax
js 0x140013e1c
cmp word [rdi], 0x7d
je 0x140013e1c
mov r13d, 1
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, [0x140024768]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013ab8
test esi, esi
je 0x140013b82
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013e1c
cmp dword [rsp + 0x68], edx
je 0x140013b80
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140013afe
cmp ax, 0x5c
je 0x140013b05
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140013aec
jmp 0x140013b0e
test rcx, rcx
jne 0x14001417d
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013b45
add rbx, 8
lea rax, [0x1400253b0]
cmp rbx, rax
jl 0x140013b15
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400124ec
xor ebx, ebx
test esi, esi
je 0x140013b82
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
test eax, eax
js 0x140013e1c
mov rdx, rdi
mov rcx, r12
call fcn.1400133bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013e1c
mov esi, dword [rsp + 0x68]
jmp 0x140013e8d
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140013bae
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
test eax, eax
js 0x140013e1c
lea rdx, [0x140024760]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140013ca4
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
test eax, eax
js 0x140013e1c
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013e1c
cmp word [rdi], 0x3d
jne 0x14001417d
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140013c32
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.140012de8
mov ebx, eax
xor edx, edx
jmp 0x140013e89
cmp dword [rbp + 0x2240], edx
jne 0x140013c94
test r13d, r13d
je 0x140013c94
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140012400
test eax, eax
jne 0x14001415c
lea rdx, [rbp + 0x1c0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140014145
test rsi, rsi
je 0x140013c94
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.1400133bc
jmp 0x140013a68
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140013cbe
cmp ax, 0x5c
je 0x140013cc5
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140013cac
jmp 0x140013cce
test rcx, rcx
jne 0x14001417d
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140013ed8
mov r14d, 0x2001f
mov r9d, r14d
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140012400
xor r13d, r13d
test eax, eax
je 0x140013e4f
lea r9d, [r14 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140012400
test eax, eax
je 0x140013e4f
mov qword [rsp + 0x60], r13
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140013db2
cmp qword [rbx], r13
je 0x140013da5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014187
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140013dab
mov qword [rsp + 0x50], r13
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
mov rax, r10
call qword [0x140021e80]
jmp 0x140013de6
cmp dword [rbx + 8], r13d
jne 0x140013db2
mov eax, 1
jmp 0x140013de6
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001418c
mov eax, r13d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013e01
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r13d
test eax, eax
je 0x140013e54
mov ecx, eax
call fcn.14001210c
mov ebx, eax
test r14, r14
je 0x140013e2a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.14001d830
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013e1c
cmp word [rdi], 0x3d
jne 0x140013e8d
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.140012de8
mov ebx, eax
xor edx, edx
mov r14, qword [rsp + 0x78]
test eax, eax
js 0x140013e1c
cmp word [rdi], 0x7b
jne 0x140013a72
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013e9b
cmp rax, 1
jne 0x140013a72
mov dword [rsp + 0x20], edx
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140013a0c
mov ebx, eax
test eax, eax
js 0x140013e1c
mov rdx, rdi
mov rcx, r12
jmp 0x140013a63
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140013f01
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140012400
mov esi, eax
mov r14, qword [rsp + 0x78]
jmp 0x140013f06
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140013f50
cmp eax, 0xc
je 0x14001419d
cmp eax, 0x16
je 0x1400141b3
cmp eax, 0x22
je 0x1400141b3
cmp eax, 0x50
jne 0x1400141a8
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
test eax, eax
js 0x140013e1c
mov rdx, rdi
mov rcx, r12
call fcn.1400133bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013e1c
cmp word [rdi], 0x7b
jne 0x140013fd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013f86
cmp rax, 1
jne 0x140013fd1
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140013a0c
mov ebx, eax
test eax, eax
jns 0x140013fba
test r15d, r15d
je 0x140013e1c
mov rdx, rdi
mov rcx, r12
call fcn.140012c2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013e1c
cmp esi, 2
je 0x140013fe6
test esi, esi
je 0x140013ff0
cmp dword [rbp + 0x2240], edx
je 0x140014196
mov r15, qword [rsp + 0x70]
jmp 0x140013a72
cmp dword [rbp + 0x2240], edx
je 0x140014093
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140014093
cmp dword [rsp + 0x60], edx
jbe 0x140014093
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013fe6
add rsi, 8
lea rax, [0x1400253b0]
cmp rsi, rax
jl 0x140014051
test r13d, r13d
je 0x140013fe6
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400124ec
mov r14, qword [rsp + 0x78]
jmp 0x140013fe6
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x1400140e5
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x1400140ff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x80], edx
test eax, eax
jne 0x140013e13
mov r15, qword [rsp + 0x70]
test r13d, r13d
je 0x140013a72
test esi, esi
jne 0x140013a72
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400122f8
test eax, eax
jne 0x140013e13
jmp 0x140013a72
mov ecx, eax
call fcn.14001210c
mov ebx, eax
test rsi, rsi
je 0x140013e1c
mov rcx, rsi
jmp 0x140014172
mov ecx, eax
call fcn.14001210c
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140013e1c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013e1c
mov ebx, 0x80020009
jmp 0x140013e1c
mov eax, 1
mov r14, qword [rsp + 0x78]
jmp 0x140013e13
mov ecx, esi
jmp 0x140013e15
mov ecx, 0x8007000e
call fcn.140001908
int3
mov ecx, 0x80004005
call fcn.140001908
int3
mov ecx, 0x80070057
call fcn.140001908
int3