Function at 0xfac18
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0xfac20
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor edx, edx
push ebp
push 0xfaefc
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 8]
push eax
push esi
call sub.wtsapi32.dll_WTSQueryUserToken_1
test eax, eax
je 0xfac89
test ebx, ebx
je 0xfacd6
lea edx, [ebp - 0x38]
mov eax, esi
call fcn.0002964c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0xfaf14
call fcn.00013ff4
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov eax, ebx
call fcn.00049df8
jmp 0xfacd6
call sub.kernel32.dll_GetLastError_1
mov edi, eax
test ebx, ebx
je 0xfacd6
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00027444
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0xfaf30
call fcn.00013ff4
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov eax, ebx
call fcn.0004a880
lea edx, [ebp - 0x4c]
mov eax, edi
call fcn.00027478
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov eax, ebx
call fcn.0004a880
cmp dword [ebp - 8], 0
je 0xfad4c
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 4]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0xfad4c
call sub.kernel32.dll_GetLastError_1
mov edi, eax
test ebx, ebx
je 0xfad4c
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.00027444
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0xfaf44
call fcn.00013ff4
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov eax, ebx
call fcn.0004a880
lea edx, [ebp - 0x60]
mov eax, edi
call fcn.00027478
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov eax, ebx
call fcn.0004a880
cmp dword [ebp - 4], 0
je 0xfaec7
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x18]
push eax
push 0xfaf50
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0xfae62
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
mov edi, 0x10
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0xfae06
call sub.kernel32.dll_GetLastError_1
mov edi, eax
test ebx, ebx
je 0xfaec7
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c]
call fcn.00027444
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0xfaf6c
call fcn.00013ff4
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
mov eax, ebx
call fcn.00049df8
lea edx, [ebp - 0x74]
mov eax, edi
call fcn.00027478
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
mov eax, ebx
call fcn.00049df8
jmp 0xfaec7
call sub.kernel32.dll_GetLastError_1
mov edi, eax
test ebx, ebx
je 0xfaec7
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x80]
call fcn.00027444
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0xfaf80
call fcn.00013ff4
mov edx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x78]
mov eax, ebx
call fcn.0004a880
lea edx, [ebp - 0x88]
mov eax, edi
call fcn.00027478
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
mov eax, ebx
call fcn.0004a880
jmp 0xfaec7
call sub.kernel32.dll_GetLastError_1
mov edi, eax
test ebx, ebx
je 0xfaec7
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x94]
call fcn.00027444
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
mov edx, 0xfaf94
call fcn.00013ff4
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov eax, ebx
call fcn.0004a880
lea edx, [ebp - 0x9c]
mov eax, edi
call fcn.00027478
mov edx, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
mov eax, ebx
call fcn.0004a880
mov ebx, dword [ebp - 4]
cmp dword [ebp - 8], 0
je 0xfaed9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfaf03
lea eax, [ebp - 0x9c]
mov edx, 0x1c
call fcn.00013d3c
ret