Function at 0x1800139ac
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x22f8
call fcn.1800f12f0
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x22e0], rax
mov dword [rsp + 0x74], r9d
mov qword [rsp + 0x88], r8
mov rbp, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov rbx, rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x80], ecx
mov ecx, dword [rsp + 0x2340]
mov dword [rsp + 0xa0], ecx
mov rcx, rax
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jge 0x180013a28
jmp 0x180014324
cmp word [rbp], 0x7d
je 0x180014314
mov eax, 1
mov dword [rsp + 0x70], eax
lea rdx, [0x18010d778]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
mov esi, edi
cmp eax, edi
sete sil
lea rdx, str.ForceRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x180013a72
cmp esi, edi
je 0x180013b85
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
cmp dword [rsp + 0x74], edx
je 0x180013b83
mov qword [rsp + 0x90], rdx
mov dword [rsp + 0x98], edx
mov rcx, rbp
movzx eax, word [rbp]
cmp ax, dx
je 0x180013ad4
cmp ax, 0x5c
je 0x180013acb
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
xor edx, edx
cmp ax, dx
jne 0x180013ab0
jmp 0x180013ad4
cmp rcx, rdx
jne 0x180014207
lea rdi, str.AppID
mov rdx, qword [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180013b35
add rdi, 8
lea rax, str.REGISTRY
cmp rdi, rax
jl 0x180013adb
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
xor edi, edi
mov dword [rsp + 0x98], edi
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.1800136b8
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x98], edi
jmp 0x180013b37
xor edi, edi
cmp esi, edi
je 0x180013b7a
mov rdx, rbp
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
mov rdx, rbp
mov rcx, rsi
call fcn.180013614
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
mov dword [rsp + 0x98], edx
jmp 0x180013eab
mov dword [rsp + 0x98], edi
jmp 0x180013b85
xor edi, edi
lea rdx, str.NoRemove
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
jne 0x180013bbb
mov dword [rsp + 0x70], edi
mov rdx, rbp
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
jmp 0x180013bc2
mov rsi, qword [rsp + 0x68]
jmp 0x180013bc4
xor edi, edi
lea rdx, [0x18010d7b8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
jne 0x180013d11
lea rdx, [rsp + 0x2e0]
mov rcx, rsi
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
mov rdx, rbp
mov rcx, rsi
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
cmp word [rbp], 0x3d
jne 0x180014268
cmp dword [rsp + 0x74], edx
je 0x180013c79
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], edx
mov r9, rbp
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0xa8]
mov rcx, rsi
call fcn.180013160
mov edi, eax
xor edx, edx
mov qword [rsp + 0xa8], rdx
mov dword [rsp + 0xb0], edx
cmp eax, edx
jl 0x18001421f
mov dword [rsp + 0xb0], edx
jmp 0x180013eab
cmp dword [rsp + 0x2340], edx
jne 0x180013cf5
cmp dword [rsp + 0x70], edx
je 0x180013cf5
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x180014258
mov rsi, qword [rsp + 0x60]
lea rdx, [rsp + 0x2e0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x180013cdb
cmp eax, 2
jne 0x180014234
cmp rsi, rdi
je 0x180013cf0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
jmp 0x180013cf5
mov rsi, qword [rsp + 0x68]
mov rdx, rbp
mov rcx, rsi
call fcn.180013614
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
jmp 0x1800141f2
mov rcx, rbp
movzx eax, word [rbp]
cmp ax, di
je 0x180013d3f
cmp ax, 0x5c
je 0x180013d36
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
cmp ax, di
jne 0x180013d1d
jmp 0x180013d3f
cmp rcx, rdi
jne 0x180014280
cmp dword [rsp + 0x74], edi
je 0x180013f0d
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x180013da6
mov eax, ecx
cmp rbx, rcx
je 0x180013d8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [rsp + 0x80], ecx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
cmp eax, ecx
je 0x180013e69
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x180013df7
mov eax, ecx
cmp rbx, rcx
je 0x180013de2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [rsp + 0x80], ecx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
cmp eax, ecx
je 0x180013e69
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edi, edi
cmp eax, edi
jne 0x18001429f
mov eax, edi
cmp rbx, rdi
je 0x180013e50
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x80], edi
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
cmp eax, edi
jne 0x18001429f
mov rdx, rbp
mov rcx, rsi
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
cmp word [rbp], 0x3d
jne 0x180013eab
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.180013160
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014298
mov rbx, qword [rsp + 0x78]
cmp word [rbp], 0x7b
jne 0x1800141f2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x1800141f0
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x74]
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.1800139ac
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
mov rdx, rbp
mov rcx, rsi
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
jmp 0x1800141f2
mov edi, dword [rsp + 0x2340]
xor eax, eax
cmp edi, eax
jne 0x180013f72
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x180013f77
mov esi, eax
cmp rbx, rax
je 0x180013f5f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor eax, eax
mov dword [rsp + 0x80], eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
jmp 0x180013f77
mov esi, 2
cmp esi, eax
mov eax, 1
cmovne edi, eax
mov dword [rsp + 0x2340], edi
or r9, 0xffffffffffffffff
mov r8, rbp
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.1800d2dec
xor ecx, ecx
cmp eax, ecx
je 0x180013fcb
cmp eax, 0xc
je 0x1800142d2
cmp eax, 0x16
je 0x1800142c7
cmp eax, 0x22
je 0x1800142c7
cmp eax, 0x50
jne 0x1800142bc
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call fcn.180013614
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
cmp word [rbp], 0x7b
jne 0x180014066
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x180014064
mov eax, dword [rsp + 0x2340]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call fcn.1800139ac
mov edi, eax
xor edx, edx
cmp eax, edx
jge 0x180014049
cmp dword [rsp + 0x2340], edx
je 0x180014314
mov rdx, rbp
mov rcx, qword [rsp + 0x68]
call fcn.180013828
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x180014314
jmp 0x180014066
xor edx, edx
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x2340], eax
cmp esi, 2
je 0x1800141f2
cmp esi, edx
je 0x18001408e
cmp eax, edx
je 0x1800142dd
jmp 0x1800141f2
cmp eax, edx
je 0x180014145
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
cmp eax, edx
jne 0x180014145
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
cmp eax, edx
je 0x180014145
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
cmp eax, edx
je 0x1800141f2
add rsi, 8
lea rax, str.REGISTRY
cmp rsi, rax
jl 0x1800140f2
cmp dword [rsp + 0x70], edx
je 0x1800141f2
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.1800136b8
mov rbx, qword [rsp + 0x78]
xor edx, edx
jmp 0x1800141f2
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
cmp eax, edx
je 0x180014191
mov esi, edx
jmp 0x18001419b
mov esi, edx
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
cmp rbx, rdx
je 0x1800141b5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov rbx, rdx
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x80], edx
cmp eax, edx
jne 0x1800142f7
cmp dword [rsp + 0x70], edx
je 0x1800141f2
cmp esi, edx
jne 0x1800141f2
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edx, edx
cmp eax, edx
jne 0x1800142ea
jmp 0x1800141f2
xor edx, edx
cmp word [rbp], 0x7d
je 0x180014314
mov eax, 1
jmp 0x180013a38
cmp rbx, rdx
je 0x180014215
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180014324
cmp rbx, rdx
je 0x18001422d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x180014324
mov ecx, eax
call fcn.180013818
mov edi, eax
xor edx, edx
cmp rsi, rdx
je 0x180014314
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
jmp 0x180014314
mov ecx, eax
call fcn.180013818
mov edi, eax
xor edx, edx
jmp 0x180014314
cmp rbx, rdx
je 0x180014276
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180014324
cmp rbx, rdi
je 0x18001428e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180014324
mov rbx, qword [rsp + 0x78]
jmp 0x180014314
mov ecx, eax
call fcn.180013818
mov edi, eax
xor eax, eax
cmp rbx, rax
je 0x1800142b8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x180014324
mov ecx, 0x80004005
call fcn.18000b528
int3
mov ecx, 0x80070057
call fcn.18000b528
int3
mov ecx, 0x8007000e
call fcn.18000b528
int3
mov ecx, esi
call fcn.180013818
mov edi, eax
xor edx, edx
jmp 0x180014314
mov ecx, eax
call fcn.180013818
mov edi, eax
xor edx, edx
jmp 0x180014314
mov ecx, eax
call fcn.180013818
mov edi, eax
xor eax, eax
cmp rbx, rax
je 0x180014310
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x180014324
cmp rbx, rdx
je 0x180014322
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x22e0]
xor rcx, rsp
call fcn.1800d12b0
add rsp, 0x22f8
pop rdi
pop rsi
pop rbp
pop rbx
ret