Function at 0x140005c30
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.14000b340
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140013010]
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.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
cmp word [rsi], 0x7d
je 0x140006403
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 0x140005ce7
test edi, edi
je 0x140005dca
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
cmp dword [rsp + 0x48], 0
je 0x140005dca
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 0x140005d47
cmp ax, 0x5c
je 0x140005d3e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005d25
jmp 0x140005d47
test rcx, rcx
jne 0x1400063da
lea rbx, [0x14000e980]
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005d9c
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x140005d50
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.1400056a0
mov qword [rbp - 0x80], 0
test edi, edi
je 0x140005dca
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
mov rdx, rsi
mov rcx, rdi
call fcn.140005510
jmp 0x1400060a9
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005dfd
xor edi, edi
mov dword [rsp + 0x4c], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
jmp 0x140005e01
mov edi, dword [rsp + 0x4c]
lea rdx, [0x14000e850]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005f1c
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
cmp word [rsi], 0x3d
jne 0x1400063da
cmp dword [rsp + 0x48], 0
je 0x140005e9e
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.140004ff0
mov ebx, eax
mov qword [rbp - 0x68], 0
jmp 0x1400060ab
cmp dword [rbp + 0x2220], 0
jne 0x140005f0a
test edi, edi
je 0x140005f0a
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 0x1400063fa
lea rdx, [rbp + 0x1c0]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1400063c1
test rdi, rdi
je 0x140005f0a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005510
jmp 0x140005c96
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005f49
cmp ax, 0x5c
je 0x140005f40
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005f27
jmp 0x140005f49
test rcx, rcx
jne 0x1400063da
cmp dword [rsp + 0x48], 0
je 0x140006107
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x140005f8e
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.1400055d0
jmp 0x140005fad
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 0x140005fdd
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140005fc1
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 0x140006076
jmp 0x140005fe2
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140006017
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.1400055d0
jmp 0x140006036
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 0x14000605e
test rdi, rdi
je 0x140006048
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 0x140006076
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140004d10
test eax, eax
jne 0x1400063fa
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
cmp word [rsi], 0x3d
jne 0x1400060b3
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140004ff0
mov ebx, eax
test eax, eax
js 0x140006403
cmp word [rsi], 0x7b
jne 0x140005ca0
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400060c1
cmp rax, 1
jne 0x140005ca0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rdi
call fcn.140005c30
mov ebx, eax
test eax, eax
js 0x140006403
mov rdx, rsi
mov rcx, rdi
jmp 0x140005c91
mov ebx, dword [rbp + 0x2220]
test ebx, ebx
jne 0x14000619c
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14000614c
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.1400055d0
jmp 0x14000616d
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 0x1400061a1
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140006188
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 0x1400061a1
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 0x1400061ef
cmp eax, 0xc
je 0x1400063ef
cmp eax, 0x16
je 0x1400063e8
cmp eax, 0x22
je 0x1400063e8
cmp eax, 0x50
jne 0x1400063e1
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005510
mov ebx, eax
test eax, eax
js 0x140006403
cmp word [rsi], 0x7b
jne 0x140006285
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140006230
cmp rax, 1
jne 0x140006285
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.140005c30
mov ebx, eax
test eax, eax
jns 0x14000626e
cmp dword [rsp + 0x60], 0
je 0x140006403
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
mov ebx, eax
test eax, eax
js 0x140006403
cmp edi, 2
je 0x140005ca0
test edi, edi
je 0x1400062a4
cmp dword [rbp + 0x2220], 0
je 0x1400063f6
jmp 0x140005ca0
cmp dword [rbp + 0x2220], 0
je 0x140006306
mov rdx, qword [rsp + 0x68]
call fcn.140005830
test eax, eax
je 0x140006306
lea rdi, [0x14000e980]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005ca0
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x1400062c2
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140005ca0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.1400056a0
jmp 0x140005ca0
mov rdx, qword [rsp + 0x68]
call fcn.140005830
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000632b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], 0
test eax, eax
jne 0x1400063fa
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140005ca0
test edi, edi
jne 0x140005ca0
cmp byte [0x140013f48], dil
jne 0x140006393
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006383
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013f40], rax
jmp 0x14000638a
mov rax, qword [0x140013f40]
mov byte [0x140013f48], 1
jmp 0x14000639a
mov rax, qword [0x140013f40]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x50]
test rax, rax
je 0x1400063b2
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1400063b8
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400063fa
jmp 0x140005ca0
mov ecx, eax
call fcn.140005a50
mov ebx, eax
test rdi, rdi
je 0x140006403
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006403
mov ebx, 0x80020009
jmp 0x140006403
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 0x1400063fc
mov ecx, eax
call fcn.140005a50
mov ebx, eax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140006416
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1400092d0
add rsp, 0x22d8
pop rdi
pop rsi
pop rbx
pop rbp
ret