Function at 0x140005c20
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.14000b320
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x50], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x78], rcx
mov rcx, rax
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp word [rsi], 0x7d
je 0x1400063f3
mov ecx, 1
mov dword [rsp + 0x4c], 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 0x140005cd7
test edi, edi
je 0x140005dba
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp dword [rsp + 0x48], 0
je 0x140005dba
xor eax, eax
mov qword [rbp - 0x78], rax
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 0x140005d37
cmp ax, 0x5c
je 0x140005d2e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005d15
jmp 0x140005d37
test rcx, rcx
jne 0x1400063ca
lea rbx, [0x14000e930]
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005d8c
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x140005d40
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.140005690
mov qword [rbp - 0x80], 0
test edi, edi
je 0x140005dba
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
mov rdx, rsi
mov rcx, rdi
call fcn.140005500
jmp 0x140006099
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005ded
xor edi, edi
mov dword [rsp + 0x4c], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
jmp 0x140005df1
mov edi, dword [rsp + 0x4c]
lea rdx, [0x14000e800]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005f0c
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp word [rsi], 0x3d
jne 0x1400063ca
cmp dword [rsp + 0x48], 0
je 0x140005e8e
xor eax, eax
mov qword [rbp - 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x68], rax
xor eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov r9, rsi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x68]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140004fe0
mov ebx, eax
mov qword [rbp - 0x68], 0
jmp 0x14000609b
cmp dword [rbp + 0x2220], 0
jne 0x140005efa
test edi, edi
je 0x140005efa
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
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 0x1400063ea
lea rdx, [rbp + 0x1c0]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1400063b1
test rdi, rdi
je 0x140005efa
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005500
jmp 0x140005c86
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005f39
cmp ax, 0x5c
je 0x140005f30
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005f17
jmp 0x140005f39
test rcx, rcx
jne 0x1400063ca
cmp dword [rsp + 0x48], 0
je 0x1400060f7
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x140005f7e
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400055c0
jmp 0x140005f9d
lea rax, [rsp + 0x60]
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 0x140005fcd
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140005fb1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], 0
test eax, eax
je 0x140006066
jmp 0x140005fd2
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140006007
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400055c0
jmp 0x140006026
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000604e
test rdi, rdi
je 0x140006038
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], 0
test eax, eax
je 0x140006066
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140004d00
test eax, eax
jne 0x1400063ea
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp word [rsi], 0x3d
jne 0x1400060a3
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140004fe0
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp word [rsi], 0x7b
jne 0x140005c90
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400060b1
cmp rax, 1
jne 0x140005c90
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rdi
call fcn.140005c20
mov ebx, eax
test eax, eax
js 0x1400063f3
mov rdx, rsi
mov rcx, rdi
jmp 0x140005c81
mov ebx, dword [rbp + 0x2220]
test ebx, ebx
jne 0x14000618c
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14000613c
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.1400055c0
jmp 0x14000615d
lea rax, [rsp + 0x60]
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 0x140006191
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140006178
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
jmp 0x140006191
mov edi, 2
mov eax, ebx
test edi, edi
mov ecx, 1
cmovne eax, ecx
mov dword [rsp + 0x60], eax
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x1400061df
cmp eax, 0xc
je 0x1400063df
cmp eax, 0x16
je 0x1400063d8
cmp eax, 0x22
je 0x1400063d8
cmp eax, 0x50
jne 0x1400063d1
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005500
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp word [rsi], 0x7b
jne 0x140006275
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140006220
cmp rax, 1
jne 0x140006275
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005c20
mov ebx, eax
test eax, eax
jns 0x14000625e
cmp dword [rsp + 0x60], 0
je 0x1400063f3
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov ebx, eax
test eax, eax
js 0x1400063f3
cmp edi, 2
je 0x140005c90
test edi, edi
je 0x140006294
cmp dword [rbp + 0x2220], 0
je 0x1400063e6
jmp 0x140005c90
cmp dword [rbp + 0x2220], 0
je 0x1400062f6
mov rdx, qword [rsp + 0x68]
call fcn.140005820
test eax, eax
je 0x1400062f6
lea rdi, [0x14000e930]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005c90
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x1400062b2
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140005c90
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140005690
jmp 0x140005c90
mov rdx, qword [rsp + 0x68]
call fcn.140005820
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000631b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], 0
test eax, eax
jne 0x1400063ea
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140005c90
test edi, edi
jne 0x140005c90
cmp byte [0x140013f48], dil
jne 0x140006383
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006373
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013f40], rax
jmp 0x14000637a
mov rax, qword [0x140013f40]
mov byte [0x140013f48], 1
jmp 0x14000638a
mov rax, qword [0x140013f40]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x50]
test rax, rax
je 0x1400063a2
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1400063a8
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400063ea
jmp 0x140005c90
mov ecx, eax
call fcn.140005a40
mov ebx, eax
test rdi, rdi
je 0x1400063f3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400063f3
mov ebx, 0x80020009
jmp 0x1400063f3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
mov ecx, edi
jmp 0x1400063ec
mov ecx, eax
call fcn.140005a40
mov ebx, eax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140006406
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1400092e0
add rsp, 0x22d8
pop rdi
pop rsi
pop rbx
pop rbp
ret