Function at 0x140005ae0
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.14000baa0
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x140021350]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], ecx
mov qword [rbp - 0x70], rcx
mov ecx, dword [rbp + 0x2240]
mov dword [rbp - 0x48], ecx
mov rcx, rax
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
cmp word [rsi], 0x7d
je 0x14000621d
mov dword [rsp + 0x68], 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 0x140005b96
test edi, edi
je 0x140005c72
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
cmp dword [rsp + 0x70], 0
je 0x140005c72
xor eax, eax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005bf2
cmp ax, 0x5c
je 0x140005be9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005bd0
jmp 0x140005bf2
test rcx, rcx
jne 0x1400061e8
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 0x140005c44
add rbx, 8
lea rax, [0x1400158f0]
cmp rbx, rax
jl 0x140005c00
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.1400054f0
test edi, edi
je 0x140005c72
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
mov rdx, rsi
mov rcx, rdi
call fcn.140007b00
jmp 0x140005f6c
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005ca5
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
jmp 0x140005ca9
mov edi, dword [rsp + 0x68]
lea rdx, [0x140015840]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005db0
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
cmp word [rsi], 0x3d
jne 0x1400061e8
cmp dword [rsp + 0x70], 0
je 0x140005d38
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x60], rax
xor eax, eax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov r9, rsi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x60]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400036a0
mov ebx, eax
jmp 0x140005f6e
cmp dword [rbp + 0x2240], 0
jne 0x140005d9e
test edi, edi
je 0x140005d9e
xor eax, eax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.140005060
test eax, eax
jne 0x1400061ce
lea rdx, [rbp + 0x1e0]
mov rdi, qword [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1400061b5
test rdi, rdi
je 0x140005d9e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140007b00
jmp 0x140005b46
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005de2
nop dword [rax + rax]
cmp ax, 0x5c
je 0x140005dd9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140005dc0
jmp 0x140005de2
test rcx, rcx
jne 0x1400061e8
cmp dword [rsp + 0x70], 0
je 0x140005fc9
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rsp + 0x78]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140005060
test eax, eax
je 0x140005f3a
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140005060
test eax, eax
je 0x140005f3a
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140005ed5
cmp qword [rbx], 0
je 0x140005ec6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140005e66
mov eax, 1
xor ebx, ebx
jmp 0x140005f0d
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140005ecc
mov qword [rsp + 0x50], 0
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call r10
jmp 0x140005f0d
cmp dword [rbx + 8], 0
jne 0x140005ed5
mov eax, 1
xor ebx, ebx
jmp 0x140005f0d
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006214
mov eax, ebx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140005f26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x78], ebx
mov rdi, qword [rsp + 0x68]
mov qword [rbp - 0x80], rdi
test eax, eax
jne 0x140006214
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
cmp word [rsi], 0x3d
jne 0x140005f76
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1400036a0
mov ebx, eax
test eax, eax
js 0x14000621d
cmp word [rsi], 0x7b
jne 0x140005b50
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140005f84
cmp rax, 1
jne 0x140005b50
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.140005ae0
mov ebx, eax
test eax, eax
js 0x14000621d
mov rdx, rsi
mov rcx, rdi
jmp 0x140005b41
cmp dword [rbp + 0x2240], 0
jne 0x140005ff1
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.140005060
mov edi, eax
test eax, eax
jne 0x140005ff6
jmp 0x140006000
mov edi, 2
mov dword [rbp + 0x2240], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.14000b930
test eax, eax
je 0x14000603d
cmp eax, 0xc
je 0x140006205
cmp eax, 0x16
je 0x1400061fa
cmp eax, 0x22
je 0x1400061fa
cmp eax, 0x50
jne 0x1400061ef
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140007b00
mov ebx, eax
test eax, eax
js 0x14000621d
cmp word [rsi], 0x7b
jne 0x1400060cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140006075
cmp rax, 1
jne 0x1400060cd
mov eax, dword [rbp + 0x2240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x80]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140005ae0
mov ebx, eax
test eax, eax
jns 0x1400060b6
cmp dword [rbp + 0x2240], 0
je 0x14000621d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov ebx, eax
test eax, eax
js 0x14000621d
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x2240], eax
cmp edi, 2
je 0x140005b50
test edi, edi
je 0x1400060f0
test eax, eax
je 0x140006210
jmp 0x140005b50
test eax, eax
je 0x140006153
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.140004cf0
test eax, eax
je 0x140006153
lea rdi, str.AppID
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005b50
add rdi, 8
lea rax, [0x1400158f0]
cmp rdi, rax
jl 0x140006110
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140005b50
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400054f0
jmp 0x140005b50
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.140004cf0
mov edi, eax
xor eax, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000617a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], 0
test eax, eax
jne 0x140006214
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140005b50
test edi, edi
jne 0x140005b50
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140006214
jmp 0x140005b50
mov ecx, eax
call fcn.140003ca0
mov ebx, eax
test rdi, rdi
je 0x14000621d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000621d
mov ecx, eax
call fcn.140003ca0
mov ebx, eax
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14000621d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000621d
mov ebx, 0x80020009
jmp 0x14000621d
mov ecx, 0x80004005
call fcn.140003cb0
int3
mov ecx, 0x80070057
call fcn.140003cb0
int3
mov ecx, 0x8007000e
call fcn.140003cb0
int3
mov ecx, edi
jmp 0x140006216
mov ecx, eax
call fcn.140003ca0
mov ebx, eax
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14000622f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.14000b350
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret