Function at 0x140017570
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x1138]
mov eax, 0x1238
call fcn.140019e10
sub rsp, rax
mov qword [rbp + 8], 0xfffffffffffffffe
mov rax, qword [0x14002a520]
xor rax, rsp
mov qword [rbp + 0x1120], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov ecx, dword [rbp + 0x1180]
mov dword [rbp - 0x48], ecx
mov rcx, rax
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
cmp byte [rsi], 0x7d
je 0x140017d8f
mov dword [rsp + 0x68], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14001762f
test edi, edi
je 0x14001772e
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
cmp dword [rsp + 0x70], 0
je 0x14001772e
xor edx, edx
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x58], edx
mov qword [rbp - 0x50], rdx
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x140017687
cmp al, 0x5c
je 0x14001767e
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
movzx eax, byte [rax]
test al, al
jne 0x140017668
jmp 0x140017687
test rcx, rcx
jne 0x140017cf7
lea rbx, str.AppID
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400176ea
add rbx, 8
lea rax, [0x140020110]
cmp rbx, rax
jl 0x140017690
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14000b470
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
test edi, edi
je 0x140017727
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d00
mov rdx, rsi
mov rcx, rdi
call fcn.140018450
mov ebx, eax
test eax, eax
js 0x140017d00
xor ecx, ecx
mov dword [rbp - 0x58], ecx
jmp 0x140017a6d
mov dword [rbp - 0x58], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140017761
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
jmp 0x140017765
mov edi, dword [rsp + 0x68]
lea rdx, [0x140020084]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400178a5
lea rdx, [rbp + 0x120]
mov rcx, qword [rsp + 0x60]
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
cmp byte [rsi], 0x3d
jne 0x140017d48
cmp dword [rsp + 0x70], 0
je 0x140017815
xor ecx, ecx
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rcx
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rcx
mov r9, rsi
lea r8, [rbp + 0x120]
lea rdx, [rbp - 0x40]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140014040
mov ebx, eax
xor ecx, ecx
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x38], ecx
test eax, eax
js 0x140017d8f
jmp 0x140017a6d
cmp dword [rbp + 0x1180], 0
jne 0x140017893
test edi, edi
je 0x140017893
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x28]
call fcn.14000a3f0
test eax, eax
jne 0x140017d1f
lea rdx, [rbp + 0x120]
mov rdi, qword [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x140017d0c
test rdi, rdi
je 0x14001788c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140018450
jmp 0x1400175e0
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x1400178cf
nop
cmp al, 0x5c
je 0x1400178c6
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
movzx eax, byte [rax]
test al, al
jne 0x1400178b0
jmp 0x1400178cf
test rcx, rcx
jne 0x140017d48
cmp dword [rsp + 0x70], 0
je 0x140017ac1
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rbp - 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14000a3f0
test eax, eax
je 0x140017a2f
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14000a3f0
test eax, eax
je 0x140017a2f
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1400179c3
cmp qword [rbx], 0
je 0x1400179b4
lea rcx, [0x14001ea50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140017954
mov eax, 1
xor ebx, ebx
jmp 0x1400179fb
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1400179ba
mov qword [rsp + 0x50], 0
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call r10
jmp 0x1400179fb
cmp dword [rbx + 8], 0
jne 0x1400179c3
mov eax, 1
xor ebx, ebx
jmp 0x1400179fb
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140017d86
mov eax, ebx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140017a1a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x78], rdi
test eax, eax
jne 0x140017d86
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
cmp byte [rsi], 0x3d
jne 0x140017a6b
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140014040
mov ebx, eax
test eax, eax
js 0x140017d8f
xor ecx, ecx
cmp byte [rsi], 0x7b
jne 0x1400175ea
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140017a80
cmp rax, 1
jne 0x1400175ea
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rdi
call fcn.140017570
mov ebx, eax
test eax, eax
js 0x140017d8f
mov rdx, rsi
mov rcx, rdi
jmp 0x1400175db
cmp dword [rbp + 0x1180], 0
jne 0x140017ae9
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.14000a3f0
mov edi, eax
test eax, eax
jne 0x140017aee
jmp 0x140017af8
mov edi, 2
mov dword [rbp + 0x1180], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCR120.dll__mbsnbcpy_s]
test eax, eax
je 0x140017b36
cmp eax, 0xc
je 0x140017d65
cmp eax, 0x16
je 0x140017d5a
cmp eax, 0x22
je 0x140017d5a
cmp eax, 0x50
jne 0x140017d4f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140018450
mov ebx, eax
test eax, eax
js 0x140017d8f
cmp byte [rsi], 0x7b
jne 0x140017bc8
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140017b70
cmp rax, 1
jne 0x140017bc8
mov eax, dword [rbp + 0x1180]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140017570
mov ebx, eax
test eax, eax
jns 0x140017bb1
cmp dword [rbp + 0x1180], 0
je 0x140017d8f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1400160f0
mov ebx, eax
test eax, eax
js 0x140017d8f
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x1180], eax
cmp edi, 2
je 0x1400175ea
test edi, edi
je 0x140017beb
test eax, eax
je 0x140017d70
jmp 0x1400175ea
test eax, eax
je 0x140017c54
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.140015970
test eax, eax
je 0x140017c54
lea rdi, str.AppID
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400175ea
add rdi, 8
lea rax, [0x140020110]
cmp rdi, rax
jl 0x140017c10
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400175ea
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000b470
jmp 0x1400175ea
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.140015970
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140017c7e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], 0
test eax, eax
jne 0x140017d86
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400175ea
test edi, edi
jne 0x1400175ea
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], edi
mov qword [rbp], 0
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], edi
mov qword [rbp], 0
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], edi
mov qword [rbp], 0
test eax, eax
jne 0x140017d74
mov dword [rbp - 8], eax
jmp 0x1400175ea
mov dword [rbp - 0x58], 0
jmp 0x140017d48
mov dword [rbp - 0x58], 0
jmp 0x140017d8f
mov ecx, eax
call fcn.140004720
mov ebx, eax
test rdi, rdi
je 0x140017d3f
mov rcx, rdi
jmp 0x140017d31
mov ecx, eax
call fcn.140004720
mov ebx, eax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140017d3f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 0
jmp 0x140017d8f
mov ebx, 0x80020009
jmp 0x140017d8f
mov ecx, 0x80004005
call fcn.140004920
int3
mov ecx, 0x80070057
call fcn.140004920
int3
mov ecx, 0x8007000e
call fcn.140004920
int3
mov ecx, edi
jmp 0x140017d88
mov ecx, eax
call fcn.140004720
mov ebx, eax
mov dword [rbp - 8], 0
jmp 0x140017d8f
mov ecx, eax
call fcn.140004720
mov ebx, eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140017dab
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov eax, ebx
mov rcx, qword [rbp + 0x1120]
xor rcx, rsp
call fcn.140019e70
add rsp, 0x1238
pop rdi
pop rsi
pop rbx
pop rbp
ret