Function at 0x14000351c
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.14004e710
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400ce148]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov edi, ecx
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x60], ecx
mov qword [rbp - 0x58], rcx
mov ecx, dword [rbp + 0x2230]
mov dword [rbp - 0x4c], ecx
mov rcx, rax
call fcn.14000284c
mov ebx, eax
test eax, eax
jns 0x14000358e
jmp 0x140003cca
cmp word [rsi], 0x7d
je 0x140003cba
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400035da
test ebx, ebx
je 0x1400036ac
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003cba
cmp dword [rsp + 0x70], edx
je 0x1400036ac
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x80], edx
mov qword [rbp - 0x78], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140003623
cmp ax, 0x5c
je 0x14000362a
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140003611
jmp 0x140003633
test rcx, rcx
jne 0x140003c3e
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000367b
add rbx, 8
lea rax, str.HKCR
cmp rbx, rax
jl 0x14000363a
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x78], rbx
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140001ea8
jmp 0x14000367d
xor ebx, ebx
cmp dword [rsp + 0x60], ebx
je 0x1400036ae
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
test eax, eax
js 0x140003cba
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140002e64
jmp 0x140003931
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400036df
mov dword [rsp + 0x74], ebx
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
test eax, eax
js 0x140003cba
xor ebx, ebx
lea rdx, [0x14009db00]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400037f8
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
test eax, eax
js 0x140003cba
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003cba
cmp word [rsi], 0x3d
jne 0x140003c70
cmp dword [rsp + 0x70], edx
je 0x140003773
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], edx
mov qword [rbp - 0x78], rdx
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.1400029cc
mov ebx, eax
test eax, eax
js 0x140003c53
jmp 0x14000393b
cmp dword [rbp + 0x2230], edx
jne 0x1400037dc
cmp dword [rsp + 0x74], edx
je 0x1400037dc
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x80], edx
mov qword [rbp - 0x78], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.140001dc4
test eax, eax
jne 0x140003c55
lea rdx, [rbp + 0x1d0]
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1400037ce
cmp eax, 2
jne 0x140003c55
test rbx, rbx
je 0x1400037dc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140002e64
mov ebx, eax
test eax, eax
js 0x140003cba
jmp 0x14000358e
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140003812
cmp ax, 0x5c
je 0x140003819
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140003800
jmp 0x140003822
test rcx, rcx
jne 0x140003c72
cmp dword [rsp + 0x70], ebx
je 0x140003992
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rbp - 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140001dc4
xor edi, edi
test eax, eax
je 0x1400038f8
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140001dc4
test eax, eax
je 0x1400038f8
mov qword [rsp + 0x60], rdi
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
test rcx, rcx
je 0x140003895
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.140001bac
jmp 0x1400038c7
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003c74
mov eax, edi
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400038e0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rbp - 0x68], rdi
xor ecx, ecx
mov dword [rbp - 0x60], ecx
test eax, eax
jne 0x140003c78
jmp 0x1400038fc
mov rdi, qword [rbp - 0x68]
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
test eax, eax
js 0x140003cba
cmp word [rsi], 0x3d
jne 0x14000393b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, qword [rsp + 0x68]
call fcn.1400029cc
mov rdi, qword [rbp - 0x68]
test eax, eax
mov ebx, eax
js 0x140003cba
cmp word [rsi], 0x7b
jne 0x14000358e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x14000358e
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000351c
mov ebx, eax
test eax, eax
js 0x140003cba
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
jmp 0x1400037e9
mov ebx, dword [rbp + 0x2230]
test ebx, ebx
jne 0x1400039b8
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.140001dc4
mov rdi, qword [rbp - 0x68]
jmp 0x1400039bd
mov eax, 2
mov dword [rsp + 0x60], eax
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [rbp + 0x2230], ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14004a740
test eax, eax
je 0x140003a0e
cmp eax, 0xc
je 0x140003c99
cmp eax, 0x16
je 0x140003c8e
cmp eax, 0x22
je 0x140003c8e
cmp eax, 0x50
jne 0x140003c83
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
test eax, eax
js 0x140003cba
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140002e64
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003cba
cmp word [rsi], 0x7b
jne 0x140003aa4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x140003aa2
mov eax, dword [rbp + 0x2230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000351c
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x140003a87
cmp dword [rbp + 0x2230], edx
je 0x140003cba
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000284c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003cba
jmp 0x140003aa4
xor edx, edx
mov ecx, dword [rbp - 0x4c]
mov dword [rbp + 0x2230], ecx
mov eax, dword [rsp + 0x60]
cmp eax, 2
je 0x14000358e
test eax, eax
je 0x140003acb
test ecx, ecx
je 0x140003ca4
jmp 0x14000358e
test ecx, ecx
je 0x140003b85
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140003b85
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x140003b85
lea rax, str.AppID
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x14000358e
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, str.HKCR
cmp rax, rcx
jl 0x140003b34
cmp dword [rsp + 0x74], edx
je 0x14000358e
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140001ea8
mov rdi, qword [rbp - 0x68]
jmp 0x14000358e
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
je 0x140003bd3
mov dword [rsp + 0x60], edx
jmp 0x140003be0
mov ecx, edx
cmp dword [rsp + 0x60], edx
seta cl
mov dword [rsp + 0x60], ecx
mov eax, edx
test rdi, rdi
je 0x140003bf8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov edi, edx
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
test eax, eax
jne 0x140003caf
cmp dword [rsp + 0x74], edx
je 0x14000358e
cmp dword [rsp + 0x60], edx
jne 0x14000358e
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], edx
mov qword [rbp - 0x78], rdx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140001cc8
test eax, eax
jne 0x140003ca4
jmp 0x14000358e
test rdi, rdi
je 0x140003c4c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x140003cca
jmp 0x140003cba
mov ecx, eax
call fcn.140001b84
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140003cba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003cba
jmp 0x140003c3e
jmp 0x140003c3e
mov rdi, qword [rbp - 0x68]
mov ecx, eax
call fcn.140001b84
mov ebx, eax
jmp 0x140003cba
mov ecx, 0x80004005
call fcn.140001b44
int3
mov ecx, 0x80070057
call fcn.140001b44
int3
mov ecx, 0x8007000e
call fcn.140001b44
int3
mov ecx, eax
call fcn.140001b84
mov ebx, eax
jmp 0x140003cba
mov ecx, eax
call fcn.140001b84
mov ebx, eax
jmp 0x140003cba
test rdi, rdi
je 0x140003cc8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.140049cd0
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret