Function at 0x14001d924
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.1401d8200
sub rsp, rax
mov rax, qword [0x14023ab58]
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.14001d770
test eax, eax
mov ebx, eax
js 0x14001e01e
cmp word [rdi], 0x7d
je 0x14001e01e
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 0x14001d9d1
test r14d, r14d
je 0x14001da9e
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001e01e
cmp dword [rsp + 0x68], edx
je 0x14001da9c
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14001da18
cmp ax, 0x5c
je 0x14001da1f
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14001da06
jmp 0x14001da28
test rcx, rcx
jne 0x14001e06a
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001da5f
add rbx, 8
lea rax, str.device_or_resource_busy
cmp rbx, rax
jl 0x14001da2f
mov qword [rbp - 0x68], r15
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.14001d528
xor ebx, ebx
test r14d, r14d
je 0x14001da9e
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
test eax, eax
js 0x14001e01e
mov rdx, rdi
mov rcx, r12
call fcn.14001d484
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001e01e
mov r14d, dword [rsp + 0x68]
jmp 0x14001dd3b
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001daca
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
test eax, eax
js 0x14001e01e
lea rdx, [0x1401fd5a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x14001dbc7
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.14001d770
mov ebx, eax
test eax, eax
js 0x14001e01e
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001e01e
cmp word [rdi], 0x3d
jne 0x14001e06a
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x14001db53
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.14001cf1c
mov ebx, eax
xor edx, edx
jmp 0x14001dd33
cmp dword [rbp + 0x2240], edx
jne 0x14001dbb7
test r13d, r13d
je 0x14001dbb7
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 0x14001e015
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14001e051
test r14, r14
je 0x14001dbb7
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.14001d484
jmp 0x14001d97f
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14001dbe3
cmp ax, 0x5c
je 0x14001dbea
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14001dbcf
jmp 0x14001dbf3
test rcx, rcx
jne 0x14001e06a
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x14001dd86
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 0x14001dc4f
mov eax, ebx
test rsi, rsi
je 0x14001dc3e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x80], rsi
test eax, eax
je 0x14001dcfc
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 0x14001dc94
mov eax, ebx
test rsi, rsi
je 0x14001dc87
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x80], rsi
test eax, eax
je 0x14001dcfc
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 0x14001e015
mov eax, edx
test rsi, rsi
je 0x14001dceb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 0x80], rsi
test eax, eax
jne 0x14001e015
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001e01e
cmp word [rdi], 0x3d
jne 0x14001dd3b
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.14001cf1c
mov ebx, eax
xor edx, edx
mov rsi, qword [rbp - 0x80]
test eax, eax
js 0x14001e01e
cmp word [rdi], 0x7b
jne 0x14001d989
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14001dd49
cmp rax, 1
jne 0x14001d989
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.14001d924
mov ebx, eax
test eax, eax
js 0x14001e01e
mov rdx, rdi
mov rcx, r12
jmp 0x14001d97a
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x14001dddc
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 0x14001dde2
mov r14d, edx
test rsi, rsi
je 0x14001ddd1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 0x80], rsi
jmp 0x14001dde2
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 0x14001de2d
cmp eax, 0xc
je 0x14001e076
cmp eax, 0x16
je 0x14001e08c
cmp eax, 0x22
je 0x14001e08c
cmp eax, 0x50
jne 0x14001e081
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
test eax, eax
js 0x14001e01e
mov rdx, rdi
mov rcx, r12
call fcn.14001d484
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001e01e
cmp word [rdi], 0x7b
jne 0x14001deae
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14001de63
cmp rax, 1
jne 0x14001deae
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.14001d924
mov ebx, eax
test eax, eax
jns 0x14001de97
test r15d, r15d
je 0x14001e01e
mov rdx, rdi
mov rcx, r12
call fcn.14001d770
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001e01e
cmp r14d, 2
je 0x14001dec5
test r14d, r14d
je 0x14001decf
cmp dword [rbp + 0x2240], edx
je 0x14001e071
mov r15, qword [rsp + 0x70]
jmp 0x14001d989
cmp dword [rbp + 0x2240], edx
je 0x14001df70
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 0x14001df70
cmp dword [rsp + 0x60], edx
jbe 0x14001df70
lea r14, str.AppID
mov rdx, qword [r14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001dec5
add r14, 8
lea rax, str.device_or_resource_busy
cmp r14, rax
jl 0x14001df30
test r13d, r13d
je 0x14001dec5
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.14001d528
mov rsi, qword [rbp - 0x80]
jmp 0x14001dec5
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 0x14001dfc3
cmp dword [rsp + 0x60], edx
seta r14b
test rsi, rsi
je 0x14001dfdd
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 0x14001e015
test r13d, r13d
je 0x14001dec5
mov r15, qword [rsp + 0x70]
test r14d, r14d
jne 0x14001d989
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.14001d694
test eax, eax
je 0x14001d989
mov ecx, eax
call fcn.14001d760
mov ebx, eax
test rsi, rsi
je 0x14001e02c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1401d2140
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.14001d760
mov ebx, eax
test r14, r14
je 0x14001e01e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001e01e
mov ebx, 0x80020009
jmp 0x14001e01e
mov ecx, r14d
jmp 0x14001e017
mov ecx, 0x8007000e
call fcn.14001d460
int3
mov ecx, 0x80004005
call fcn.14001d460
int3
mov ecx, 0x80070057
call fcn.14001d460
int3