Function at 0x1400205c0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.140227620
sub rsp, rax
mov rax, qword [0x14029f3b8]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x68], r9d
mov r15, r8
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov esi, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
call fcn.14002040c
test eax, eax
mov ebx, eax
js 0x140020cba
cmp word [rdi], 0x7d
je 0x140020cba
mov r13d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov r14d, ebx
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002066d
test r14d, r14d
je 0x14002073a
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140020cba
cmp dword [rsp + 0x68], edx
je 0x140020738
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400206b4
cmp ax, 0x5c
je 0x1400206bb
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400206a2
jmp 0x1400206c4
test rcx, rcx
jne 0x140020d06
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400206fb
add rbx, 8
lea rax, str.device_or_resource_busy
cmp rbx, rax
jl 0x1400206cb
mov qword [rbp - 0x68], r15
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1400201d8
xor ebx, ebx
test r14d, r14d
je 0x14002073a
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
test eax, eax
js 0x140020cba
mov rdx, rdi
mov rcx, r12
call fcn.140020130
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140020cba
mov r14d, dword [rsp + 0x68]
jmp 0x1400209d7
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140020766
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
test eax, eax
js 0x140020cba
lea rdx, [0x140251110]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x140020863
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.14002040c
mov ebx, eax
test eax, eax
js 0x140020cba
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140020cba
cmp word [rdi], 0x3d
jne 0x140020d06
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x1400207ef
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x68], r15
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x68]
mov rcx, r12
call fcn.14001fb24
mov ebx, eax
xor edx, edx
jmp 0x1400209cf
cmp dword [rbp + 0x2240], edx
jne 0x140020853
test r13d, r13d
je 0x140020853
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020cb1
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140020ced
test r14, r14
je 0x140020853
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.140020130
jmp 0x14002061b
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14002087f
cmp ax, 0x5c
je 0x140020886
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14002086b
jmp 0x14002088f
test rcx, rcx
jne 0x140020d06
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140020a22
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r13d, 0x2001f
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x1400208eb
mov eax, ebx
test rsi, rsi
je 0x1400208da
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x80], rsi
test eax, eax
je 0x140020998
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020930
mov eax, ebx
test rsi, rsi
je 0x140020923
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x80], rsi
test eax, eax
je 0x140020998
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x140020cb1
mov eax, edx
test rsi, rsi
je 0x140020987
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 0x80], rsi
test eax, eax
jne 0x140020cb1
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140020cba
cmp word [rdi], 0x3d
jne 0x1400209d7
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.14001fb24
mov ebx, eax
xor edx, edx
mov rsi, qword [rbp - 0x80]
test eax, eax
js 0x140020cba
cmp word [rdi], 0x7b
jne 0x140020625
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400209e5
cmp rax, 1
jne 0x140020625
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400205c0
mov ebx, eax
test eax, eax
js 0x140020cba
mov rdx, rdi
mov rcx, r12
jmp 0x140020616
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140020a78
mov qword [rsp + 0x78], rdx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
xor edx, edx
test eax, eax
jne 0x140020a7e
mov r14d, edx
test rsi, rsi
je 0x140020a6d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 0x80], rsi
jmp 0x140020a7e
mov r14d, 2
mov r15d, 1
test r14d, r14d
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140020ac9
cmp eax, 0xc
je 0x140020d12
cmp eax, 0x16
je 0x140020d28
cmp eax, 0x22
je 0x140020d28
cmp eax, 0x50
jne 0x140020d1d
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
test eax, eax
js 0x140020cba
mov rdx, rdi
mov rcx, r12
call fcn.140020130
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140020cba
cmp word [rdi], 0x7b
jne 0x140020b4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140020aff
cmp rax, 1
jne 0x140020b4a
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400205c0
mov ebx, eax
test eax, eax
jns 0x140020b33
test r15d, r15d
je 0x140020cba
mov rdx, rdi
mov rcx, r12
call fcn.14002040c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140020cba
cmp r14d, 2
je 0x140020b61
test r14d, r14d
je 0x140020b6b
cmp dword [rbp + 0x2240], edx
je 0x140020d0d
mov r15, qword [rsp + 0x70]
jmp 0x140020625
cmp dword [rbp + 0x2240], edx
je 0x140020c0c
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 0x140020c0c
cmp dword [rsp + 0x60], edx
jbe 0x140020c0c
lea r14, str.AppID
mov rdx, qword [r14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140020b61
add r14, 8
lea rax, str.device_or_resource_busy
cmp r14, rax
jl 0x140020bcc
test r13d, r13d
je 0x140020b61
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400201d8
mov rsi, qword [rbp - 0x80]
jmp 0x140020b61
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
mov r14d, edx
test eax, eax
jne 0x140020c5f
cmp dword [rsp + 0x60], edx
seta r14b
test rsi, rsi
je 0x140020c79
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rbp - 0x80], rdx
test eax, eax
jne 0x140020cb1
test r13d, r13d
je 0x140020b61
mov r15, qword [rsp + 0x70]
test r14d, r14d
jne 0x140020625
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x68], r15
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x68]
call fcn.140020344
test eax, eax
je 0x140020625
mov ecx, eax
call fcn.1400203fc
mov ebx, eax
test rsi, rsi
je 0x140020cc8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.140220ed0
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400203fc
mov ebx, eax
test r14, r14
je 0x140020cba
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140020cba
mov ebx, 0x80020009
jmp 0x140020cba
mov ecx, r14d
jmp 0x140020cb3
mov ecx, 0x8007000e
call fcn.14002010c
int3
mov ecx, 0x80004005
call fcn.14002010c
int3
mov ecx, 0x80070057
call fcn.14002010c
int3