Function at 0x100121e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
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 0x10012c6
push 0x1001128
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp - 0x30]
push eax
mov esi, 0x100002
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, ebx
jge 0x10012a6
cmp eax, 0x40000000
je 0x100128f
cmp eax, 0xc0000035
jne 0x100129e
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtOpenEvent]
cmp eax, ebx
jl 0x1001409
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetEvent]
test eax, eax
jge 0x1001409
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x1001409
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
xor edi, edi
inc edi
test eax, eax
je 0x100136d
lea eax, [ebp - 0x18]
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 0x1001367
lea eax, [ebp - 0x14]
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 + 8], edi
mov dword [ebp - 0x14], 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 0x100134d
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x100133f
mov eax, dword [ebp - 0x40]
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], ebx
je 0x100134d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [ebp + 8], ebx
je 0x1001409
jmp 0x100136d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [ebp - 0x44]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
or esi, 0x10000000
push esi
mov dword [ebp - 0x34], 0x10010
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov esi, eax
call sub.LSASRV.dll_LsaISetupWasRun
test al, al
je 0x10013e2
push 0x100110c
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x100002
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntdll.dll_NtOpenEvent]
test eax, eax
jl 0x1001409
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetEvent]
jmp 0x1001409
cmp esi, ebx
jl 0x1001409
mov esi, dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp + 8]
push eax
push ebx
push edi
push 0x13
call esi
push edi
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x13
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010015f5
leave
ret 4