Function at 0x140013b90
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, 2
jne 0x140013bd2
lea rdx, [rsp + 0x50]
lea rcx, [0x14005bb88]
call fcn.140014200
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, 9
lea r14d, [rbx + 1]
and r9d, r14d
shr r8d, 8
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.14000b83c
call fcn.140016870
mov rcx, rax
call fcn.140017288
mov r15d, 0x80000000
lea ecx, [rax + r15]
test r15d, ecx
jne 0x140013c66
cmp eax, 0x8007139f
je 0x140013c66
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.140014f88
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 0x140013cba
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.14000eb40
lea rcx, [rsp + 0x50]
call fcn.14000eb40
mov rsi, qword [rdi + 0x48]
test rsi, rsi
je 0x140013cf3
mov qword [rdi + 0x48], rbx
mov rcx, rsi
call fcn.140015738
mov edx, 0xe0
mov rcx, rsi
call fcn.140040994
nop
jmp 0x140013cf3
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140013d4d
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.14000eb40
lea rcx, [rsp + 0x68]
call fcn.14000eb40
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140013d92
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.14000eb40
lea rcx, [rsp + 0x78]
call fcn.14000eb40
mov r8d, dword [0x14005bb88]
test r8b, 2
jne 0x140013dbe
lea rdx, [rsp + 0x60]
lea rcx, [0x14005bb88]
call fcn.140014200
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, 9
and r9d, r14d
shr r8d, 8
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.14000b83c
call fcn.140016870
mov rdi, rax
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x140013e2b
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 0x140013e4d
mov rcx, rsi
call fcn.140019eac
mov edx, 0xd0
mov rcx, rsi
call fcn.140040994
mov rcx, rdi
call fcn.140017288
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.14000eb40
mov byte [rdi + 0x60], bl
lea ecx, [rsi + r15]
test r15d, ecx
jne 0x140013eb8
cmp esi, 0x8007139f
je 0x140013eb8
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.140014f88
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 0x140013f51
cmp dword [rsp + 0xe0], 2
jne 0x140013f51
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 0x140013f7d
mov dword [rsp + 0x20], 0x131
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_delete_value
jmp 0x140013f60
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.140014f88
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140013f96
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