Function at 0x14005b3e0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x17], rdx
xor r14d, r14d
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x27], r14
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b430
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x27], r14
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareRegisteredApplications
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005b51e
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b471
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x27], r14
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareRegisteredApplications
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14005b51e
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b4c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x27], r14
mov rdx, qword [rbx]
sub rdx, 0x18
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b4f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14005b514
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov eax, 1
jmp 0x14005b65d
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b52d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x27], r14
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareRegisteredApplications
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005b5bf
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b56a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x27], r14
mov rdx, qword [rbx]
sub rdx, 0x18
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b597
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14005b5b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
xor eax, eax
jmp 0x14005b65d
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b5d1
mov rdx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rax, [rbp + 7]
mov qword [rbp + 0x1f], rax
lea r8, str.Capabilities
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.1400179b0
nop
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.140064510
mov esi, eax
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005b60d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x27], r14
mov rdx, qword [rbx]
sub rdx, 0x18
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b63a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14005b65b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret