Function at 0x140016f30
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21c8]
mov eax, 0x22c8
call fcn.140024b90
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x140048840]
xor rax, rsp
mov qword [rbp + 0x21b0], rax
mov dword [rsp + 0x4c], r9d
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0
mov ecx, dword [rbp + 0x2210]
mov dword [rbp - 0x78], ecx
mov rcx, rax
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
cmp word [rdi], 0x7d
je 0x1400175b6
mov dword [rsp + 0x48], 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
sete sil
lea rdx, [0x140033a78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140016ff2
test esi, esi
je 0x1400170d0
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
cmp dword [rsp + 0x4c], 0
je 0x1400170d0
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
mov rcx, rdi
movzx eax, word [rdi]
test ax, ax
je 0x140017052
nop
cmp ax, 0x5c
je 0x140017049
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140017030
jmp 0x140017052
test rcx, rcx
jne 0x140017581
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400170a2
add rbx, 8
lea rax, [0x140033b80]
cmp rbx, rax
jl 0x140017060
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140016820
test esi, esi
je 0x1400170d0
mov rdx, rdi
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
mov rdx, rdi
mov rcx, rsi
call fcn.1400177a0
jmp 0x1400172e7
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x140017102
mov dword [rsp + 0x48], eax
mov rdx, rdi
mov rcx, rsi
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
lea rdx, [0x140033a70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001720f
lea rdx, [rbp + 0x1b0]
mov rcx, rsi
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
mov rdx, rdi
mov rcx, rsi
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
cmp word [rdi], 0x3d
jne 0x140017581
cmp dword [rsp + 0x4c], 0
je 0x14001718c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
mov r9, rdi
lea r8, [rbp + 0x1b0]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400148e0
mov ebx, eax
jmp 0x1400172e9
cmp dword [rbp + 0x2210], 0
jne 0x1400171ff
cmp dword [rsp + 0x48], 0
je 0x1400171ff
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400162d0
test eax, eax
jne 0x140017566
lea rdx, [rbp + 0x1b0]
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14001754d
test rsi, rsi
je 0x1400171fa
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.1400177a0
jmp 0x140016fa2
mov rcx, rdi
movzx eax, word [rdi]
test ax, ax
je 0x140017242
nop word [rax + rax]
cmp ax, 0x5c
je 0x140017239
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140017220
jmp 0x140017242
test rcx, rcx
jne 0x140017581
cmp dword [rsp + 0x4c], 0
je 0x140017346
mov r9d, 0x2001f
mov r8, rdi
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400162d0
test eax, eax
je 0x1400172b9
mov r9d, 0x20019
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400162d0
test eax, eax
je 0x1400172b9
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400152a0
test eax, eax
jne 0x1400175ad
mov rdx, rdi
mov rcx, rsi
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
cmp word [rdi], 0x3d
jne 0x1400172f1
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400148e0
mov ebx, eax
test eax, eax
js 0x1400175b6
cmp word [rdi], 0x7b
jne 0x140016fac
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x140017300
cmp rax, 1
jne 0x140016fac
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x4c]
mov r8, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rsi
call fcn.140016f30
mov ebx, eax
test eax, eax
js 0x1400175b6
mov rdx, rdi
mov rcx, rsi
jmp 0x140016f9d
cmp dword [rbp + 0x2210], 0
jne 0x14001736f
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400162d0
mov esi, eax
test eax, eax
jne 0x140017374
jmp 0x14001737e
mov esi, 2
mov dword [rbp + 0x2210], 1
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.140023e1c
test eax, eax
je 0x1400173bb
cmp eax, 0xc
je 0x14001759e
cmp eax, 0x16
je 0x140017593
cmp eax, 0x22
je 0x140017593
cmp eax, 0x50
jne 0x140017588
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.1400177a0
mov ebx, eax
test eax, eax
js 0x1400175b6
cmp word [rdi], 0x7b
jne 0x14001744c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400173f3
cmp rax, 1
jne 0x14001744c
mov eax, dword [rbp + 0x2210]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140016f30
mov ebx, eax
test eax, eax
jns 0x140017435
cmp dword [rbp + 0x2210], 0
je 0x1400175b6
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140016110
mov ebx, eax
test eax, eax
js 0x1400175b6
mov eax, dword [rbp - 0x78]
mov dword [rbp + 0x2210], eax
cmp esi, 2
je 0x140016fac
test esi, esi
je 0x14001746f
test eax, eax
je 0x1400175a9
jmp 0x140016fac
test eax, eax
je 0x1400174d3
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.140015cc0
test eax, eax
je 0x1400174d3
lea rsi, str.AppID
nop dword [rax]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140016fac
add rsi, 8
lea rax, [0x140033b80]
cmp rsi, rax
jl 0x140017490
cmp dword [rsp + 0x48], 0
je 0x140016fac
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.140016820
jmp 0x140016fac
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.140015cc0
mov esi, eax
xor eax, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400174fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0
test eax, eax
jne 0x1400175ad
cmp dword [rsp + 0x48], eax
je 0x140016fac
test esi, esi
jne 0x140016fac
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x68], 0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.1400157a0
test eax, eax
jne 0x1400175ad
jmp 0x140016fac
mov ecx, eax
call fcn.140014eb0
mov ebx, eax
test rsi, rsi
je 0x1400175b6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400175b6
mov ecx, eax
call fcn.140014eb0
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400175b6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400175b6
mov ebx, 0x80020009
jmp 0x1400175b6
mov ecx, 0x80004005
call fcn.1400150a0
int3
mov ecx, 0x80070057
call fcn.1400150a0
int3
mov ecx, 0x8007000e
call fcn.1400150a0
int3
mov ecx, esi
jmp 0x1400175af
mov ecx, eax
call fcn.140014eb0
mov ebx, eax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400175c9
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21b0]
xor rcx, rsp
call fcn.140024bf0
add rsp, 0x22c8
pop rdi
pop rsi
pop rbx
pop rbp
ret