Function at 0x1400822a4
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.1400b1570
sub rsp, rax
mov rax, qword [0x1400ef0c8]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x68], r9d
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r12, rcx
xor r14d, r14d
mov esi, r14d
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
mov r15d, r14d
mov qword [rbp - 0x78], r14
call fcn.14007fc60
mov ebx, eax
test eax, eax
js 0x140082736
cmp word [rdi], 0x7d
je 0x140082736
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 0x140082354
test r14d, r14d
je 0x140082424
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
test eax, eax
js 0x140082736
xor ebx, ebx
cmp dword [rsp + 0x68], ebx
je 0x140082424
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14008239a
cmp ax, 0x5c
je 0x1400823a1
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140082388
jmp 0x1400823aa
test rcx, rcx
jne 0x140082aef
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400823e6
add rbx, 8
lea rax, [0x1400b8a80]
cmp rbx, rax
jl 0x1400823b1
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140081b98
xor ebx, ebx
test r14d, r14d
je 0x140082424
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140082736
mov rdx, rdi
mov rcx, r12
call fcn.14008356c
mov ebx, eax
test eax, eax
js 0x140082736
mov r14d, dword [rsp + 0x68]
jmp 0x1400827a1
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140082450
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
test eax, eax
js 0x140082736
lea rdx, [0x1400b89c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14008255e
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140082736
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
test eax, eax
js 0x140082736
cmp word [rdi], 0x3d
jne 0x140082aef
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x1400824db
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.14007bbdc
mov ebx, eax
jmp 0x14008279d
cmp dword [rbp + 0x2240], r15d
jne 0x140082544
test r13d, r13d
je 0x140082544
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008272d
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140082acf
test r14, r14
je 0x140082544
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.14008356c
mov ebx, eax
test eax, eax
js 0x140082736
jmp 0x140082abc
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140082578
cmp ax, 0x5c
je 0x14008257f
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140082566
jmp 0x140082588
test rcx, rcx
jne 0x140082aef
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x1400827ee
xor r13d, r13d
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
test r15, r15
je 0x1400825cd
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140081eb0
jmp 0x1400825e7
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140082612
mov eax, r13d
test rsi, rsi
je 0x1400825fc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], r13d
test eax, eax
je 0x140082769
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
test r15, r15
je 0x140082641
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140081eb0
jmp 0x14008265b
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140082686
mov eax, r13d
test rsi, rsi
je 0x140082670
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], r13d
test eax, eax
je 0x140082769
mov qword [rsp + 0x60], r13
lea rax, [rbp - 0x58]
test r15, r15
je 0x1400826d0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140081cf0
xor r15d, r15d
jmp 0x140082706
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14008272d
mov eax, r15d
test rsi, rsi
je 0x14008271b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], r15d
test eax, eax
je 0x14008276c
mov ecx, eax
call fcn.14007c350
mov ebx, eax
test rsi, rsi
je 0x140082744
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1400b0f60
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r15d, r15d
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
test eax, eax
js 0x140082736
cmp word [rdi], 0x3d
jne 0x1400827a1
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.14007bbdc
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test eax, eax
js 0x140082736
cmp word [rdi], 0x7b
jne 0x140082abc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp rax, 1
jne 0x140082abc
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400822a4
mov ebx, eax
test eax, eax
js 0x140082736
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
jmp 0x14008254f
mov ebx, dword [rbp + 0x2240]
xor eax, eax
test ebx, ebx
jne 0x140082876
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
test r15, r15
je 0x14008282b
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rsp + 0x70]
mov rcx, r15
call fcn.140081eb0
jmp 0x140082847
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
xor eax, eax
test r14d, r14d
jne 0x14008287c
mov r14d, eax
test rsi, rsi
je 0x140082867
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], eax
jmp 0x14008287c
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 0x1400828c7
cmp eax, 0xc
je 0x140082b04
cmp eax, 0x16
je 0x140082af9
cmp eax, 0x22
je 0x140082af9
cmp eax, 0x50
jne 0x140082b0f
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
test eax, eax
js 0x140082736
mov rdx, rdi
mov rcx, r12
call fcn.14008356c
mov ebx, eax
test eax, eax
js 0x140082736
cmp word [rdi], 0x7b
jne 0x140082945
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp rax, 1
jne 0x140082945
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400822a4
mov ebx, eax
test eax, eax
jns 0x14008292b
test r15d, r15d
je 0x140082736
mov rdx, rdi
mov rcx, r12
call fcn.14007fc60
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140082736
jmp 0x140082948
xor r15d, r15d
cmp r14d, 2
je 0x140082abc
test r14d, r14d
je 0x14008296c
cmp dword [rbp + 0x2240], r15d
jne 0x140082abc
mov ecx, r14d
jmp 0x14008272f
cmp dword [rbp + 0x2240], r15d
je 0x140082a14
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
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]
test eax, eax
jne 0x140082a14
cmp dword [rsp + 0x60], r15d
jbe 0x140082a14
lea r14, str.AppID
mov rdx, qword [r14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140082abc
add r14, 8
lea rax, [0x1400b8a80]
cmp r14, rax
jl 0x1400829ce
test r13d, r13d
je 0x140082abc
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140081b98
mov rsi, qword [rsp + 0x78]
jmp 0x140082abc
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
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]
mov r14d, r15d
test eax, eax
jne 0x140082a67
cmp dword [rsp + 0x60], r15d
seta r14b
mov eax, r15d
test rsi, rsi
je 0x140082a80
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r15
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], r15d
test eax, eax
jne 0x14008272d
test r13d, r13d
je 0x140082abc
test r14d, r14d
jne 0x140082abc
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14007cf08
test eax, eax
jne 0x14008272d
cmp word [rdi], 0x7d
je 0x140082736
mov r15, qword [rbp - 0x78]
jmp 0x140082316
mov ecx, eax
call fcn.14007c350
mov ebx, eax
test r14, r14
je 0x140082736
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140082736
mov ebx, 0x80020009
jmp 0x140082736
mov ecx, 0x80070057
call fcn.14006b6ec
int3
mov ecx, 0x8007000e
call fcn.14006b6ec
int3
mov ecx, 0x80004005
call fcn.14006b6ec
int3