Function at 0x10005dd8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x20], ebx
call fcn.10005d0b
mov edi, eax
pop ecx
mov dword [ebp - 0x28], edi
cmp edi, ebx
jne 0x10005e1a
push str.AIL:GATI:process_not_found
push 1
call fcn.101d0efc
pop ecx
xor eax, eax
jmp 0x10006055
shl eax, 4
push eax
call fcn.101d2044
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x10005e31
push str.AIL:GATI:out_of_memory
jmp 0x10005e0b
cmp edi, ebx
mov dword [ebp - 0x18], ebx
jle 0x1000604a
xor edi, edi
jmp 0x10005e42
xor ebx, ebx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [edi + eax], ebx
mov eax, dword [esi]
mov dword [edi + eax + 4], ebx
mov eax, dword [esi]
mov dword [edi + eax + 8], ebx
mov eax, dword [esi]
mov dword [edi + eax + 0xc], ebx
mov eax, dword [ebp - 0x20]
lea ebx, [eax + ecx*4]
push dword [ebx]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10005e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str.AIL:GATI:Cant_open_process__d_._err_d
push 2
call fcn.101d1209
add esp, 0x10
jmp 0x10006038
mov ecx, dword [esi]
lea ecx, [edi + ecx + 4]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x10005ecc
push dword [ebp - 0x2c]
push dword [ebx]
push str.AIL:GATI:Cant_open_process__d__token._err_d
jmp 0x10005e86
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
add eax, edi
push 4
lea ecx, [eax + 8]
push ecx
push 0xc
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10005f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str.AIL:GATI:Cant_get_token__d__session_id._err_d
push 2
call fcn.101d1209
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi]
push 0
push 0
push 2
push dword [edi + eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1c]
call fcn.101d2044
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10005f4d
push str.AIL:GATI:Cant_allocate_group_info.
push 1
call fcn.101d0efc
pop ecx
pop ecx
mov eax, dword [esi]
push dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
and dword [edi + eax + 4], 0
jmp 0x10006038
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x1c]
push eax
mov eax, dword [esi]
push 2
push dword [edi + eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10005f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str.AIL:GATI:Cant_get_token__d__group_Information._err_d
push 2
call fcn.101d1209
push dword [ebp - 0x10]
call fcn.101d1bfb
add esp, 0x14
jmp 0x10005f35
xor ebx, ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000600a
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jbe 0x10005fff
lea eax, [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10005ff1
mov eax, dword [esi]
mov dword [edi + eax + 0xc], 1
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 8
cmp eax, dword [ebx]
jb 0x10005fd5
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1000600d
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.101d1bfb
mov eax, dword [esi]
mov dword [edi + eax], 1
mov eax, dword [esi]
add eax, edi
push dword [eax + 4]
push dword [eax + 0xc]
push dword [eax + 8]
push str.AIL:GATI:Id_d__IsA_d__T_x
push 3
call fcn.101d1209
add esp, 0x18
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add edi, 0x10
cmp eax, dword [ebp - 0x28]
jl 0x10005e40
push dword [ebp - 0x20]
call fcn.101d1bfb
mov eax, dword [ebp - 0x28]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
leave
ret