Function at 0x140005f00
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.14002a6b0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x140054100]
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.140005190
mov ebx, eax
test eax, eax
jns 0x140005f7f
jmp 0x140006612
mov ebx, eax
test eax, eax
js 0x1400065fd
cmp word [rsi], 0x7d
je 0x1400065fd
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 0x140005fc5
test edi, edi
je 0x1400060a6
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
cmp dword [rsp + 0x3c], 0
je 0x1400060a6
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 0x140006024
cmp ax, 0x5c
je 0x14000601b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140006002
jmp 0x140006024
test rcx, rcx
jne 0x140006553
lea rbx, sym.imp.KERNEL32.dll_FlsGetValue
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140006078
add rbx, 8
lea rax, sym.imp.KERNEL32.dll_LoadResource
cmp rbx, rax
jl 0x140006030
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.140004750
test edi, edi
je 0x1400060a6
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
mov rdx, rsi
mov rcx, rdi
call fcn.140005830
jmp 0x1400062b3
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400060d9
xor edi, edi
mov dword [rsp + 0x38], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
jmp 0x1400060dd
mov edi, dword [rsp + 0x38]
lea rdx, [0x1400441b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400061f7
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rsp + 0x30]
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
cmp word [rsi], 0x3d
jne 0x1400065a9
cmp dword [rsp + 0x3c], 0
je 0x140006178
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.140005340
mov ebx, eax
test eax, eax
js 0x140006570
jmp 0x1400062bd
cmp dword [rbp + 0x2200], 0
jne 0x1400061e5
test edi, edi
je 0x1400061e5
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.1400045b0
test eax, eax
jne 0x14000658e
lea rdx, [rbp + 0x1a0]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1400061d7
cmp eax, 2
jne 0x140006575
test rdi, rdi
je 0x1400061e5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005830
jmp 0x140005f75
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140006224
cmp ax, 0x5c
je 0x14000621b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140006202
jmp 0x140006224
test rcx, rcx
jne 0x1400065ab
cmp dword [rsp + 0x3c], 0
je 0x140006310
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400045b0
test eax, eax
je 0x140006280
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400045b0
test eax, eax
je 0x140006280
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004470
test eax, eax
jne 0x1400065ad
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
cmp word [rsi], 0x3d
jne 0x1400062bd
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140005340
test eax, eax
mov ebx, eax
js 0x1400065fd
cmp word [rsi], 0x7b
jne 0x140005f7f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140005f7f
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, rdi
call fcn.140005f00
mov ebx, eax
test eax, eax
js 0x1400065fd
mov rdx, rsi
mov rcx, rdi
call fcn.140005190
jmp 0x140005f75
cmp dword [rbp + 0x2200], 0
jne 0x140006339
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400045b0
mov edi, eax
test eax, eax
jne 0x14000633e
jmp 0x140006348
mov edi, 2
mov dword [rbp + 0x2200], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.140026e10
test eax, eax
je 0x140006385
cmp eax, 0xc
je 0x1400065d8
cmp eax, 0x16
je 0x1400065cd
cmp eax, 0x22
je 0x1400065cd
cmp eax, 0x50
jne 0x1400065c2
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005830
mov ebx, eax
test eax, eax
js 0x1400065fd
cmp word [rsi], 0x7b
jne 0x140006410
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140006410
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.140005f00
mov ebx, eax
test eax, eax
jns 0x1400063f9
cmp dword [rbp + 0x2200], 0
je 0x1400065fd
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.140005190
mov ebx, eax
test eax, eax
js 0x1400065fd
mov eax, dword [rsp + 0x78]
mov dword [rbp + 0x2200], eax
cmp edi, 2
je 0x140005f7f
test edi, edi
je 0x140006434
test eax, eax
je 0x1400065e3
jmp 0x140005f7f
test eax, eax
je 0x140006494
mov rcx, qword [rsp + 0x48]
call fcn.1400057d0
test eax, eax
je 0x140006494
lea rdi, sym.imp.KERNEL32.dll_FlsGetValue
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005f7f
add rdi, 8
lea rax, sym.imp.KERNEL32.dll_LoadResource
cmp rdi, rax
jl 0x140006450
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140005f7f
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140004750
jmp 0x140005f7f
mov rcx, qword [rsp + 0x48]
call fcn.1400057d0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400064b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], 0
test eax, eax
jne 0x1400065eb
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140005f7f
test edi, edi
jne 0x140005f7f
cmp byte [0x1400597c8], dil
jne 0x140006521
lea rcx, [0x1400441c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006511
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400597d0], rax
jmp 0x140006518
mov rax, qword [0x1400597d0]
mov byte [0x1400597c8], 1
jmp 0x140006528
mov rax, qword [0x1400597d0]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
test rax, rax
je 0x140006540
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140006546
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400065e7
jmp 0x140005f7f
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140006566
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x140006612
jmp 0x1400065fd
mov ecx, eax
call fcn.1400042c0
mov ebx, eax
test rdi, rdi
je 0x1400065fd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400065fd
mov ecx, eax
call fcn.1400042c0
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400065fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400065fd
jmp 0x140006553
jmp 0x140006553
mov ecx, eax
call fcn.1400042c0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140006610
jmp 0x14000660a
mov ecx, 0x80004005
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x8007000e
call fcn.1400040f0
int3
mov ecx, edi
jmp 0x1400065f6
mov ecx, eax
jmp 0x1400065f6
mov ecx, eax
call fcn.1400042c0
mov ebx, eax
jmp 0x1400065fd
call fcn.1400042c0
mov ebx, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140006610
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21a0]
xor rcx, rsp
call fcn.140026aa0
add rsp, 0x22b8
pop rdi
pop rsi
pop rbx
pop rbp
ret