Function at 0x42679d
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x4dd070]
xor eax, ebp
mov dword [ebp + 0xb8], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc4], 0xffffffff
push esi
mov esi, ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
je 0x4267f5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 0xc4]
je 0x4267f5
push dword [ebp + 0xc4]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4267fb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x42696c
lea eax, [ebp - 0x6c]
push eax
push 8
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42696c
push 0x110
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x114
call fcn.00492360
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x60], 6
jb 0x426889
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x78]
push eax
push 0x14
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42696c
cmp dword [ebp - 0x68], 4
mov dword [ebp - 0x80], 1
jne 0x42696c
xor eax, eax
cmp dword [ebp - 0x78], ebx
setne al
mov dword [esi], eax
jmp 0x42696c
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp + 0xb0]
push eax
mov byte [ebp + 0xb0], bl
mov byte [ebp + 0xb1], bl
mov byte [ebp + 0xb2], bl
mov byte [ebp + 0xb3], bl
mov byte [ebp + 0xb4], bl
mov byte [ebp + 0xb5], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42696c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42696b
push dword [ebp - 0x7c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x42696b
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
push esi
push 2
push dword [ebp - 0x6c]
call edi
test eax, eax
je 0x42695c
xor edi, edi
mov dword [ebp - 0x80], 1
cmp dword [esi], ebx
jbe 0x42695c
lea eax, [esi + 4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push dword [eax]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x426953
add dword [ebp - 0x68], 8
inc edi
cmp edi, dword [esi]
jb 0x426936
jmp 0x42695c
mov eax, dword [ebp - 0x78]
mov dword [eax], 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
cmp dword [ebp - 0x74], ebx
je 0x42697a
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], ebx
je 0x42698a
push dword [ebp - 0x6c]
call esi
cmp dword [ebp - 0x70], ebx
je 0x426994
push dword [ebp - 0x70]
call esi
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp - 0x80]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ff11
add ebp, 0xbc
leave
ret 4