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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.140010710
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x50], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], ecx
mov qword [rsp + 0x70], rcx
mov ecx, dword [rbp + 0x2220]
mov dword [rbp - 0x68], ecx
mov rcx, rax
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
cmp word [rsi], 0x7d
je 0x14000c380
mov dword [rsp + 0x48], 1
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 0x14000bc49
test edi, edi
je 0x14000bd3b
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
cmp dword [rsp + 0x58], 0
je 0x14000bd3b
xor eax, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14000bca5
cmp ax, 0x5c
je 0x14000bc9c
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000bc83
jmp 0x14000bca5
test rcx, rcx
jne 0x14000c32f
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 0x14000bd0b
add rbx, 8
lea rax, [0x140013330]
cmp rbx, rax
jl 0x14000bcb0
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0
mov qword [rbp - 0x70], 0
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14000a300
mov qword [rbp - 0x80], 0
mov dword [rbp - 0x78], 0
mov qword [rbp - 0x70], 0
test edi, edi
je 0x14000bd3b
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c331
mov rdx, rsi
mov rcx, rdi
call fcn.14000b520
mov ebx, eax
jmp 0x14000c020
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000bd6e
xor edi, edi
mov dword [rsp + 0x48], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
jmp 0x14000bd72
mov edi, dword [rsp + 0x48]
lea rdx, [0x140011900]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000be8f
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rsp + 0x40]
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
cmp word [rsi], 0x3d
jne 0x14000c357
cmp dword [rsp + 0x58], 0
je 0x14000be01
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x80], rax
xor eax, eax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov r9, rsi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x80]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14000af80
mov ebx, eax
jmp 0x14000c020
cmp dword [rbp + 0x2220], 0
jne 0x14000be7d
test edi, edi
je 0x14000be7d
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov dword [rbp - 0x78], ebx
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c34c
mov rdi, qword [rsp + 0x78]
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x78], ebx
lea rdx, [rbp + 0x1c0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000c333
test rdi, rdi
je 0x14000be7d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000b520
jmp 0x14000bbf9
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14000bec2
nop word [rax + rax]
cmp ax, 0x5c
je 0x14000beb9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000bea0
jmp 0x14000bec2
test rcx, rcx
jne 0x14000c357
cmp dword [rsp + 0x58], 0
je 0x14000c07c
mov qword [rsp + 0x48], 0
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x48]
test rbx, rbx
je 0x14000bf04
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140009bc0
jmp 0x14000bf20
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bf50
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000bf34
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0
test eax, eax
je 0x14000bfeb
jmp 0x14000bf55
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
test rbx, rbx
je 0x14000bf8c
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140009bc0
mov rbx, qword [rsp + 0x50]
jmp 0x14000bfab
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bfd3
test rdi, rdi
je 0x14000bfbd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0
test eax, eax
je 0x14000bfeb
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000a250
test eax, eax
jne 0x14000c377
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
cmp word [rsi], 0x3d
jne 0x14000c028
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14000af80
mov ebx, eax
test eax, eax
js 0x14000c380
cmp word [rsi], 0x7b
jne 0x14000bc03
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000c036
cmp rax, 1
jne 0x14000bc03
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.14000bb90
mov ebx, eax
test eax, eax
js 0x14000c380
mov rdx, rsi
mov rcx, rdi
jmp 0x14000bbf4
cmp dword [rbp + 0x2220], 0
jne 0x14000c110
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000c0be
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.140009bc0
jmp 0x14000c0df
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14000c115
mov edi, ebx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14000c0fc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], ebx
test edi, edi
je 0x14000c11f
jmp 0x14000c115
mov edi, 2
mov dword [rbp + 0x2220], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
test eax, eax
je 0x14000c15d
cmp eax, 0xc
je 0x14000c36c
cmp eax, 0x16
je 0x14000c365
cmp eax, 0x22
je 0x14000c365
cmp eax, 0x50
jne 0x14000c35e
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000b520
mov ebx, eax
test eax, eax
js 0x14000c380
cmp word [rsi], 0x7b
jne 0x14000c1ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x14000c195
cmp rax, 1
jne 0x14000c1ee
mov eax, dword [rbp + 0x2220]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000bb90
mov ebx, eax
test eax, eax
jns 0x14000c1d7
cmp dword [rbp + 0x2220], 0
je 0x14000c380
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14000adc0
mov ebx, eax
test eax, eax
js 0x14000c380
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x2220], eax
cmp edi, 2
je 0x14000bc03
test edi, edi
je 0x14000c211
test eax, eax
je 0x14000c373
jmp 0x14000bc03
test eax, eax
je 0x14000c274
mov rdx, qword [rsp + 0x60]
call fcn.14000b4b0
test eax, eax
je 0x14000c274
lea rdi, str.AppID
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000bc03
add rdi, 8
lea rax, [0x140013330]
cmp rdi, rax
jl 0x14000c230
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14000bc03
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000a300
jmp 0x14000bc03
mov rdx, qword [rsp + 0x60]
call fcn.14000b4b0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000c299
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 0
test eax, eax
jne 0x14000c377
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14000bc03
test edi, edi
jne 0x14000bc03
cmp byte [0x14001bf08], dil
jne 0x14000c301
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c2f1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001bf10], rax
jmp 0x14000c2f8
mov rax, qword [0x14001bf10]
mov byte [0x14001bf08], 1
jmp 0x14000c308
mov rax, qword [0x14001bf10]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x50]
test rax, rax
je 0x14000c320
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x14000c326
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14000c377
jmp 0x14000bc03
jmp 0x14000c357
jmp 0x14000c380
mov ecx, eax
call fcn.140009bb0
mov ebx, eax
test rdi, rdi
je 0x14000c380
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c380
mov ecx, eax
call fcn.140009bb0
mov ebx, eax
jmp 0x14000c380
mov ebx, 0x80020009
jmp 0x14000c380
call qword [sym.imp.mfc120u.dll_Ordinal_2302]
int3
call qword [sym.imp.mfc120u.dll_Ordinal_2302]
int3
call qword [sym.imp.mfc120u.dll_Ordinal_2304]
int3
mov ecx, edi
jmp 0x14000c379
mov ecx, eax
call fcn.140009bb0
mov ebx, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14000c393
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.14000fad0
add rsp, 0x22d8
pop rdi
pop rsi
pop rbx
pop rbp
ret