Function at 0x401530
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebp, ebp
push eax
push ebp
push 0x1f0fff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x32
xor esi, esi
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 5
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [edi], ebp
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x14]
push ecx
push 8
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4015bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
jmp 0x401707
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edx
push ebp
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4015e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x401706
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40165b
call ebp
cmp eax, 0x7a
je 0x401617
call ebp
mov dword [esp + 0x10], eax
jmp 0x401706
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x401638
call ebp
mov dword [esp + 0x10], eax
jmp 0x401706
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push 2
push eax
call edi
test eax, eax
jne 0x40165b
call ebp
mov dword [esp + 0x10], eax
jmp 0x401706
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea edx, [esp + 0x5c]
push edx
call edi
test eax, eax
jne 0x40168b
call ebp
mov dword [esp + 0x10], eax
jmp 0x401706
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 6
push 1
lea ecx, [esp + 0x5c]
push ecx
call edi
test eax, eax
jne 0x4016b5
call ebp
mov dword [esp + 0x10], eax
jmp 0x401706
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x4016f7
lea edi, [esi + 4]
mov edi, edi
mov eax, dword [esp + 0x24]
mov ebx, dword [edi]
mov edx, dword [edi + 4]
push eax
push ebx
mov dword [esp + 0x38], edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401760
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40176c
add ebp, 1
add edi, 8
cmp ebp, dword [esi]
jb 0x4016c0
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x401706
mov dword [eax], 1
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x401718
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401723
push eax
call edi
test esi, esi
je 0x40172e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40173f
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40174a
push eax
call esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00401904
add esp, 0x30
ret
mov edx, dword [esp + 0x20]
mov dword [edx], 0
jmp 0x401706
mov eax, dword [esp + 0x20]
jmp 0x401700