Function at 0x140157180
Capabilities:
Listen for remote procedure calls

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x68]
sub rsp, 0x158
mov rax, qword [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov qword [r11 + 0x18], r14
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
lea ecx, [r15 + 0x20]
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__RpcServerStart]
mov qword [rsp + 0x70], 0x1a
mov qword [rsp + 0x78], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402a45e8]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1402a45f0]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x60]
mov byte [rax + 0x1a], r15b
mov qword [rsp + 0x60], rax
call fcn.14017f050
mov rcx, qword [str._D_]
lea r9, [rbp - 0x70]
xorps xmm0, xmm0
mov byte [0x14039e150], r15b
xor eax, eax
mov dword [rbp + 0x38], r15d
mov qword [rbp + 0x30], rax
lea r8, [rbp - 0x74]
lea rax, [rbp - 0x78]
mov word [rbp + 0x3c], 0x100
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x78], r15d
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x74], r15d
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x60], r15
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
call qword [sym.imp.api_ms_win_security_base_l1_2_2.dll_DeriveCapabilitySidsFromName]
test eax, eax
jne 0x14015730d
lea ecx, [rax + 0x30]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__DeriveCapabilitySidsFromName_Fail]
mov qword [rsp + 0x70], 0x2d
mov rdx, rax
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a4618]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402a4628]
movsd qword [rax + 0x20], xmm0
mov ecx, dword [0x1402a4630]
mov dword [rax + 0x28], ecx
movzx eax, byte [0x1402a4634]
mov byte [rdx + 0x2c], al
mov byte [rdx + 0x2d], r15b
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
call fcn.14017f050
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1401578c8
cmp dword [rbp - 0x78], 1
je 0x1401573a4
mov ecx, 0x50
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movaps xmm0, xmmword [str._RpcServer__DeriveCapabilitySidsFromName_capabilitySidCount___1_Fail]
mov rdx, rax
mov qword [rsp + 0x70], 0x45
mov qword [rsp + 0x78], 0x4f
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1402a4650]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1402a4660]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1402a4670]
movups xmmword [rax + 0x30], xmm1
mov ecx, dword [0x1402a4680]
mov dword [rax + 0x40], ecx
lea rcx, [rsp + 0x60]
movzx eax, byte [0x1402a4684]
mov byte [rdx + 0x44], al
mov byte [rdx + 0x45], r15b
mov qword [rsp + 0x60], rdx
call fcn.14017f050
mov edi, 0x57
jmp 0x1401578c8
lea rax, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x38]
mov dword [rsp + 0x48], r15d
xor r8d, r8d
mov dword [rsp + 0x40], r15d
mov dl, 1
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140157448
lea ecx, [rax + 0x30]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__AllocateAndInitializeSid_Fail]
mov qword [rsp + 0x70], 0x29
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a4698]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402a46a8]
movsd qword [rax + 0x20], xmm0
movzx ecx, byte [0x1402a46b0]
mov byte [rax + 0x28], cl
mov byte [rax + 0x29], r15b
mov qword [rsp + 0x60], rax
jmp 0x1401572f6
mov rax, qword [rbp - 0x68]
lea r9, [rbp - 0x60]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 0x70]
xor r8d, r8d
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 dword [rbp - 0x1c], 2
mov dword [rbp - 0x20], 0x10000000
mov dword [rbp - 0x18], r15d
mov qword [rbp - 4], r15
mov rcx, qword [rax]
mov qword [rbp + 8], rcx
lea ecx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov edi, eax
test eax, eax
je 0x140157505
mov ecx, 0x30
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__SetEntriesInAcl_Fail]
mov qword [rsp + 0x70], 0x20
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a46c8]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], r15b
mov qword [rsp + 0x60], rax
call fcn.14017f050
jmp 0x1401578c8
mov edx, 1
lea rcx, [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14015757f
lea ecx, [rax + 0x30]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__InitializeSecurityDescriptor_Fail]
mov qword [rsp + 0x70], 0x2d
mov rdx, rax
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a46f0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402a4700]
movsd qword [rax + 0x20], xmm0
mov ecx, dword [0x1402a4708]
mov dword [rax + 0x28], ecx
movzx eax, byte [0x1402a470c]
jmp 0x1401572ea
mov r8, qword [rbp - 0x60]
lea rcx, [rbp + 0x10]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x140157600
lea ecx, [rax + 0x30]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__SetSecurityDescriptorDacl_Fail]
mov qword [rsp + 0x70], 0x2a
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a4720]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402a4730]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1402a4738]
mov word [rax + 0x28], cx
mov byte [rax + 0x2a], r15b
mov qword [rsp + 0x60], rax
jmp 0x1401572f6
lea r9, [rbp + 0x10]
mov edx, 0xa
lea r8, str.AsusHelpRpcEndpoint
lea rcx, str.ncalrpc
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov edi, eax
test eax, eax
je 0x140157693
mov ecx, 0x30
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__RpcServerUseProtseqEp_Fail]
mov qword [rsp + 0x70], 0x26
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a4778]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402a4788]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x1402a478c]
mov word [rax + 0x24], cx
lea rcx, [rsp + 0x60]
mov byte [rax + 0x26], r15b
mov qword [rsp + 0x60], rax
call fcn.14017f050
jmp 0x1401578c8
mov rcx, qword [section..data]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov r9d, 0x21
lea rax, [0x140156ea0]
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x4d2
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf3]
mov edi, eax
test eax, eax
je 0x140157742
mov ecx, 0x30
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__RpcServerRegisterIf3_Fail]
mov qword [rsp + 0x70], 0x25
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a47a0]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402a47b0]
mov dword [rax + 0x20], ecx
movzx ecx, byte [0x1402a47b4]
mov byte [rax + 0x24], cl
lea rcx, [rsp + 0x60]
mov byte [rax + 0x25], r15b
mov qword [rsp + 0x60], rax
call fcn.14017f050
jmp 0x1401578c8
lea rcx, [0x14039e158]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov edi, eax
test eax, eax
je 0x1401577c4
mov ecx, 0x30
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__RpcServerInqBindings_Fail]
mov qword [rsp + 0x70], 0x25
mov qword [rsp + 0x78], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402a47c8]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402a47d8]
mov dword [rax + 0x20], ecx
movzx ecx, byte [0x1402a47dc]
mov byte [rax + 0x24], cl
lea rcx, [rsp + 0x60]
mov byte [rax + 0x25], r15b
mov qword [rsp + 0x60], rax
call fcn.14017f050
jmp 0x1401578c8
mov rdx, qword [0x14039e158]
xor r9d, r9d
mov rcx, qword [section..data]
xor r8d, r8d
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov qword [rsp + 0x60], r15
mov edi, eax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
test eax, eax
je 0x140157853
mov ecx, 0x20
call fcn.1400d1570
movups xmm0, xmmword [str._RpcServer__RpcEpRegister_Fail]
mov qword [rsp + 0x70], 0x1e
mov qword [rsp + 0x78], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402a47f0]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x1402a47f8]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x1402a47fc]
mov word [rax + 0x1c], cx
lea rcx, [rsp + 0x60]
mov byte [rax + 0x1e], r15b
mov qword [rsp + 0x60], rax
call fcn.14017f050
jmp 0x1401578c8
mov r8d, 0x20
lea rdx, str._RpcServer__RpcServerStartListen
lea rcx, [rsp + 0x60]
call fcn.1400e82b0
lea rcx, [rsp + 0x60]
call fcn.14017f050
xor r8d, r8d
mov edx, 0x4d2
lea ecx, [r8 + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov r8d, 0x27
mov qword [rsp + 0x60], r15
lea rdx, str._RpcServer__RpcServerStartListen_ret_d
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], SafeArrayGetLBound
mov edi, eax
call fcn.1400e82b0
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.14017f050
cmp edi, 0x6b1
cmove edi, r15d
mov qword [rsp + 0x170], rbx
lea rdx, str._RpcServer__Cleaning_RpcServer_resource_ret_d
mov r8d, 0x2e
mov qword [rsp + 0x178], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayGetLBound
call fcn.1400e82b0
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.14017f050
mov r14, qword [rbp - 0x58]
test r14, r14
je 0x140157942
mov eax, dword [rbp - 0x74]
test eax, eax
je 0x140157939
mov esi, eax
mov rbx, r14
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], r15
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x140157923
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rbp - 0x70]
test r14, r14
je 0x140157976
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14015796d
mov esi, eax
mov rbx, r14
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], r15
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x140157957
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x68]
mov r15, qword [rsp + 0x150]
mov r14, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
test rcx, rcx
je 0x1401579a5
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1401579b4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401e3ce0
add rsp, 0x158
pop rdi
pop rbp
ret