Function at 0x100201f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x81c]
push eax
xor ebx, ebx
push 0x20008
mov dword [ebp - 0x818], ebx
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10020442
push ebx
mov dword [ebp - 0x810], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10020436
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10020436
push esi
push dword [ebp - 0x810]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x820], esi
test esi, esi
je 0x10020435
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x810]
push esi
push 2
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10020425
lea eax, [ebp - 0x824]
mov dword [ebp - 0x80c], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x80c]
mov word [ebp - 0x808], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10020425
cmp dword [esi], ebx
jbe 0x10020413
lea eax, [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov dword [ebp - 0x814], eax
nop dword [eax]
push dword [eax]
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 0x818]
test eax, eax
mov eax, 1
mov dword [ebp - 0x828], 0x400
cmovne ecx, eax
mov dword [ebp - 0x82c], 0x400
lea eax, [ebp - 0x830]
mov dword [ebp - 0x818], ecx
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x814]
push dword [eax]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x100203f3
push str.Mandatory_Label
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
jne 0x100203f3
push str.High_Mandatory_Level
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jne 0x100203ab
mov dword [edi], 2
jmp 0x100203f3
push str.System_Mandatory_Level
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jne 0x100203c5
mov dword [edi], 3
jmp 0x100203f3
push str.Medium_Mandatory_Level
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jne 0x100203df
mov dword [edi], 1
jmp 0x100203f3
push str.Low_Mandatory_Level
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jne 0x100203f3
mov dword [edi], eax
mov ecx, dword [ebp - 0x820]
inc ebx
mov eax, dword [ebp - 0x814]
add eax, 8
mov dword [ebp - 0x814], eax
cmp ebx, dword [ecx]
jb 0x10020310
mov esi, ecx
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ebx, dword [ebp - 0x818]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret