Function at 0x140059390
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 [0x1402fa010]
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 0x1400593e0
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 0x1400594ce
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140059421
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 0x1400594ce
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140059476
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 0x1400594a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400594c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
mov eax, 1
jmp 0x14005960d
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1400594dd
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 0x14005956f
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14005951a
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 0x140059547
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140059568
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
xor eax, eax
jmp 0x14005960d
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140059581
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.1400179d0
nop
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.140062470
mov esi, eax
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1400595bd
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 0x1400595ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14005960b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401f3bf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret