Function at 0x10011ee
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1003004]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x10], ebx
jl 0x1001298
push 0x1001118
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 0x34]
push eax
mov esi, 0x100002
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, ebx
jge 0x1001278
cmp eax, 0x40000000
je 0x1001261
cmp eax, 0xc0000035
jne 0x1001270
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtOpenEvent]
cmp eax, ebx
jl 0x10013db
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetEvent]
test eax, eax
jge 0x10013db
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x10013db
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
xor edi, edi
inc edi
test eax, eax
je 0x100133f
lea eax, [ebp - 0x1c]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1001339
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push edi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100131f
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x1001311
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], ebx
je 0x100131f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [ebp - 0x14], ebx
je 0x10013db
jmp 0x100133f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
or esi, 0x10000000
push esi
mov dword [ebp - 0x44], 0x10010
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov esi, eax
call sub.LSASRV.dll_LsaISetupWasRun
test al, al
je 0x10013b4
push 0x10010fc
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0x100002
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ntdll.dll_NtOpenEvent]
test eax, eax
jl 0x10013db
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetEvent]
jmp 0x10013db
cmp esi, ebx
jl 0x10013db
mov esi, dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x13
call esi
push edi
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x14]
push 0x13
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010015c5
leave
ret 4