Function at 0x1400607a0
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 - 0x21d8]
mov eax, 0x22d8
call fcn.14010b680
sub rsp, rax
mov rax, qword [0x1401970d0]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x60], r9d
mov r14, r8
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov r13, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov r12d, eax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
cmp word [rsi], 0x7d
je 0x140060bd2
mov r15d, 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14006084c
test edi, edi
jne 0x140060923
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
cmp dword [rsp + 0x60], 0
je 0x140060923
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x1400608a7
cmp ax, 0x5c
je 0x14006089e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140060885
jmp 0x1400608a7
test rcx, rcx
jne 0x140060fb4
lea rbx, str.AppID
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400608e9
add rbx, 8
lea rax, [0x140168ac0]
cmp rbx, rax
jl 0x1400608b0
mov qword [rbp - 0x70], r14
xor eax, eax
mov dword [rbp - 0x68], eax
mov qword [rbp - 0x60], rax
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.14005f020
test edi, edi
jne 0x140060923
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
mov rdx, rsi
mov rcx, r13
call fcn.1400600a0
mov ebx, eax
test eax, eax
js 0x140060bd2
mov edi, dword [rsp + 0x60]
xor r15d, r15d
jmp 0x140060c42
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14006094f
xor r15d, r15d
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
lea rdx, [0x1401621e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140060a50
lea rdx, [rbp + 0x1c0]
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
cmp word [rsi], 0x3d
jne 0x140060fb4
mov edi, dword [rsp + 0x60]
test edi, edi
je 0x1400609da
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], r14
xor r15d, r15d
mov dword [rbp - 0x68], r15d
mov qword [rbp - 0x60], r15
mov r9, rsi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.14005faa0
mov ebx, eax
jmp 0x140060c3e
cmp dword [rbp + 0x2240], 0
jne 0x140060a40
test r15d, r15d
je 0x140060a40
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.14005ef20
test eax, eax
jne 0x140060f93
lea rdx, [rbp + 0x1c0]
mov rdi, qword [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140060f73
test rdi, rdi
je 0x140060a40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r13
call fcn.1400600a0
jmp 0x140060804
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140060a82
nop dword [rax + rax]
cmp ax, 0x5c
je 0x140060a79
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140060a60
jmp 0x140060a82
test rcx, rcx
jne 0x140060fb4
mov edi, dword [rsp + 0x60]
test edi, edi
je 0x140060c92
mov r9d, 0x2001f
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14005ef20
test eax, eax
je 0x140060c05
mov r9d, 0x20019
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14005ef20
test eax, eax
je 0x140060c05
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140060b62
cmp qword [rbx], r15
je 0x140060b55
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140060fbe
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140060b5b
mov qword [rsp + 0x50], r15
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call r10
jmp 0x140060b99
cmp dword [rbx + 8], r15d
jne 0x140060b62
mov eax, 1
jmp 0x140060b99
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140060bc0
mov eax, r15d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140060bb0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x70]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r15d
jmp 0x140060bc5
mov r12, qword [rsp + 0x78]
test eax, eax
je 0x140060c0d
mov ecx, eax
call fcn.14005ebd0
mov ebx, eax
test r12, r12
je 0x140060be0
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.14010a950
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r12, qword [rsp + 0x78]
xor r15d, r15d
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
cmp word [rsi], 0x3d
jne 0x140060c42
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.14005faa0
mov ebx, eax
mov r12, qword [rsp + 0x78]
test eax, eax
js 0x140060bd2
cmp word [rsi], 0x7b
jne 0x14006080e
mov rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140060c53
cmp rax, 1
jne 0x14006080e
mov dword [rsp + 0x20], r15d
mov r9d, edi
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.1400607a0
mov ebx, eax
test eax, eax
js 0x140060bd2
mov rdx, rsi
mov rcx, r13
jmp 0x1400607ff
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140060cbb
mov r9d, 0x20019
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14005ef20
mov edi, eax
mov r12, qword [rsp + 0x78]
jmp 0x140060cc0
mov edi, 2
mov r14d, 1
test edi, edi
cmove r14d, ebx
mov r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140124cdc
test eax, eax
je 0x140060d0c
cmp eax, 0xc
je 0x140060fd4
cmp eax, 0x16
je 0x140060fea
cmp eax, 0x22
je 0x140060fea
cmp eax, 0x50
jne 0x140060fdf
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
mov rdx, rsi
mov rcx, r13
call fcn.1400600a0
mov ebx, eax
test eax, eax
js 0x140060bd2
cmp word [rsi], 0x7b
jne 0x140060d8d
mov rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140060d43
cmp rax, 1
jne 0x140060d8d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.1400607a0
mov ebx, eax
test eax, eax
jns 0x140060d78
test r14d, r14d
je 0x140060bd2
mov rdx, rsi
mov rcx, r13
call fcn.14005f8f0
mov ebx, eax
test eax, eax
js 0x140060bd2
cmp edi, 2
je 0x140060da3
test edi, edi
je 0x140060dad
cmp dword [rbp + 0x2240], 0
je 0x140060fcd
mov r14, qword [rsp + 0x68]
jmp 0x14006080e
xor r14d, r14d
cmp dword [rbp + 0x2240], r14d
je 0x140060e6b
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140060e6b
mov eax, r14d
cmp dword [rsp + 0x70], r14d
seta al
test eax, eax
je 0x140060e6b
lea rdi, str.AppID
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140060da3
add rdi, 8
lea rax, [0x140168ac0]
cmp rdi, rax
jl 0x140060e20
test r15d, r15d
je 0x140060da3
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.14005f020
mov r12, qword [rsp + 0x78]
mov r14, qword [rsp + 0x68]
jmp 0x14006080e
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r14d
test eax, eax
jne 0x140060ebd
cmp dword [rsp + 0x70], eax
seta dil
mov eax, r14d
test r12, r12
je 0x140060ed6
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, r14
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
test eax, eax
jne 0x140060bc9
test r15d, r15d
je 0x140060da3
test edi, edi
jne 0x140060da3
cmp byte [0x1401a5dd8], dil
jne 0x140060f3e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140060f2e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401a5dd0], rax
mov byte [0x1401a5dd8], 1
jmp 0x140060f45
mov rax, qword [0x1401a5dd0]
mov byte [0x1401a5dd8], 1
jmp 0x140060f45
mov rax, qword [0x1401a5dd0]
lea rdx, [rbp - 0x50]
mov r14, qword [rsp + 0x68]
mov rcx, r14
test rax, rax
je 0x140060f60
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140060f66
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140060bc9
jmp 0x14006080e
mov ecx, eax
call fcn.14005ebd0
mov ebx, eax
test rdi, rdi
je 0x140060bd2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140060bd2
mov ecx, eax
call fcn.14005ebd0
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140060bd2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140060bd2
mov ebx, 0x80020009
jmp 0x140060bd2
mov eax, 1
mov r12, qword [rsp + 0x78]
jmp 0x140060bc9
mov ecx, edi
jmp 0x140060bcb
mov ecx, 0x8007000e
call fcn.140016430
int3
mov ecx, 0x80004005
call fcn.140016430
int3
mov ecx, 0x80070057
call fcn.140016430
int3