Function at 0x1015cda
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0xa1
push 0x1002f84
lea ecx, [ebp - 0x38]
call fcn.010148a2
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x88]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], 0x48
cmp dword [ebp + 0xc], ebx
je 0x1015d4b
mov eax, dword [ebp + 0xc]
push 4
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x1015d45
mov eax, 0xb0
cmp dword [ebp + 8], ebx
jne 0x1015d65
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x1015f91
mov word [ebp - 0x34], ax
mov eax, 0xb1
cmp dword [ebp + 0xc], ebx
je 0x1015d55
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x3c]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push 0x12
push dword [ebp + 8]
mov dword [ebp - 0x38], ebx
call esi
test eax, eax
jne 0x1015da4
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xb3
jmp 0x1015d5c
cmp dword [ebp - 0x40], 3
mov eax, 0xb3
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x34], ax
jne 0x1015e9c
lea eax, [ebp - 0x3c]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x13
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1015de1
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xba
jmp 0x1015d5c
mov eax, dword [ebp - 0xc]
mov ecx, 0xbd
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x3c]
push ecx
push 4
lea ecx, [ebp - 0x44]
push ecx
push 8
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x38], ebx
call esi
test eax, eax
jne 0x1015e1b
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xc0
jmp 0x1015d5c
mov eax, 0xc0
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x34], ax
cmp dword [ebp - 0x44], edi
jne 0x1015e6f
cmp dword [ebp - 4], ebx
je 0x1015e43
cmp dword [ebp - 4], 0xffffffff
je 0x1015e43
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x1015e68
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xc6
jmp 0x1015d5c
mov eax, 0xc6
jmp 0x1015edd
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x1015e8c
cmp dword [ebp - 4], 0xffffffff
je 0x1015e8c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
mov eax, 0xcb
jmp 0x1015edd
cmp dword [ebp - 4], ebx
je 0x1015eb3
cmp dword [ebp - 4], 0xffffffff
je 0x1015eb3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x1015ed8
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xd0
jmp 0x1015d5c
mov eax, 0xd0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push 0x1a
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x1015f0e
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xd7
jmp 0x1015d5c
mov eax, 0xd7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1015f44
call fcn.01015b6b
mov dword [ebp - 0x38], eax
mov eax, 0xda
jmp 0x1015d5c
mov eax, 0xda
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x38], ebx
je 0x1015f79
dec eax
je 0x1015f68
dec eax
jne 0x1015f8a
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
add eax, 4
jmp 0x1015f8c
xor eax, eax
cmp dword [ebp - 0x14], ebx
sete al
lea eax, [eax*4 + 2]
jmp 0x1015f8c
xor eax, eax
cmp dword [ebp - 0x14], ebx
sete al
lea eax, [eax*4 + 1]
jmp 0x1015f8c
mov eax, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 8], ebx
je 0x1015fa8
cmp dword [ebp - 8], 0xffffffff
je 0x1015fa8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x1015fbf
cmp dword [ebp - 4], 0xffffffff
je 0x1015fbf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x38]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8