Function at 0x140016548
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.1400e33e0
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x80], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov esi, ecx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov rcx, rax
call fcn.140016390
test eax, eax
mov ebx, eax
js 0x140016ca3
cmp word [rdi], 0x7d
je 0x140016ca3
mov eax, 1
mov dword [rsp + 0x78], eax
lea rdx, str.Delete
mov rcx, rdi
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, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400165fd
test ebx, ebx
je 0x1400166c2
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140016ca3
cmp dword [rsp + 0x70], edx
je 0x1400166c2
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140016646
cmp ax, 0x5c
je 0x14001664d
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140016634
jmp 0x140016656
test rcx, rcx
jne 0x140016ce9
lea rbx, [0x1400ea790]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140016691
add rbx, 8
lea rax, [0x1400ea7f0]
cmp rbx, rax
jl 0x14001665d
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14001616c
xor eax, eax
cmp dword [rsp + 0x60], eax
je 0x1400166c2
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
test eax, eax
js 0x140016ca3
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400160c4
jmp 0x14001696c
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x1400166f3
mov dword [rsp + 0x78], ecx
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
test eax, eax
js 0x140016ca3
lea rdx, [0x1400edd48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x1400167ff
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
test eax, eax
js 0x140016ca3
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140016ca3
cmp word [rdi], 0x3d
jne 0x140016ce9
cmp dword [rsp + 0x70], edx
je 0x140016782
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
mov r9, rdi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.140015b58
mov ebx, eax
xor edx, edx
jmp 0x140016970
cmp dword [rbp + 0x2240], edx
jne 0x1400167ed
cmp dword [rsp + 0x78], edx
je 0x1400167ed
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016c9a
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140016cce
test rbx, rbx
je 0x1400167ed
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400160c4
jmp 0x1400165a7
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14001681b
cmp ax, 0x5c
je 0x140016822
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140016807
jmp 0x14001682b
test rcx, rcx
jne 0x140016ce9
cmp dword [rsp + 0x70], edx
je 0x1400169cd
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x140016886
mov eax, ecx
test rsi, rsi
je 0x140016875
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
je 0x140016935
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x1400168cf
mov eax, ecx
test rsi, rsi
je 0x1400168c2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
je 0x140016935
mov qword [rsp + 0x60], rcx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x140016c9a
mov eax, edx
test rsi, rsi
je 0x140016924
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
test eax, eax
jne 0x140016c9a
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140016ca3
cmp word [rdi], 0x3d
jne 0x140016978
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.140015b58
mov rsi, qword [rbp - 0x78]
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140016ca3
cmp word [rdi], 0x7b
jne 0x1400165b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140016986
mov ecx, 1
cmp rax, rcx
jne 0x1400165b1
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x70]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016548
mov ebx, eax
test eax, eax
js 0x140016ca3
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
jmp 0x1400165a2
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140016a29
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x74], eax
xor edx, edx
test eax, eax
jne 0x140016a32
mov eax, edx
mov dword [rsp + 0x74], edx
test rsi, rsi
je 0x140016a1e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x74], eax
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rsi
jmp 0x140016a32
mov eax, 2
mov dword [rsp + 0x74], eax
mov ecx, ebx
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x60], ecx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
test eax, eax
je 0x140016a80
cmp eax, 0xc
je 0x140016d06
cmp eax, 0x16
je 0x140016cfb
cmp eax, 0x22
je 0x140016cfb
cmp eax, 0x50
jne 0x140016cf0
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
test eax, eax
js 0x140016ca3
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400160c4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140016ca3
cmp word [rdi], 0x7b
jne 0x140016b13
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140016aba
mov ecx, 1
cmp rax, rcx
jne 0x140016b13
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016548
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x140016afa
cmp dword [rsp + 0x60], edx
je 0x140016ca3
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140016390
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140016ca3
mov ecx, dword [rsp + 0x74]
cmp ecx, 2
je 0x1400165b1
test ecx, ecx
je 0x140016b35
cmp dword [rbp + 0x2240], edx
je 0x140016c9c
jmp 0x1400165b1
cmp dword [rbp + 0x2240], edx
je 0x140016bec
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, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140016bec
cmp dword [rsp + 0x60], edx
jbe 0x140016bec
lea rax, [0x1400ea790]
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x1400165b1
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, [0x1400ea7f0]
cmp rax, rcx
jl 0x140016b9b
cmp dword [rsp + 0x78], edx
je 0x1400165b1
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.14001616c
mov rsi, qword [rbp - 0x78]
jmp 0x1400165b1
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, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
je 0x140016c3a
mov dword [rsp + 0x60], edx
jmp 0x140016c47
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
mov dword [rsp + 0x60], eax
test rsi, rsi
je 0x140016c61
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rbp - 0x78], rdx
test eax, eax
jne 0x140016c9a
cmp dword [rsp + 0x78], edx
je 0x1400165b1
cmp dword [rsp + 0x60], edx
jne 0x1400165b1
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rdx
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call fcn.1400162c8
test eax, eax
je 0x1400165b1
mov ecx, eax
call fcn.140016380
mov ebx, eax
test rsi, rsi
je 0x140016cb1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.1400e27e0
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.140016380
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140016ca3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140016ca3
mov ebx, 0x80020009
jmp 0x140016ca3
mov ecx, 0x80004005
call fcn.1400160a0
int3
mov ecx, 0x80070057
call fcn.1400160a0
int3
mov ecx, 0x8007000e
call fcn.1400160a0
int3