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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10e8]
mov eax, 0x11e8
call fcn.14000f1e0
sub rsp, rax
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor r15d, r15d
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], r15d
xor r13d, r13d
mov qword [rbp - 0x70], r13
call fcn.140007918
test eax, eax
mov ebx, eax
js 0x140008411
cmp byte [rsi], 0x7d
je 0x140008411
mov r12d, 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 0x140007b54
test edi, edi
je 0x140007c2a
mov rdx, rsi
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
cmp dword [rsp + 0x70], 0
je 0x140007c2a
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov rcx, rsi
xor ebx, ebx
mov al, byte [rsi]
jmp 0x140007b9a
cmp al, 0x5c
je 0x140007ba0
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140007b8b
jmp 0x140007ba3
mov rbx, rcx
test rbx, rbx
jne 0x14000840c
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140007bd8
add rbx, 8
lea rax, str.RegOpenKeyTransactedA
cmp rbx, rax
jl 0x140007bb3
mov eax, r12d
jmp 0x140007bda
xor eax, eax
test eax, eax
je 0x140007bf3
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140007688
test edi, edi
je 0x140007c2a
mov rdx, rsi
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
mov rdx, rsi
mov rcx, r14
call fcn.1400074e4
mov ebx, eax
test eax, eax
js 0x140008411
mov edi, dword [rsp + 0x70]
jmp 0x140007feb
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140007c56
xor r12d, r12d
mov rdx, rsi
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
lea rdx, [0x140010bf0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140007d5c
lea rdx, [rbp + 0xd0]
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
mov rdx, rsi
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
cmp byte [rsi], 0x3d
jne 0x14000840c
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140007ce4
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9, rsi
lea r8, [rbp + 0xd0]
lea rdx, [rbp - 0x68]
mov rcx, r14
call fcn.140006e60
mov ebx, eax
test eax, eax
js 0x140008411
jmp 0x140007feb
cmp dword [rbp + 0x1150], 0
jne 0x140007d4c
test r12d, r12d
je 0x140007d4c
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400075a4
test eax, eax
jne 0x1400083f2
lea rdx, [rbp + 0xd0]
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x1400083df
test rdi, rdi
je 0x140007d4c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call fcn.1400074e4
jmp 0x140007b07
mov rcx, rsi
xor ebx, ebx
mov al, byte [rsi]
jmp 0x140007d74
cmp al, 0x5c
je 0x140007d7a
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140007d65
jmp 0x140007d7d
mov rbx, rcx
test rbx, rbx
jne 0x14000840c
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140008036
and qword [rsp + 0x60], rbx
test r13, r13
je 0x140007e16
cmp qword [r13], rbx
je 0x140007e03
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140007e0a
lea rdx, str.RegOpenKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140007e0a
and qword [rsp + 0x30], rbx
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
mov rax, r10
call qword [0x140010580]
jmp 0x140007e3a
cmp dword [r13 + 8], 0
jne 0x140007e16
mov eax, 1
mov rbx, qword [rsp + 0x68]
jmp 0x140007e3a
lea rax, [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007e59
test r15, r15
je 0x140007e4c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
je 0x140007fad
and qword [rsp + 0x60], 0
test r13, r13
je 0x140007ede
cmp qword [r13], 0
je 0x140007ed0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140007ed7
lea rdx, str.RegOpenKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140007ed7
and qword [rsp + 0x30], 0
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov rax, r10
call qword [0x140010580]
jmp 0x140007efd
cmp dword [r13 + 8], 0
jne 0x140007ede
mov eax, 1
jmp 0x140007efd
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007f1c
test r15, r15
je 0x140007f0f
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
je 0x140007fad
and qword [rsp + 0x60], 0
lea rax, [rbp - 0x50]
test r13, r13
je 0x140007f52
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8, rsi
mov rdx, rbx
mov rcx, r13
call fcn.140006cbc
jmp 0x140007f86
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140007fa5
test r15, r15
je 0x140007f98
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
jne 0x1400083d8
mov rdx, rsi
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
cmp byte [rsi], 0x3d
jne 0x140007feb
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140006e60
mov ebx, eax
mov r15, qword [rbp - 0x80]
test eax, eax
js 0x140008411
mov r13, qword [rbp - 0x70]
cmp byte [rsi], 0x7b
jne 0x140007b11
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x140007ff8
cmp rax, 1
jne 0x140007b11
and dword [rsp + 0x20], 0
mov r9d, edi
mov r8, r15
mov rdx, rsi
mov rcx, r14
call fcn.140007aa8
mov ebx, eax
test eax, eax
js 0x140008411
mov rdx, rsi
mov rcx, r14
jmp 0x140007b02
mov ebx, dword [rbp + 0x1150]
test ebx, ebx
jne 0x140008109
and qword [rsp + 0x60], 0
test r13, r13
je 0x1400080c3
cmp qword [r13], 0
je 0x1400080b5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400080bc
lea rdx, str.RegOpenKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1400080bc
and qword [rsp + 0x30], 0
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
mov rax, r10
call qword [0x140010580]
jmp 0x1400080e4
cmp dword [r13 + 8], 0
jne 0x1400080c3
mov edi, 1
jmp 0x1400080e6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x140008107
test r15, r15
je 0x1400080fa
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
jmp 0x14000810e
mov edi, 2
mov r14d, 1
test edi, edi
cmove r14d, ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
test eax, eax
je 0x140008158
cmp eax, 0xc
je 0x140008444
cmp eax, 0x16
je 0x14000845a
cmp eax, 0x22
je 0x14000845a
cmp eax, 0x50
jne 0x14000844f
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400074e4
mov ebx, eax
test eax, eax
js 0x140008411
cmp byte [rsi], 0x7b
jne 0x1400081e1
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x14000818f
cmp rax, 1
jne 0x1400081e1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.140007aa8
mov ebx, eax
test eax, eax
jns 0x1400081c5
test r14d, r14d
je 0x140008411
mov rdx, rsi
mov r14, qword [rsp + 0x78]
mov rcx, r14
call fcn.140007918
mov ebx, eax
test eax, eax
js 0x140008411
jmp 0x1400081e6
mov r14, qword [rsp + 0x78]
cmp edi, 2
je 0x140007b11
test edi, edi
je 0x14000820e
cmp dword [rbp + 0x1150], 0
jne 0x140007b11
mov ecx, edi
call fcn.140007908
mov ebx, eax
jmp 0x140008411
cmp dword [rbp + 0x1150], 0
je 0x1400082d6
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000826d
xor eax, eax
jmp 0x140008276
xor eax, eax
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x1400082d6
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400082a9
add rdi, 8
lea rax, str.RegOpenKeyTransactedA
cmp rdi, rax
jl 0x140008281
mov eax, 1
jmp 0x1400082ab
xor eax, eax
test eax, eax
je 0x140007b11
test r12d, r12d
je 0x140007b11
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140007688
mov r13, qword [rbp - 0x70]
mov r15, qword [rbp - 0x80]
jmp 0x140007b11
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edi, edi
test eax, eax
jne 0x14000832e
cmp dword [rsp + 0x60], edi
seta dil
xor eax, eax
test r15, r15
je 0x140008345
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r15d, r15d
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
jne 0x1400083d8
test r12d, r12d
je 0x140007b11
test edi, edi
jne 0x140007b11
cmp byte [0x140018bd8], dil
jne 0x1400083a6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140008396
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140018bd0], rax
jmp 0x14000839d
mov rax, qword [0x140018bd0]
mov byte [0x140018bd8], 1
jmp 0x1400083ad
mov rax, qword [0x140018bd0]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
test rax, rax
je 0x1400083c9
xor r9d, r9d
xor r8d, r8d
call qword [0x140010580]
jmp 0x1400083d0
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
test eax, eax
je 0x140007b11
mov ecx, eax
jmp 0x140008202
mov ecx, eax
call fcn.140007908
mov ebx, eax
test rdi, rdi
je 0x140008411
mov rcx, rdi
jmp 0x140008404
mov ecx, eax
call fcn.140007908
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140008411
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008411
mov ebx, 0x80020009
test r15, r15
je 0x14000841f
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.14000e0a0
add rsp, 0x11e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1400074c0
int3
mov ecx, 0x80004005
call fcn.1400074c0
int3
mov ecx, 0x80070057
call fcn.1400074c0
int3