Function at 0x140003158
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.140037090
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x80], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov esi, ecx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.14000253c
test eax, eax
mov ebx, eax
js 0x140003871
cmp word [rdi], 0x7d
je 0x140003871
mov eax, 1
mov dword [rsp + 0x78], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000320d
test ebx, ebx
je 0x1400032d2
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003871
cmp dword [rsp + 0x70], edx
je 0x1400032d2
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140003256
cmp ax, 0x5c
je 0x14000325d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140003244
jmp 0x140003266
test rcx, rcx
jne 0x1400038b7
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400032a1
add rbx, 8
lea rax, [0x14003a520]
cmp rbx, rax
jl 0x14000326d
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140001be4
xor eax, eax
cmp dword [rsp + 0x60], eax
je 0x1400032d2
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
test eax, eax
js 0x140003871
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002c34
jmp 0x14000353a
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x140003303
mov dword [rsp + 0x78], ecx
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
test eax, eax
js 0x140003871
lea rdx, [0x14003c608]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x14000340f
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
test eax, eax
js 0x140003871
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003871
cmp word [rdi], 0x3d
jne 0x1400038b7
cmp dword [rsp + 0x70], edx
je 0x140003392
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.1400026f4
mov ebx, eax
xor edx, edx
jmp 0x14000353e
cmp dword [rbp + 0x2230], edx
jne 0x1400033fd
cmp dword [rsp + 0x78], edx
je 0x1400033fd
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003868
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
lea rdx, [rbp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000389c
test rbx, rbx
je 0x1400033fd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002c34
jmp 0x1400031b7
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000342b
cmp ax, 0x5c
je 0x140003432
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140003417
jmp 0x14000343b
test rcx, rcx
jne 0x1400038b7
cmp dword [rsp + 0x70], edx
je 0x14000359b
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140003492
mov eax, ecx
test rsi, rsi
je 0x140003485
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
je 0x140003503
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x1400034db
mov eax, ecx
test rsi, rsi
je 0x1400034ce
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
je 0x140003503
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140001b5c
test eax, eax
jne 0x1400038be
mov rsi, qword [rbp - 0x78]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003871
cmp word [rdi], 0x3d
jne 0x140003546
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.1400026f4
mov rsi, qword [rbp - 0x78]
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140003871
cmp word [rdi], 0x7b
jne 0x1400031c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140003554
mov ecx, 1
cmp rax, rcx
jne 0x1400031c1
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x70]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140003158
mov ebx, eax
test eax, eax
js 0x140003871
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
jmp 0x1400031b2
mov ebx, dword [rbp + 0x2230]
test ebx, ebx
jne 0x1400035f7
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x74], eax
xor edx, edx
test eax, eax
jne 0x140003600
mov eax, edx
mov dword [rsp + 0x74], edx
test rsi, rsi
je 0x1400035ec
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x74], eax
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
jmp 0x140003600
mov eax, 2
mov dword [rsp + 0x74], eax
mov ecx, ebx
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x60], ecx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
test eax, eax
je 0x14000364e
cmp eax, 0xc
je 0x1400038e1
cmp eax, 0x16
je 0x1400038d6
cmp eax, 0x22
je 0x1400038d6
cmp eax, 0x50
jne 0x1400038cb
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
test eax, eax
js 0x140003871
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002c34
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003871
cmp word [rdi], 0x7b
jne 0x1400036e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140003688
mov ecx, 1
cmp rax, rcx
jne 0x1400036e1
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140003158
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x1400036c8
cmp dword [rsp + 0x60], edx
je 0x140003871
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14000253c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003871
mov ecx, dword [rsp + 0x74]
cmp ecx, 2
je 0x1400031c1
test ecx, ecx
je 0x140003703
cmp dword [rbp + 0x2230], edx
je 0x14000386a
jmp 0x1400031c1
cmp dword [rbp + 0x2230], edx
je 0x1400037ba
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, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x1400037ba
cmp dword [rsp + 0x60], edx
jbe 0x1400037ba
lea rax, str.AppID
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x1400031c1
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, [0x14003a520]
cmp rax, rcx
jl 0x140003769
cmp dword [rsp + 0x78], edx
je 0x1400031c1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x78]
call fcn.140001be4
mov rsi, qword [rbp - 0x78]
jmp 0x1400031c1
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, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
je 0x140003808
mov dword [rsp + 0x60], edx
jmp 0x140003815
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
mov dword [rsp + 0x60], eax
test rsi, rsi
je 0x14000382f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rbp - 0x78], rdx
test eax, eax
jne 0x140003868
cmp dword [rsp + 0x78], edx
je 0x1400031c1
cmp dword [rsp + 0x60], edx
jne 0x1400031c1
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.140001aa4
test eax, eax
je 0x1400031c1
mov ecx, eax
call fcn.1400016d4
mov ebx, eax
test rsi, rsi
je 0x14000387f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.1400362c0
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400016d4
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140003871
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003871
mov ebx, 0x80020009
jmp 0x140003871
mov ecx, eax
call fcn.1400016d4
mov rsi, qword [rbp - 0x78]
jmp 0x14000386f
mov ecx, 0x80004005
call fcn.140001648
int3
mov ecx, 0x80070057
call fcn.140001648
int3
mov ecx, 0x8007000e
call fcn.140001648
int3