SepLengthSidAndAttributesArray
INT64 __stdcall SepLengthSidAndAttributesArray(
_SID_AND_ATTRIBUTES *InputArray,
UINT64 ArrayCount,
UINT64 *AlignedArraySize){
unsigned int v3;
VOID *PoolWithTag;
void *v7;
unsigned int v8;
UINT64 CaptureBufferLength;
_POOL_TYPE v11;
UINT8 v12;
_SID_AND_ATTRIBUTES *CapturedArray;
UINT64 v14;
v3 = ArrayCount;
LODWORD(v14) = 0;
CapturedArray = 0i64;
PoolWithTag = ExAllocatePoolWithTag(PagedPool, 8ui64, 0x61536553ui64);
v7 = PoolWithTag;
if( !PoolWithTag )
return 3221225626i64;
LODWORD(CaptureBufferLength) = 8;
v8 = SeCaptureSidAndAttributesArray(
InputArray,
v3,
0,
PoolWithTag,
CaptureBufferLength,
v11,
v12,
&CapturedArray,
&v14);
*(_DWORD *)AlignedArraySize = v14;
if( v8 == -1073741789 )
v8 = 0;
ExFreePoolWithTag(v7, 0);
return v8;
}Referenced by:
SepCreateClaimAttributes
SepDuplicateClaimAttributes
SepSetTokenCapabilities