Function at 0x14000513c
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10e8]
mov eax, 0x11e8
call fcn.140012740
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x14001e048]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x60], r9d
mov r15, r8
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r12, rcx
xor r14d, r14d
mov qword [rbp - 0x70], r14
and dword [rbp - 0x68], r14d
and qword [rbp - 0x60], r14
call fcn.14000432c
test eax, eax
mov ebx, eax
js 0x1400054e0
cmp byte [rdi], 0x7d
je 0x1400054e0
mov eax, 1
mov r13d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400051ed
test esi, esi
je 0x1400052ba
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
cmp dword [rsp + 0x60], 0
je 0x1400052ba
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140005232
cmp al, 0x5c
je 0x140005238
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140005223
jmp 0x140005241
test rcx, rcx
jne 0x14000584e
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140005283
add rbx, 8
lea rax, [0x140015c10]
cmp rbx, rax
jl 0x140005248
mov qword [rsp + 0x78], r15
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140003160
test esi, esi
je 0x1400052ba
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
mov rdx, rdi
mov rcx, r12
call fcn.140004afc
mov ebx, eax
test eax, eax
js 0x1400054e0
mov esi, dword [rsp + 0x60]
jmp 0x140005549
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400052e6
xor r13d, r13d
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
lea rdx, [0x140015498]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400053e2
lea rdx, [rbp + 0xd0]
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
cmp byte [rdi], 0x3d
jne 0x14000584e
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140005369
mov qword [rsp + 0x78], r15
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov r9, rdi
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.1400044b4
mov ebx, eax
jmp 0x140005545
cmp dword [rbp + 0x1150], 0
jne 0x1400053d2
test r13d, r13d
je 0x1400053d2
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140003070
test eax, eax
jne 0x14000582c
lea rdx, [rbp + 0xd0]
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x140005815
test rsi, rsi
je 0x1400053d2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.140004afc
jmp 0x14000519e
mov rcx, rdi
mov al, byte [rdi]
jmp 0x1400053f8
cmp al, 0x5c
je 0x1400053fe
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x1400053e9
jmp 0x140005407
test rcx, rcx
jne 0x14000584e
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140005598
mov r14d, 0x2001f
mov r9d, r14d
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140003070
xor ebx, ebx
test eax, eax
je 0x140005513
lea r9d, [r14 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140003070
test eax, eax
je 0x140005513
mov qword [rsp + 0x68], rbx
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x58]
test rcx, rcx
je 0x14000547e
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, r15
call fcn.140002c70
jmp 0x1400054ad
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400054cf
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400054c0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x68]
mov qword [rbp - 0x70], r14
and dword [rbp - 0x68], 0
jmp 0x1400054d3
mov r14, qword [rbp - 0x70]
test eax, eax
je 0x140005517
mov ecx, eax
call fcn.140002c54
mov ebx, eax
test r14, r14
je 0x1400054ee
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.140010d90
add rsp, 0x11e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rbp - 0x70]
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
cmp byte [rdi], 0x3d
jne 0x140005549
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.1400044b4
mov ebx, eax
mov r14, qword [rbp - 0x70]
test eax, eax
js 0x1400054e0
cmp byte [rdi], 0x7b
jne 0x1400051a8
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140005556
mov ecx, 1
cmp rax, rcx
jne 0x1400051a8
and dword [rsp + 0x20], 0
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14000513c
mov ebx, eax
test eax, eax
js 0x1400054e0
mov rdx, rdi
mov rcx, r12
jmp 0x140005199
mov ebx, dword [rbp + 0x1150]
test ebx, ebx
jne 0x1400055bf
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140003070
mov esi, eax
mov r14, qword [rbp - 0x70]
jmp 0x1400055c4
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 - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
test eax, eax
je 0x140005610
cmp eax, 0xc
je 0x14000585f
cmp eax, 0x16
je 0x140005875
cmp eax, 0x22
je 0x140005875
cmp eax, 0x50
jne 0x14000586a
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
mov rdx, rdi
mov rcx, r12
call fcn.140004afc
mov ebx, eax
test eax, eax
js 0x1400054e0
cmp byte [rdi], 0x7b
jne 0x140005690
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140005643
mov ecx, 1
cmp rax, rcx
jne 0x140005690
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14000513c
mov ebx, eax
test eax, eax
jns 0x14000567b
test r15d, r15d
je 0x1400054e0
mov rdx, rdi
mov rcx, r12
call fcn.14000432c
mov ebx, eax
test eax, eax
js 0x1400054e0
cmp esi, 2
je 0x1400056a6
test esi, esi
je 0x1400056b0
cmp dword [rbp + 0x1150], 0
je 0x140005858
mov r15, qword [rsp + 0x70]
jmp 0x1400051a8
cmp dword [rbp + 0x1150], 0
je 0x14000575c
and dword [rsp + 0x68], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
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]
test eax, eax
jne 0x14000575c
cmp dword [rsp + 0x68], eax
jbe 0x14000575c
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400056a6
add rsi, 8
lea rax, [0x140015c10]
cmp rsi, rax
jl 0x140005718
test r13d, r13d
je 0x1400056a6
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.140003160
mov r14, qword [rbp - 0x70]
jmp 0x1400056a6
and dword [rsp + 0x68], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
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 esi, esi
test eax, eax
jne 0x1400057b4
cmp dword [rsp + 0x68], esi
seta sil
xor eax, eax
test r14, r14
je 0x1400057cb
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
mov qword [rbp - 0x70], r14
and dword [rbp - 0x68], 0
test eax, eax
jne 0x1400054d7
mov r15, qword [rsp + 0x70]
test r13d, r13d
je 0x1400051a8
test esi, esi
jne 0x1400051a8
mov qword [rsp + 0x78], r15
and dword [rbp - 0x80], esi
and qword [rbp - 0x78], 0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140002f54
test eax, eax
jne 0x1400054d7
jmp 0x1400051a8
mov ecx, eax
call fcn.140002c54
mov ebx, eax
test rsi, rsi
je 0x1400054e0
mov rcx, rsi
jmp 0x140005843
mov ecx, eax
call fcn.140002c54
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400054e0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400054e0
mov ebx, 0x80020009
jmp 0x1400054e0
mov ecx, esi
jmp 0x1400054d9
mov ecx, 0x8007000e
call fcn.140002b80
int3
mov ecx, 0x80004005
call fcn.140002b80
int3
mov ecx, 0x80070057
call fcn.140002b80
int3