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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.14008df40
sub rsp, rax
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rax, qword [0x1400f80b8]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x78], r9d
mov qword [rbp - 0x80], r8
mov rsi, rdx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
cmp word [rsi], 0x7d
je 0x14002adfa
mov ecx, 1
mov dword [rsp + 0x7c], ecx
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002a534
test edi, edi
je 0x14002a63e
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
cmp dword [rsp + 0x78], 0
je 0x14002a63e
xor edx, edx
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x70], edx
mov qword [rbp - 0x68], rdx
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14002a592
nop
cmp ax, 0x5c
je 0x14002a589
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14002a570
jmp 0x14002a592
test rcx, rcx
jne 0x14002ad64
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002a5fa
add rbx, 8
lea rax, str.HKCR
cmp rbx, rax
jl 0x14002a5a0
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.140028af0
mov qword [rbp - 0x78], 0
mov dword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
test edi, edi
je 0x14002a637
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002ad6d
mov rdx, rsi
mov rcx, rdi
call fcn.140029e00
mov ebx, eax
test eax, eax
js 0x14002ad6d
xor ecx, ecx
mov dword [rbp - 0x70], ecx
jmp 0x14002aa14
mov dword [rbp - 0x70], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14002a671
xor edi, edi
mov dword [rsp + 0x7c], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
jmp 0x14002a675
mov edi, dword [rsp + 0x7c]
lea rdx, [0x1400d1158]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14002a7db
lea rdx, [rbp + 0x210]
mov rcx, qword [rsp + 0x58]
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
cmp word [rsi], 0x3d
jne 0x14002adb3
cmp dword [rsp + 0x78], 0
je 0x14002a726
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], rcx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], rcx
mov r9, rsi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x58]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1400298d0
mov ebx, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], rcx
mov dword [rbp - 0x50], ecx
test eax, eax
js 0x14002adfa
jmp 0x14002aa14
cmp dword [rbp + 0x2270], 0
jne 0x14002a7c9
test edi, edi
je 0x14002a7c9
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002ada1
mov dword [rbp - 0x38], eax
mov rdi, qword [rsp + 0x50]
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x38], eax
lea rdx, [rbp + 0x210]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14002ad79
test rdi, rdi
je 0x14002a7c2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x38], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029e00
jmp 0x14002a4e3
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14002a808
cmp ax, 0x5c
je 0x14002a7ff
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14002a7e6
jmp 0x14002a808
test rcx, rcx
jne 0x14002adb3
cmp dword [rsp + 0x78], 0
je 0x14002aa64
xor edi, edi
mov qword [rsp + 0x50], rdi
mov rax, qword [rsp + 0x70]
mov rbx, qword [rbp - 0x80]
test rax, rax
je 0x14002a84a
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140028540
jmp 0x14002a869
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002a8a4
mov eax, edi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002a884
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0
test eax, eax
je 0x14002a9d5
jmp 0x14002a8a9
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14002a8de
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140028540
jmp 0x14002a8fd
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x14002a934
mov eax, ecx
test rdi, rdi
je 0x14002a91a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], ecx
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x14002a9d5
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14002a966
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140028610
jmp 0x14002a99c
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
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, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002adf1
xor ebx, ebx
mov eax, ebx
test rdi, rdi
je 0x14002a9bb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
test eax, eax
jne 0x14002adf1
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
cmp word [rsi], 0x3d
jne 0x14002aa12
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400298d0
mov ebx, eax
test eax, eax
js 0x14002adfa
xor ecx, ecx
cmp word [rsi], 0x7b
jne 0x14002a4ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x14002aa22
cmp rax, 1
jne 0x14002a4ed
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.14002a480
mov ebx, eax
test eax, eax
js 0x14002adfa
mov rdx, rsi
mov rcx, rdi
jmp 0x14002a4de
mov ebx, dword [rbp + 0x2270]
test ebx, ebx
jne 0x14002ab02
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14002aaa8
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x80]
mov rcx, rax
call fcn.140028540
jmp 0x14002aac8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14002ab07
xor ecx, ecx
mov edi, ecx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14002aaee
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], ecx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], ecx
jmp 0x14002ab07
mov edi, 2
mov eax, ebx
test edi, edi
mov ecx, 1
cmovne eax, ecx
mov dword [rsp + 0x50], eax
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp]
call fcn.14009c0b4
test eax, eax
je 0x14002ab54
cmp eax, 0xc
je 0x14002add0
cmp eax, 0x16
je 0x14002adc5
cmp eax, 0x22
je 0x14002adc5
cmp eax, 0x50
jne 0x14002adba
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029e00
mov ebx, eax
test eax, eax
js 0x14002adfa
cmp word [rsi], 0x7b
jne 0x14002abe5
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x14002ab90
cmp rax, 1
jne 0x14002abe5
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14002a480
mov ebx, eax
test eax, eax
jns 0x14002abce
cmp dword [rsp + 0x50], 0
je 0x14002adfa
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.140029700
mov ebx, eax
test eax, eax
js 0x14002adfa
cmp edi, 2
je 0x14002a4ed
test edi, edi
je 0x14002ac04
cmp dword [rbp + 0x2270], 0
je 0x14002addb
jmp 0x14002a4ed
cmp dword [rbp + 0x2270], 0
je 0x14002ac66
mov rdx, qword [rsp + 0x60]
call fcn.140029d90
test eax, eax
je 0x14002ac66
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002a4ed
add rdi, 8
lea rax, str.HKCR
cmp rdi, rax
jl 0x14002ac22
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14002a4ed
lea rdx, [rbp]
lea rcx, [rsp + 0x60]
call fcn.140028af0
jmp 0x14002a4ed
mov rdx, qword [rsp + 0x60]
call fcn.140029d90
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002ac8b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 0
test eax, eax
jne 0x14002adf1
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14002a4ed
test edi, edi
jne 0x14002a4ed
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], 0
mov rcx, qword [rbp - 0x80]
mov qword [rbp - 0x28], rcx
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], 0
cmp byte [0x1400fcc10], dil
jne 0x14002ad1d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ad09
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fcc08], rax
jmp 0x14002ad10
mov rax, qword [0x1400fcc08]
mov byte [0x1400fcc10], 1
mov rcx, qword [rbp - 0x80]
jmp 0x14002ad24
mov rax, qword [0x1400fcc08]
lea rdx, [rbp]
test rax, rax
je 0x14002ad37
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x14002ad3d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
test eax, eax
jne 0x14002addf
mov dword [rbp - 0x20], eax
jmp 0x14002a4ed
mov dword [rbp - 0x70], 0
jmp 0x14002adb3
mov dword [rbp - 0x70], 0
jmp 0x14002adfa
mov ecx, eax
call fcn.140028530
mov ebx, eax
test rdi, rdi
je 0x14002ad98
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x38], 0
jmp 0x14002adfa
mov ecx, eax
call fcn.140028530
mov ebx, eax
mov dword [rbp - 0x38], 0
jmp 0x14002adfa
mov ebx, 0x80020009
jmp 0x14002adfa
mov ecx, 0x80004005
call fcn.14001cda0
int3
mov ecx, 0x80070057
call fcn.14001cda0
int3
mov ecx, 0x8007000e
call fcn.14001cda0
int3
mov ecx, edi
jmp 0x14002adf3
mov ecx, eax
call fcn.140028530
mov ebx, eax
mov dword [rbp - 0x20], 0
jmp 0x14002adfa
mov ecx, eax
call fcn.140028530
mov ebx, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14002ae16
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.14008d330
add rsp, 0x2328
pop rdi
pop rsi
pop rbx
pop rbp
ret