Function at 0x140077a18
Capabilities:
Bypass uac via rpc

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r15d, r8d
mov r13, rdx
mov r12, rcx
mov rbx, qword [rsp + 0x218]
xor esi, esi
mov r14b, sil
mov qword [r11 - 0x130], rsi
mov dword [r11 - 0x78], esi
test rbx, rbx
je 0x140077a76
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea rdi, [rsp + 0xa0]
xor eax, eax
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x158]
lea ecx, [rax + 0x38]
rep stosb byte [rdi], al
mov dword [rsp + 0x17c], 1
mov word [rsp + 0x180], si
lea rdi, [rsp + 0xe0]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], 0x44
mov qword [rsp + 0x90], rsi
lea rdi, [rsp + 0xb8]
lea ecx, [rax + 0x28]
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ncalrpc
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov edi, eax
test eax, eax
jne 0x140077bfd
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov edi, eax
lea rcx, [rsp + 0x88]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test edi, edi
jne 0x140077bfd
mov edx, dword [rsp + 0x80]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
xor edi, edi
test rax, rax
je 0x140077bf6
lea r9, [rsp + 0x80]
mov r8, rax
xor edx, edx
lea ecx, [rdi + 0x16]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140077be3
lea eax, [rdi + 3]
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xc4], eax
mov qword [rsp + 0xbc], 1
mov qword [rsp + 0xd8], rsi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdi + 0xa]
lea r8d, [rdi + 6]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov edi, eax
test eax, eax
jne 0x140077beb
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
and qword [rsp + 0x78], 0
jmp 0x140077beb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140077bfb
mov edi, 8
xor esi, esi
cmp qword [rsp + 0x78], rsi
je 0x140077c0f
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
test edi, edi
jne 0x140077d60
lea edx, [rdi + 0x70]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x140077c5e
mov dword [rsp + 0x10c], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x110], rax
test rax, rax
jne 0x140077c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140077d60
lea rax, [rsp + 0x150]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], r15d
mov r9, r13
mov r8, r12
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xe0]
call fcn.140001000
or edi, 0xffffffff
mov edx, edi
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x140077ccd
or ecx, 0xffffffff
call qword [sym.imp.RPCRT4.dll_RpcRaiseException]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test eax, eax
jne 0x140077d29
cmp qword [rsp + 0x98], rsi
jne 0x140077d29
test rbx, rbx
je 0x140077d21
mov rax, qword [rsp + 0xa0]
mov qword [rbx], rax
mov rax, qword [rsp + 0xa8]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0xb0]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0xb4]
mov dword [rbx + 0x14], eax
mov r14b, 1
mov byte [rsp + 0x70], r14b
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x140077d44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x110], rsi
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140077d60
mov al, r14b
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400783c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret