Function at 0x140005894
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.14002e920
sub rsp, rax
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x68], r9d
mov qword [rbp - 0x78], r8
mov rdi, rdx
mov r12, rcx
xor esi, esi
mov r14d, esi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov r15d, esi
mov qword [rbp - 0x80], rsi
call fcn.1400048d0
mov ebx, eax
test eax, eax
js 0x140005d92
cmp word [rdi], 0x7d
je 0x140005d92
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, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005940
test esi, esi
je 0x140005a2a
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
test eax, eax
js 0x140005d92
xor ebx, ebx
cmp dword [rsp + 0x68], ebx
je 0x140005a2a
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140005986
cmp ax, 0x5c
je 0x14000598d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005974
jmp 0x140005996
test rcx, rcx
jne 0x140006150
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400059e7
add rbx, 8
lea rax, [0x14003ab00]
cmp rbx, rax
jl 0x14000599d
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x70], rax
xor ebx, ebx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140004fd8
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
jmp 0x1400059e9
xor ebx, ebx
test esi, esi
je 0x140005a27
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x14000615d
mov rdx, rdi
mov rcx, r12
call fcn.1400068a8
mov ebx, eax
mov dword [rbp - 0x68], r15d
test eax, eax
js 0x140005d92
mov esi, dword [rsp + 0x68]
jmp 0x140005e08
mov dword [rbp - 0x68], ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005a56
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
test eax, eax
js 0x140005d92
lea rdx, [0x14003a328]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005b9c
lea rdx, [rbp + 0x210]
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140005d92
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
test eax, eax
js 0x140005d92
cmp word [rdi], 0x3d
jne 0x140006153
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140005afa
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
mov r9, rdi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.1400033d8
mov ebx, eax
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x48], r15d
jmp 0x140005e04
cmp dword [rbp + 0x2290], r15d
jne 0x140005b82
test r13d, r13d
je 0x140005b82
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
mov qword [rbp - 0x10], r15
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006183
mov dword [rbp - 0x18], r15d
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], r15d
lea rdx, [rbp + 0x210]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140006166
test rsi, rsi
je 0x140005b7e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
mov rdx, rdi
mov rcx, r12
call fcn.1400068a8
mov ebx, eax
test eax, eax
js 0x140005d92
jmp 0x14000613d
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140005bb6
cmp ax, 0x5c
je 0x140005bbd
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005ba4
jmp 0x140005bc6
test rcx, rcx
jne 0x140006153
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140005e55
xor r13d, r13d
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
mov rbx, qword [rbp - 0x78]
test r15, r15
je 0x140005c08
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140005304
jmp 0x140005c22
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005c58
mov eax, r13d
test r14, r14
je 0x140005c3c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r13d
test eax, eax
je 0x140005dd0
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
test r15, r15
je 0x140005c87
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140005304
jmp 0x140005ca1
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005cd7
mov eax, r13d
test r14, r14
je 0x140005cbb
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r13d
test eax, eax
je 0x140005dd0
mov qword [rsp + 0x60], r13
lea rax, [rbp - 0x58]
test r15, r15
je 0x140005d21
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140005144
xor r15d, r15d
jmp 0x140005d57
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005d89
mov eax, r15d
test r14, r14
je 0x140005d71
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r15d
test eax, eax
je 0x140005dd3
mov ecx, eax
call fcn.140003a14
mov ebx, eax
xor edi, edi
test r14, r14
je 0x140005da7
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], edi
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x2328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r15d, r15d
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
test eax, eax
js 0x140005d92
cmp word [rdi], 0x3d
jne 0x140005e08
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1400033d8
mov ebx, eax
mov r14, qword [rsp + 0x70]
test eax, eax
js 0x140005d92
cmp word [rdi], 0x7b
jne 0x14000613d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp rax, 1
jne 0x14000613d
mov dword [rsp + 0x20], r15d
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140005894
mov ebx, eax
test eax, eax
js 0x140005d92
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
jmp 0x140005b8d
mov ebx, dword [rbp + 0x2290]
xor eax, eax
test ebx, ebx
jne 0x140005ee5
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
test r15, r15
je 0x140005e95
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rbp - 0x78]
mov rcx, r15
call fcn.140005304
jmp 0x140005eb0
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor eax, eax
test esi, esi
jne 0x140005eea
mov esi, eax
test r14, r14
je 0x140005ed1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], eax
jmp 0x140005eea
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140005f34
cmp eax, 0xc
je 0x1400061a7
cmp eax, 0x16
je 0x1400061bd
cmp eax, 0x22
je 0x1400061bd
cmp eax, 0x50
jne 0x1400061b2
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
test eax, eax
js 0x140005d92
mov rdx, rdi
mov rcx, r12
call fcn.1400068a8
mov ebx, eax
test eax, eax
js 0x140005d92
cmp word [rdi], 0x7b
jne 0x140005fb2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp rax, 1
jne 0x140005fb2
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140005894
mov ebx, eax
test eax, eax
jns 0x140005f98
test r15d, r15d
je 0x140005d92
mov rdx, rdi
mov rcx, r12
call fcn.1400048d0
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140005d92
jmp 0x140005fb5
xor r15d, r15d
cmp esi, 2
je 0x14000613d
test esi, esi
je 0x140005fd6
cmp dword [rbp + 0x2290], r15d
jne 0x14000613d
mov ecx, esi
jmp 0x140005d8b
cmp dword [rbp + 0x2290], r15d
je 0x14000607e
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
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]
test eax, eax
jne 0x14000607e
cmp dword [rsp + 0x60], r15d
jbe 0x14000607e
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000613d
add rsi, 8
lea rax, [0x14003ab00]
cmp rsi, rax
jl 0x140006038
test r13d, r13d
je 0x14000613d
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.140004fd8
mov r14, qword [rsp + 0x70]
jmp 0x14000613d
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
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]
mov esi, r15d
test eax, eax
jne 0x1400060d1
cmp dword [rsp + 0x60], r15d
seta sil
mov eax, r15d
test r14, r14
je 0x1400060ea
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r15
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
test eax, eax
jne 0x140005d89
test r13d, r13d
je 0x14000613d
test esi, esi
jne 0x14000613d
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
lea rdx, [rbp]
lea rcx, [rbp - 0x38]
call fcn.140003ac4
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
test eax, eax
jne 0x140006195
mov dword [rbp - 0x30], r15d
cmp word [rdi], 0x7d
je 0x140005d92
mov r15, qword [rbp - 0x80]
jmp 0x140005904
mov dword [rbp - 0x68], ebx
mov ebx, 0x80020009
jmp 0x140005d92
mov dword [rbp - 0x68], r15d
jmp 0x140005d92
mov ecx, eax
call fcn.140003a14
mov ebx, eax
test rsi, rsi
je 0x14000618c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], r15
jmp 0x14000618c
mov ecx, eax
call fcn.140003a14
mov ebx, eax
mov dword [rbp - 0x18], r15d
jmp 0x140005d92
mov ecx, eax
call fcn.140003a14
mov ebx, eax
mov dword [rbp - 0x30], r15d
jmp 0x140005d92
mov ecx, 0x8007000e
call fcn.140002088
int3
mov ecx, 0x80004005
call fcn.140002088
int3
mov ecx, 0x80070057
call fcn.140002088
int3