Function at 0x140013000
Capabilities:
Listen for remote procedure calls
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x88], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x68]
lea rcx, [0x1400310e8]
call fcn.140016980
xor r8d, r8d
mov rdx, rax
lea rcx, [0x1400311e0]
call fcn.140007550
xor r8d, r8d
lea rdx, [0x1400311e0]
lea rcx, [0x140007fa0]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
xor r15d, r15d
test rax, rax
je 0x14001309a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
jmp 0x1400130cf
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r15w
mov r8d, 0x52
lea rdx, str.DtsService::ApoControllerSystem::Error_creating_Thread_pool_work_for_device_events
lea rcx, [rbp + 0x68]
call fcn.14000f500
xor edx, edx
lea rcx, [rbp + 0x68]
call fcn.140005660
cmp byte [0x140031320], r15b
je 0x140013226
call fcn.14000d350
test al, al
jne 0x140013226
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r15w
lea rax, [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x68], r15
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r15w
mov r8d, 0x11
lea rdx, str.APO4_Bypass_Count
lea rcx, [rbp + 0x10]
call fcn.14000f500
nop
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x68]
lea rdx, [rbp + 0x10]
lea rcx, [0x1400311e0]
call fcn.14000c6f0
test al, al
je 0x1400131e0
cmp qword [rbp + 0x78], 0
je 0x1400131e0
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r15d
mov qword [rbp - 0x58], r15
mov dword [rsp + 0x28], 0x6011f
lea r8, str.SoftwareDTSAPO4x
lea rcx, [rbp - 0x68]
call fcn.140001d10
mov rbx, qword [rbp - 0x68]
test eax, eax
jne 0x1400131d1
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.BypassCount
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x1400131e0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x140013226
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013221
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013221
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
xor edx, edx
call fcn.140019f30
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp + 0x60], 0
mov word [rbp + 0x64], 0x100
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x60], r15d
mov qword [rbp - 0x70], r15
mov dword [rsp + 0x70], r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp - 0x78], r15
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x70]
lea rcx, str.Xperi.dtsAudioSettings_t5j2fzbtdg37r
call qword [sym.imp.api_ms_win_security_base_l1_2_2.dll_DeriveCapabilitySidsFromName]
test eax, eax
jne 0x1400132bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140013471
cmp dword [rsp + 0x60], 1
je 0x1400132d0
mov ebx, 0x57
jmp 0x140013471
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14001331a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140013471
mov dword [rbp - 0x4c], 2
mov dword [rbp - 0x50], 0x10000000
mov dword [rbp - 0x48], r15d
mov dword [rbp - 0x34], r15d
mov dword [rbp - 0x30], 5
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x1c], 2
mov dword [rbp - 0x20], 0x10000000
mov dword [rbp - 0x18], r15d
mov qword [rbp - 4], r15
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
mov qword [rbp + 8], rdx
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea ecx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, eax
test eax, eax
jne 0x140013471
lea edx, [rax + 1]
lea rcx, [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14001339e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140013471
xor r9d, r9d
mov r8, qword [rbp - 0x78]
lea edx, [r9 + 1]
lea rcx, [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1400133c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140013471
lea r9, [rbp + 0x30]
lea r8, str.DtsApoControllerRpcEndpoint
mov edx, 0xa
lea rcx, str.ncalrpc
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov ebx, eax
test eax, eax
jne 0x140013471
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x4d2
lea r9d, [rbx + 0x21]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140024610]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf3]
mov ebx, eax
test eax, eax
jne 0x140013471
lea rcx, [0x1400310d8]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov ebx, eax
test eax, eax
jne 0x140013471
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1400310d8]
lea rcx, [0x140024610]
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov ebx, eax
test eax, eax
jne 0x140013471
xor r8d, r8d
mov edx, 0x4d2
lea ecx, [rax + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
cmove ebx, r15d
mov r14, qword [rbp - 0x70]
test r14, r14
je 0x1400134a6
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14001349d
mov esi, eax
mov rdi, r14
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], r15
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x140013487
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x78]
test r14, r14
je 0x1400134df
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400134d6
mov esi, eax
mov rdi, r14
nop dword [rax]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], r15
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x1400134c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400134ee
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400134fd
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14001d660
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret