Function at 0x140009490
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.140156fb0
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401e0fc0]
xor rax, rsp
mov qword [rbp + 0x21d0], 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 [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call fcn.1400092d8
test eax, eax
mov ebx, eax
js 0x140009ba3
cmp word [rdi], 0x7d
je 0x140009ba3
mov eax, 1
mov r13d, eax
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 0x140009548
test r14d, r14d
je 0x140009615
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009ba3
cmp dword [rsp + 0x68], edx
je 0x140009613
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000958f
cmp ax, 0x5c
je 0x140009596
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000957d
jmp 0x14000959f
test rcx, rcx
jne 0x140009bef
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400095d6
add rbx, 8
lea rax, str.device_or_resource_busy
cmp rbx, rax
jl 0x1400095a6
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400090a0
xor ebx, ebx
test r14d, r14d
je 0x140009615
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
test eax, eax
js 0x140009ba3
mov rdx, rdi
mov rcx, r12
call fcn.140008ff4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009ba3
mov r14d, dword [rsp + 0x68]
jmp 0x1400098b2
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140009641
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
test eax, eax
js 0x140009ba3
lea rdx, [0x14017a2b8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x14000973e
lea rdx, [rbp + 0x1d0]
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
test eax, eax
js 0x140009ba3
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009ba3
cmp word [rdi], 0x3d
jne 0x140009bef
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x1400096ca
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], r15
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.140008a78
mov ebx, eax
xor edx, edx
jmp 0x1400098aa
cmp dword [rbp + 0x2250], edx
jne 0x14000972e
test r13d, r13d
je 0x14000972e
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 0x140009b9a
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140009bd6
test r14, r14
je 0x14000972e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.140008ff4
jmp 0x1400094f4
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000975a
cmp ax, 0x5c
je 0x140009761
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140009746
jmp 0x14000976a
test rcx, rcx
jne 0x140009bef
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140009901
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 0x1400097c7
mov eax, ebx
test rsi, rsi
je 0x1400097b5
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x140009871
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 0x14000980d
mov eax, ebx
test rsi, rsi
je 0x1400097ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x140009871
mov qword [rsp + 0x60], rbx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
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 0x140009b9a
mov eax, edx
test rsi, rsi
je 0x14000985f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
jne 0x140009b9a
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009ba3
cmp word [rdi], 0x3d
jne 0x1400098b2
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.140008a78
mov ebx, eax
xor edx, edx
mov rsi, qword [rsp + 0x78]
test eax, eax
js 0x140009ba3
cmp word [rdi], 0x7b
jne 0x1400094fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400098c0
mov ecx, 1
cmp rax, rcx
jne 0x1400094fe
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.140009490
mov ebx, eax
test eax, eax
js 0x140009ba3
mov rdx, rdi
mov rcx, r12
jmp 0x1400094ef
mov ebx, dword [rbp + 0x2250]
test ebx, ebx
jne 0x140009958
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, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
xor edx, edx
test eax, eax
jne 0x14000995e
mov r14d, edx
test rsi, rsi
je 0x14000994c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
jmp 0x14000995e
mov r14d, 2
mov r15d, ebx
test r14d, r14d
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x1400099ab
cmp eax, 0xc
je 0x140009bfb
cmp eax, 0x16
je 0x140009c11
cmp eax, 0x22
je 0x140009c11
cmp eax, 0x50
jne 0x140009c06
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
test eax, eax
js 0x140009ba3
mov rdx, rdi
mov rcx, r12
call fcn.140008ff4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009ba3
cmp word [rdi], 0x7b
jne 0x140009a30
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400099e1
mov ecx, 1
cmp rax, rcx
jne 0x140009a30
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.140009490
mov ebx, eax
test eax, eax
jns 0x140009a19
test r15d, r15d
je 0x140009ba3
mov rdx, rdi
mov rcx, r12
call fcn.1400092d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140009ba3
cmp r14d, 2
je 0x140009a47
test r14d, r14d
je 0x140009a51
cmp dword [rbp + 0x2250], edx
je 0x140009bf6
mov r15, qword [rsp + 0x70]
jmp 0x1400094fe
cmp dword [rbp + 0x2250], edx
je 0x140009af4
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 0x140009af4
cmp dword [rsp + 0x60], edx
jbe 0x140009af4
lea r14, str.AppID
mov rdx, qword [r14]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009a47
add r14, 8
lea rax, str.device_or_resource_busy
cmp r14, rax
jl 0x140009ab2
test r13d, r13d
je 0x140009a47
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.1400090a0
mov rsi, qword [rsp + 0x78]
jmp 0x140009a47
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 0x140009b47
cmp dword [rsp + 0x60], edx
seta r14b
test rsi, rsi
je 0x140009b62
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov esi, edx
mov qword [rsp + 0x78], rdx
test eax, eax
jne 0x140009b9a
test r13d, r13d
je 0x140009a47
mov r15, qword [rsp + 0x70]
test r14d, r14d
jne 0x1400094fe
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], r15
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.140009208
test eax, eax
je 0x1400094fe
mov ecx, eax
call fcn.1400092c4
mov ebx, eax
test rsi, rsi
je 0x140009bb1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.14010fb20
add rsp, 0x22e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400092c4
mov ebx, eax
test r14, r14
je 0x140009ba3
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009ba3
mov ebx, 0x80020009
jmp 0x140009ba3
mov ecx, r14d
jmp 0x140009b9c
mov ecx, 0x8007000e
call fcn.140008fcc
int3
mov ecx, 0x80004005
call fcn.140008fcc
int3
mov ecx, 0x80070057
call fcn.140008fcc
int3