Function at 0x102b458
Capabilities:
Get token membership

Disassembly:
mov eax, 0x103647b
call fcn.01027f98
sub esp, 0x68
mov eax, dword [0x10400ac]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x100d2ec
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x74], esp
xor ebx, ebx
push ebx
push 0x4000
push 0xa8
mov edi, 0x100d1d8
push edi
mov esi, 0x100d158
push esi
call fcn.01011ab4
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.01011b28
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x20
push 2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x102b545
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x102b501
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102b511
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
push 0x100d2b8
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x6c], esp
push ebx
push 0x4000
push 0xc5
push edi
push esi
call fcn.01011ab4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.01028ef0
add esp, 0x4c
mov byte [ebp - 4], 3
cmp byte [ebp + 0xc], bl
jne 0x102b560
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
mov dword [ebp - 0x2c], eax
jmp 0x102b59f
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0102b252
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.0102b278
test eax, eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
je 0x102b58a
push dword [ebp - 0x24]
jmp 0x102b58b
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0102b252
cmp dword [ebp - 0x2c], ebx
jne 0x102b693
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x102b5ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102b5ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
push 0x100d28c
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x54], esp
push ebx
push 0x4000
push 0xdf
push edi
push esi
call fcn.01011ab4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.01028ef0
add esp, 0x4c
jmp 0x102b693
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 9
cmp dword [ebp - 0x20], ebx
je 0x102b74e
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x102b74e
mov dword [ebp - 4], 1
cmp esi, ebx
jge 0x102b76a
mov dword [ebp - 0x4c], esi
push 0x1037574
lea eax, [ebp - 0x4c]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp - 0x28], ebx
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.01011bd1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01027c7a
pop edi
pop esi
pop ebx
leave
ret 8