Function at 0x912250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x98eb88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 0x1000]
cmp eax, 0x2000
jb 0x9125f2
push esi
push edi
push dword [ebx]
xor edi, edi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x9122cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x98f460], 4
mov esi, eax
jbe 0x9122b2
push esi
push dword [ebx]
push 0x958b0c
call fcn.00901db0
add esp, 0xc
push esi
call fcn.0091bf10
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00901200
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
xor esi, esi
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9125a6
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, esi
sub eax, 1
je 0x91233c
sub eax, 1
je 0x91233c
sub eax, 8
je 0x91231b
push esi
push 0x958bd4
call fcn.00901db0
add esp, 8
lea esi, [ebx - 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1c]
jmp 0x9125ae
push 0x38
push 8
mov dword [ebp - 0x18], 0x38
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, 0x38
jmp 0x912341
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x9123c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x9123c1
mov eax, esi
xor edi, edi
sub eax, 1
je 0x912370
sub eax, 1
jne 0x9123a2
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x912391
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x912583
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x9123c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x912583
sub esi, 1
je 0x9124f3
sub esi, 1
je 0x9123fa
sub esi, 8
jne 0x912583
push 8
lea eax, [ebx + 8]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 8
push eax
call fcn.00901430
add esp, 0xc
jmp 0x912583
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0x500
mov dword [ebp - 0x18], 0
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x912441
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x24], 0
test edi, edi
jne 0x9124ce
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x200
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x912481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x9124ce
cmp dword [ebx], 0
mov dword [ebp - 0xc], 0
jbe 0x9124ce
lea esi, [ebx + 4]
push dword [ebp - 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x9124c7
push dword [ebp - 0x24]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x9124c7
test dword [esi + 4], 0xc0000000
jne 0x9124c7
mov eax, dword [ebp - 0xc]
add esi, 8
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx]
jb 0x912490
jmp 0x9124ce
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x9124dc
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x912583
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x912583
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x912548
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [ebp - 0x1c]
mov dword [esi + 4], eax
push dword [ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x91253a
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x912583
lea edi, [eax + 0x7b]
jmp 0x912550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x912583
jmp 0x912550
mov esi, dword [ebp - 0x1c]
mov edi, 0xe8
push edi
push dword [esi]
push 0x958bf8
call fcn.00901db0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
je 0x912583
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp - 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], 0
xor esi, esi
test ebx, ebx
je 0x912598
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1c]
jmp 0x9125ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x9125d6
cmp dword [0x98f460], 0
je 0x9125cb
push edi
push dword [ebx]
push 0x958c24
call fcn.00901db0
add esp, 0xc
push edi
call fcn.0091bf10
add esp, 4
mov esi, eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00901200
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffa
xor ecx, ebp
pop ebx
call fcn.00901200
mov esp, ebp
pop ebp
ret