Function at 0x140004a7c
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x10e8]
mov eax, 0x11e8
call fcn.14001eda0
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x74], r9d
mov qword [rbp - 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov qword [rbp - 0x68], rdi
and dword [rbp - 0x60], edi
and qword [rbp - 0x58], rdi
mov ecx, dword [rbp + 0x1130]
mov dword [rbp - 0x50], ecx
mov rcx, rax
call fcn.14000333c
mov ebx, eax
test eax, eax
jns 0x140004aec
jmp 0x1400051cb
cmp byte [rsi], 0x7d
je 0x1400051bb
mov eax, 1
mov dword [rsp + 0x70], eax
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004b35
test ebx, ebx
je 0x140004c0b
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
cmp dword [rsp + 0x74], 0
je 0x140004c0b
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov rcx, rsi
mov al, byte [rsi]
jmp 0x140004b7c
cmp al, 0x5c
je 0x140004b82
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004b6d
jmp 0x140004b8b
test rcx, rcx
jne 0x140005131
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004bd1
add rbx, 8
lea rax, str.RegOpenKeyTransactedA
cmp rbx, rax
jl 0x140004b92
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140003564
cmp dword [rsp + 0x60], 0
je 0x140004c0b
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140003490
mov ebx, eax
test eax, eax
js 0x1400051bb
jmp 0x140004e2f
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004c3a
and dword [rsp + 0x70], eax
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
lea rdx, [0x140035b94]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004d58
lea rdx, [rbp + 0xd0]
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
cmp byte [rsi], 0x3d
jne 0x140005166
cmp dword [rsp + 0x74], 0
je 0x140004cce
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov r9, rsi
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.140004548
mov ebx, eax
test eax, eax
js 0x140005149
jmp 0x140004e2f
cmp dword [rbp + 0x1130], 0
jne 0x140004d3c
cmp dword [rsp + 0x70], 0
je 0x140004d3c
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.140001200
test eax, eax
jne 0x14000514b
lea rdx, [rbp + 0xd0]
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140004d2e
cmp eax, 2
jne 0x14000514b
test rbx, rbx
je 0x140004d3c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140003490
mov ebx, eax
test eax, eax
js 0x1400051bb
jmp 0x140004aec
mov rcx, rsi
mov al, byte [rsi]
jmp 0x140004d6e
cmp al, 0x5c
je 0x140004d74
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004d5f
jmp 0x140004d7d
test rcx, rcx
jne 0x140005168
cmp dword [rsp + 0x74], 0
je 0x140004e84
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rbp - 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140001200
xor edi, edi
test eax, eax
je 0x140004df0
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140001200
test eax, eax
je 0x140004df0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140002f6c
test eax, eax
jne 0x14000516a
mov rdx, rsi
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x14000517e
cmp byte [rsi], 0x3d
jne 0x140004e2b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.140004548
mov ebx, eax
test eax, eax
js 0x14000517e
mov rdi, qword [rbp - 0x68]
cmp byte [rsi], 0x7b
jne 0x140004aec
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 1
cmp eax, ecx
jne 0x140004aec
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x74]
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140004a7c
mov ebx, eax
test eax, eax
js 0x1400051bb
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
jmp 0x140004d49
mov ebx, dword [rbp + 0x1130]
test ebx, ebx
jne 0x140004eaa
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.140001200
mov rdi, qword [rbp - 0x68]
jmp 0x140004eaf
mov eax, 2
mov dword [rsp + 0x60], eax
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [rbp + 0x1130], ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14001f5a8
test eax, eax
je 0x140004f00
cmp eax, 0xc
je 0x14000519a
cmp eax, 0x16
je 0x14000518f
cmp eax, 0x22
je 0x14000518f
cmp eax, 0x50
jne 0x140005184
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140003490
mov ebx, eax
test eax, eax
js 0x1400051bb
cmp byte [rsi], 0x7b
jne 0x140004f8c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 1
cmp eax, ecx
jne 0x140004f8c
mov eax, dword [rbp + 0x1130]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140004a7c
mov ebx, eax
test eax, eax
jns 0x140004f75
cmp dword [rbp + 0x1130], 0
je 0x1400051bb
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x1400051bb
mov ecx, dword [rbp - 0x50]
mov dword [rbp + 0x1130], ecx
mov eax, dword [rsp + 0x60]
cmp eax, 2
je 0x140004aec
test eax, eax
je 0x140004fb3
test ecx, ecx
je 0x1400051a5
jmp 0x140004aec
test ecx, ecx
je 0x140005070
and dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140005070
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x140005070
lea rax, str.AppID
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004aec
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, str.RegOpenKeyTransactedA
cmp rax, rcx
jl 0x140005020
cmp dword [rsp + 0x70], 0
je 0x140004aec
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140003564
mov rdi, qword [rbp - 0x68]
jmp 0x140004aec
and dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400050c5
and dword [rsp + 0x60], 0
jmp 0x1400050d2
xor ecx, ecx
cmp dword [rsp + 0x60], ecx
seta cl
mov dword [rsp + 0x60], ecx
xor eax, eax
test rdi, rdi
je 0x1400050e8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rbp - 0x68], rdi
and dword [rbp - 0x60], 0
test eax, eax
jne 0x1400051b0
cmp dword [rsp + 0x70], eax
je 0x140004aec
cmp dword [rsp + 0x60], eax
jne 0x140004aec
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140002ed4
test eax, eax
jne 0x1400051a5
jmp 0x140004aec
test rdi, rdi
je 0x14000513f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1400051cb
jmp 0x1400051bb
mov ecx, eax
call fcn.140002c6c
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400051bb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400051bb
jmp 0x140005131
jmp 0x140005131
mov ecx, eax
call fcn.140002c6c
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400051c9
jmp 0x1400051c3
mov rdi, qword [rbp - 0x68]
jmp 0x1400051bb
mov ecx, 0x80004005
call entry0
int3
mov ecx, 0x80070057
call entry0
int3
mov ecx, 0x8007000e
call entry0
int3
mov ecx, eax
call fcn.140002c6c
mov ebx, eax
jmp 0x1400051bb
mov ecx, eax
call fcn.140002c6c
mov ebx, eax
jmp 0x1400051bb
test rdi, rdi
je 0x1400051c9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.14001eba0
add rsp, 0x11e8
pop rdi
pop rsi
pop rbx
pop rbp
ret