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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.1800ce0d0
sub rsp, rax
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x1801c2938]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x54], r9d
mov qword [rsp + 0x58], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov ecx, dword [rbp + 0x2240]
mov dword [rbp - 0x58], ecx
mov rcx, rax
call fcn.180059d60
mov ebx, eax
test eax, eax
jns 0x18005ab68
jmp 0x18005b30d
mov ebx, eax
test eax, eax
js 0x18005b2ef
cmp word [rsi], 0x7d
je 0x18005b2ef
mov dword [rsp + 0x50], 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 0x18005abae
test edi, edi
je 0x18005acca
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
cmp dword [rsp + 0x54], 0
je 0x18005acca
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x70], rbx
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x18005ac12
nop dword [rax + rax]
cmp ax, 0x5c
je 0x18005ac09
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x18005abf0
jmp 0x18005ac12
test rcx, rcx
jne 0x18005b1e4
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 0x18005ac82
add rbx, 8
lea rax, [0x1801483a0]
cmp rbx, rax
jl 0x18005ac20
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180059350
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
test edi, edi
je 0x18005acc2
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b213
mov rdx, rsi
mov rcx, rdi
call fcn.18005a410
mov ebx, eax
test eax, eax
js 0x18005b20e
mov dword [rsp + 0x68], 0
jmp 0x18005af10
mov dword [rsp + 0x68], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18005acfd
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
jmp 0x18005ad01
mov edi, dword [rsp + 0x50]
lea rdx, [0x180148248]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18005ae4a
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x30]
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
cmp word [rsi], 0x3d
jne 0x18005b261
cmp dword [rsp + 0x54], 0
je 0x18005adb3
xor ecx, ecx
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x68], ecx
mov qword [rbp - 0x60], rcx
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], ecx
mov qword [rbp - 0x60], rcx
mov r9, rsi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x70]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180059f10
mov ebx, eax
xor eax, eax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
mov qword [rbp - 0x60], rax
test ebx, ebx
js 0x18005b218
mov dword [rbp - 0x68], eax
jmp 0x18005af10
cmp dword [rbp + 0x2240], 0
jne 0x18005ae38
test edi, edi
je 0x18005ae38
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.180037250
test eax, eax
jne 0x18005b233
lea rdx, [rbp + 0x1e0]
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x18005ae1a
cmp eax, 2
jne 0x18005b220
test rdi, rdi
je 0x18005ae31
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.18005a410
jmp 0x18005ab5e
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x18005ae77
cmp ax, 0x5c
je 0x18005ae6e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x18005ae55
jmp 0x18005ae77
test rcx, rcx
jne 0x18005b287
cmp dword [rsp + 0x54], 0
je 0x18005af63
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180037250
test eax, eax
je 0x18005aed3
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180037250
test eax, eax
je 0x18005aed3
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180059170
test eax, eax
jne 0x18005b289
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
cmp word [rsi], 0x3d
jne 0x18005af10
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180059f10
mov ebx, eax
test eax, eax
js 0x18005b2ef
cmp word [rsi], 0x7b
jne 0x18005ab68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x18005ab68
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.18005aae0
mov ebx, eax
test eax, eax
js 0x18005b2ef
mov rdx, rsi
mov rcx, rdi
call fcn.180059d60
jmp 0x18005ab5e
cmp dword [rbp + 0x2240], 0
jne 0x18005af8c
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.180037250
mov edi, eax
test eax, eax
jne 0x18005af91
jmp 0x18005af9b
mov edi, 2
mov dword [rbp + 0x2240], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.1800c2520
test eax, eax
je 0x18005afd8
cmp eax, 0xc
je 0x18005b2b4
cmp eax, 0x16
je 0x18005b2a9
cmp eax, 0x22
je 0x18005b2a9
cmp eax, 0x50
jne 0x18005b29e
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.18005a410
mov ebx, eax
test eax, eax
js 0x18005b2ef
cmp word [rsi], 0x7b
jne 0x18005b063
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x18005b063
mov eax, dword [rbp + 0x2240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.18005aae0
mov ebx, eax
test eax, eax
jns 0x18005b04c
cmp dword [rbp + 0x2240], 0
je 0x18005b2ef
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180059d60
mov ebx, eax
test eax, eax
js 0x18005b2ef
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x2240], eax
cmp edi, 2
je 0x18005ab68
test edi, edi
je 0x18005b086
test eax, eax
je 0x18005b2bf
jmp 0x18005ab68
test eax, eax
je 0x18005b0e4
mov rcx, qword [rsp + 0x38]
call fcn.18005a3b0
test eax, eax
je 0x18005b0e4
lea rdi, str.AppID
nop
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18005ab68
add rdi, 8
lea rax, [0x1801483a0]
cmp rdi, rax
jl 0x18005b0a0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18005ab68
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x38]
call fcn.180059350
jmp 0x18005ab68
mov rcx, qword [rsp + 0x38]
call fcn.18005a3b0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18005b109
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x40], 0
test eax, eax
jne 0x18005b2dc
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18005ab68
test edi, edi
jne 0x18005ab68
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x48], edi
mov qword [rbp - 0x40], 0
mov rcx, qword [rsp + 0x58]
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x48], edi
mov qword [rbp - 0x40], 0
cmp byte [0x1801daba4], dil
jne 0x18005b19d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18005b188
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801daba8], rax
jmp 0x18005b18f
mov rax, qword [0x1801daba8]
mov byte [0x1801daba4], 1
mov rcx, qword [rsp + 0x58]
jmp 0x18005b1a4
mov rax, qword [0x1801daba8]
lea rdx, [rbp - 0x30]
test rax, rax
je 0x18005b1b7
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x18005b1bd
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
test eax, eax
jne 0x18005b2ca
mov dword [rbp - 0x48], eax
jmp 0x18005ab68
mov dword [rsp + 0x68], ebx
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18005b200
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov eax, 0x80020009
jmp 0x18005b315
jmp 0x18005b2e7
jmp 0x18005b2e7
mov dword [rbp - 0x68], eax
jmp 0x18005b2ef
mov ecx, eax
call fcn.180058f70
mov ebx, eax
test rdi, rdi
je 0x18005b255
mov rcx, rdi
jmp 0x18005b246
mov ecx, eax
call fcn.180058f70
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18005b255
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
jmp 0x18005b2ef
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18005b27d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, 0x80020009
jmp 0x18005b30d
jmp 0x18005b261
mov ecx, eax
call fcn.180058f70
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18005b30b
jmp 0x18005b2fc
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
int3
mov ecx, edi
call fcn.180058f70
mov ebx, eax
jmp 0x18005b2ef
mov ecx, eax
call fcn.180058f70
mov ebx, eax
mov dword [rbp - 0x48], 0
jmp 0x18005b2ef
mov ecx, eax
call fcn.180058f70
mov ebx, eax
jmp 0x18005b2ef
mov dword [rsp + 0x68], 0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18005b30b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, ebx
mov dword [rsp + 0x40], 0
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.1800bdf20
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret