Function at 0x140013cac
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rdi, rcx
mov r8d, dword [0x14005bb88]
test r8b, 4
jne 0x140013cee
lea rdx, [rsp + 0x50]
lea rcx, [0x14005bb88]
call fcn.14001431c
mov rcx, qword [rax]
mov qword [rsp + 0xf8], rcx
mov r8d, ecx
xor ebx, ebx
mov dword [rsp + 0xe8], ebx
mov byte [rsp + 0xec], 3
mov r9d, r8d
shr r9d, 0xb
lea r14d, [rbx + 1]
and r9d, r14d
shr r8d, 0xa
and r8d, r14d
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov edx, 0xd9b0fd
lea rcx, [0x14005bb90]
call fcn.14000b95c
call fcn.1400169a0
mov rcx, rax
call fcn.1400173b8
mov r15d, 0x80000000
lea ecx, [rax + r15]
test r15d, ecx
jne 0x140013d82
cmp eax, 0x8007139f
je 0x140013d82
mov dword [rsp + 0x20], 0xd8
lea r9, str.OctBrokerSvc::ServiceManager::ShutdownOctagon
xor r8d, r8d
lea rdx, str.ShutdownOctagon:_SgrmSessionManager_EndAllSgrmSessions_failed
mov ecx, eax
call fcn.1400150b8
mov r8d, r14d
xor edx, edx
lea rcx, [0x140046270]
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIfEx]
nop dword [rax + rax]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140013dd6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], rax
mov qword [rdi + 0x38], rbx
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rdi + 0x40], rbx
lea rcx, [rsp + 0x68]
call fcn.14000ec60
lea rcx, [rsp + 0x50]
call fcn.14000ec60
mov rsi, qword [rdi + 0x48]
test rsi, rsi
je 0x140013e0f
mov qword [rdi + 0x48], rbx
mov rcx, rsi
call fcn.140015868
mov edx, 0xe0
mov rcx, rsi
call fcn.140040ab4
nop
jmp 0x140013e0f
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140013e69
mov rax, qword [rcx]
movabs r10, 0xd9b526b4385eba70
mov rax, qword [rax + 0x18]
call qword [0x140047a68]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x80], rax
mov qword [rdi + 0x20], rbx
lea rcx, [rsp + 0x78]
call fcn.14000ec60
lea rcx, [rsp + 0x68]
call fcn.14000ec60
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140013eae
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rax
mov qword [rdi + 0x28], rbx
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x90], rax
mov qword [rdi + 0x30], rbx
lea rcx, [rsp + 0x88]
call fcn.14000ec60
lea rcx, [rsp + 0x78]
call fcn.14000ec60
mov r8d, dword [0x14005bb88]
test r8b, 4
jne 0x140013eda
lea rdx, [rsp + 0x60]
lea rcx, [0x14005bb88]
call fcn.14001431c
mov rcx, qword [rax]
mov qword [rsp + 0xe0], rcx
mov r8d, ecx
and dword [rsp + 0xf0], 0
mov byte [rsp + 0xf4], 3
mov r9d, r8d
shr r9d, 0xb
and r9d, r14d
shr r8d, 0xa
and r8d, r14d
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r14d
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov edx, 0xd9b0fd
lea rcx, [0x14005bb90]
call fcn.14000b95c
call fcn.1400169a0
mov rdi, rax
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x140013f47
call qword [sym.imp.api_ms_win_power_base_l1_1_0.dll_PowerUnregisterSuspendResumeNotification]
nop dword [rax + rax]
mov qword [rdi + 0x68], rbx
mov rsi, qword [rdi + 0x58]
mov qword [rdi + 0x58], rbx
test rsi, rsi
je 0x140013f69
mov rcx, rsi
call fcn.140019fdc
mov edx, 0xd0
mov rcx, rsi
call fcn.140040ab4
mov rcx, rdi
call fcn.1400173b8
mov esi, eax
mov rcx, qword [rdi + 0x48]
mov qword [rsp + 0x98], rcx
mov qword [rdi + 0x48], rbx
mov rcx, qword [rdi + 0x50]
mov qword [rsp + 0xa0], rcx
mov qword [rdi + 0x50], rbx
lea rcx, [rsp + 0x98]
call fcn.14000ec60
mov byte [rdi + 0x60], bl
lea ecx, [rsi + r15]
test r15d, ecx
jne 0x140013fd4
cmp esi, 0x8007139f
je 0x140013fd4
mov dword [rsp + 0x20], 0x10d
lea r9, str.OctBrokerSvc::ServiceManager::ShutdownOctagon
xor r8d, r8d
lea rdx, str.ShutdownOctagon:_SgrmSessionManager_Uninitialize_failed
mov ecx, esi
call fcn.1400150b8
mov dword [rsp + 0xe0], ebx
mov qword [rsp + 0xe8], rbx
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlWMISecurity
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001406d
cmp dword [rsp + 0xe0], 2
jne 0x14001406d
lea rdx, str.c688cf83_9945_5ff6_0e1e_1ff1f8a2ec9a
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140014099
mov dword [rsp + 0x20], 0x131
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_delete_value
jmp 0x14001407c
mov dword [rsp + 0x20], 0x129
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_open_key
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
lea r9, str.OctBrokerSvc::_revertAccessPermissionsToTraceProvider
mov r8d, r14d
cmovle ecx, eax
call fcn.1400150b8
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400140b2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret