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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21b8]
mov eax, 0x22b8
call fcn.1400296b0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rbp + 0x21a0], rax
mov dword [rsp + 0x3c], r9d
mov qword [rsp + 0x40], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x30], rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov ecx, dword [rbp + 0x2200]
mov dword [rsp + 0x78], ecx
mov rcx, rax
call fcn.140004190
mov ebx, eax
test eax, eax
jns 0x140004f7f
jmp 0x140005612
mov ebx, eax
test eax, eax
js 0x1400055fd
cmp word [rsi], 0x7d
je 0x1400055fd
mov dword [rsp + 0x38], 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 0x140004fc5
test edi, edi
je 0x1400050a6
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
cmp dword [rsp + 0x3c], 0
je 0x1400050a6
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005024
cmp ax, 0x5c
je 0x14000501b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005002
jmp 0x140005024
test rcx, rcx
jne 0x140005553
lea rbx, [0x140044630]
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005078
add rbx, 8
lea rax, [0x140044690]
cmp rbx, rax
jl 0x140005030
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140003750
test edi, edi
je 0x1400050a6
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
mov rdx, rsi
mov rcx, rdi
call fcn.140004830
jmp 0x1400052b3
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400050d9
xor edi, edi
mov dword [rsp + 0x38], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
jmp 0x1400050dd
mov edi, dword [rsp + 0x38]
lea rdx, [0x1400431b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400051f7
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rsp + 0x30]
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
cmp word [rsi], 0x3d
jne 0x1400055a9
cmp dword [rsp + 0x3c], 0
je 0x140005178
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
xor eax, eax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], rax
mov r9, rsi
lea r8, [rbp + 0x1a0]
lea rdx, [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140004340
mov ebx, eax
test eax, eax
js 0x140005570
jmp 0x1400052bd
cmp dword [rbp + 0x2200], 0
jne 0x1400051e5
test edi, edi
je 0x1400051e5
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400035b0
test eax, eax
jne 0x14000558e
lea rdx, [rbp + 0x1a0]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1400051d7
cmp eax, 2
jne 0x140005575
test rdi, rdi
je 0x1400051e5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004830
jmp 0x140004f75
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005224
cmp ax, 0x5c
je 0x14000521b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005202
jmp 0x140005224
test rcx, rcx
jne 0x1400055ab
cmp dword [rsp + 0x3c], 0
je 0x140005310
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400035b0
test eax, eax
je 0x140005280
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400035b0
test eax, eax
je 0x140005280
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140003470
test eax, eax
jne 0x1400055ad
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
cmp word [rsi], 0x3d
jne 0x1400052bd
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140004340
test eax, eax
mov ebx, eax
js 0x1400055fd
cmp word [rsi], 0x7b
jne 0x140004f7f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140004f7f
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, rdi
call fcn.140004f00
mov ebx, eax
test eax, eax
js 0x1400055fd
mov rdx, rsi
mov rcx, rdi
call fcn.140004190
jmp 0x140004f75
cmp dword [rbp + 0x2200], 0
jne 0x140005339
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400035b0
mov edi, eax
test eax, eax
jne 0x14000533e
jmp 0x140005348
mov edi, 2
mov dword [rbp + 0x2200], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.140025e10
test eax, eax
je 0x140005385
cmp eax, 0xc
je 0x1400055d8
cmp eax, 0x16
je 0x1400055cd
cmp eax, 0x22
je 0x1400055cd
cmp eax, 0x50
jne 0x1400055c2
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004830
mov ebx, eax
test eax, eax
js 0x1400055fd
cmp word [rsi], 0x7b
jne 0x140005410
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140005410
mov eax, dword [rbp + 0x2200]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004f00
mov ebx, eax
test eax, eax
jns 0x1400053f9
cmp dword [rbp + 0x2200], 0
je 0x1400055fd
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140004190
mov ebx, eax
test eax, eax
js 0x1400055fd
mov eax, dword [rsp + 0x78]
mov dword [rbp + 0x2200], eax
cmp edi, 2
je 0x140004f7f
test edi, edi
je 0x140005434
test eax, eax
je 0x1400055e3
jmp 0x140004f7f
test eax, eax
je 0x140005494
mov rcx, qword [rsp + 0x48]
call fcn.1400047d0
test eax, eax
je 0x140005494
lea rdi, [0x140044630]
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004f7f
add rdi, 8
lea rax, [0x140044690]
cmp rdi, rax
jl 0x140005450
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140004f7f
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003750
jmp 0x140004f7f
mov rcx, qword [rsp + 0x48]
call fcn.1400047d0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400054b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], 0
test eax, eax
jne 0x1400055eb
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140004f7f
test edi, edi
jne 0x140004f7f
cmp byte [0x1400587c8], dil
jne 0x140005521
lea rcx, [0x1400431c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005511
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400587d0], rax
jmp 0x140005518
mov rax, qword [0x1400587d0]
mov byte [0x1400587c8], 1
jmp 0x140005528
mov rax, qword [0x1400587d0]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
test rax, rax
je 0x140005540
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140005546
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400055e7
jmp 0x140004f7f
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140005566
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x140005612
jmp 0x1400055fd
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
test rdi, rdi
je 0x1400055fd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400055fd
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400055fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400055fd
jmp 0x140005553
jmp 0x140005553
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005610
jmp 0x14000560a
mov ecx, 0x80004005
call fcn.1400030f0
int3
mov ecx, 0x80070057
call fcn.1400030f0
int3
mov ecx, 0x8007000e
call fcn.1400030f0
int3
mov ecx, edi
jmp 0x1400055f6
mov ecx, eax
jmp 0x1400055f6
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
jmp 0x1400055fd
call fcn.1400032c0
mov ebx, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140005610
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21a0]
xor rcx, rsp
call fcn.140025aa0
add rsp, 0x22b8
pop rdi
pop rsi
pop rbx
pop rbp
ret