Function at 0x11661e97
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x11661eb6
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x11661eb6
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
je 0x116623b2
cmp dword [ebp + 0x18], ebx
je 0x11661fa2
lea eax, [ebp - 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x2c]
push 2
push eax
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], 5
call edi
test eax, eax
je 0x11662397
lea eax, [ebp - 0x24]
mov byte [ebp - 0xc], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3000
lea eax, [ebp - 0xc]
push 1
push eax
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 0x10
call edi
test eax, eax
je 0x11662397
push 0x14
call fcn.116d0228
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x11662397
mov dword [eax], 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xf
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x60
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
jmp 0x11661fbf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0x10]
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 3
push dword [ebp + 0x10]
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xa
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 4
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 6
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
push 7
push esi
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11662397
push dword [ebp - 0x1c]
call fcn.11662490
push dword [ebp - 4]
call fcn.11662490
mov esi, dword [ebp + 0x1c]
pop ecx
cmp esi, 3
pop ecx
je 0x116621d7
lea eax, [ebp - 0x50]
push eax
push str.SeTcbPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x11662397
mov edx, dword [ebp - 0x14]
cmp esi, ebx
mov edi, dword [edx]
mov dword [ebp - 0x2c], edi
jne 0x11662175
cmp edi, ebx
jne 0x116620e8
push 0x10
pop eax
jmp 0x116620f2
lea eax, [edi + edi*2]
lea eax, [eax*4 + 4]
push eax
call fcn.116d0228
mov esi, eax
pop ecx
cmp esi, ebx
je 0x11662397
cmp edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x1c], ebx
jle 0x11662162
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx + 8]
cmp eax, dword [ebp - 0x4c]
jne 0x11662129
mov eax, dword [ecx + edx + 4]
cmp eax, dword [ebp - 0x50]
jne 0x11662129
inc dword [ebp - 0xc]
jmp 0x11662157
mov eax, dword [ebp + 0x1c]
mov edx, dword [ecx + edx + 0xc]
sub eax, dword [ebp - 0xc]
lea edi, [eax + eax*2 + 3]
lea eax, [eax + eax*2]
mov dword [esi + edi*4], edx
mov edx, dword [ebp - 0x14]
lea eax, [esi + eax*4]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ecx + edx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x14]
mov edx, dword [ecx + edx + 4]
mov dword [eax + 4], edx
inc dword [ebp + 0x1c]
add ecx, 0xc
cmp dword [ebp + 0x1c], edi
jl 0x1166210f
sub edi, dword [ebp - 0xc]
mov dword [esi], edi
push dword [ebp - 0x14]
call fcn.116610a0
pop ecx
mov dword [ebp - 0x14], esi
jmp 0x116621d7
cmp esi, 1
jne 0x116621a9
xor eax, eax
cmp edi, ebx
jle 0x116621d7
lea ecx, [edx + 4]
mov esi, dword [ecx + 4]
cmp esi, dword [ebp - 0x4c]
jne 0x11662192
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x50]
je 0x1166219c
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x11662183
jmp 0x116621d7
lea eax, [eax + eax*2 + 3]
mov dword [edx + eax*4], 2
jmp 0x116621d7
cmp esi, 2
jne 0x116621d7
xor eax, eax
cmp edi, ebx
jle 0x116621d7
lea ecx, [edx + 4]
mov esi, dword [ecx + 4]
cmp esi, dword [ebp - 0x4c]
jne 0x116621c6
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x50]
je 0x116621d0
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x116621b7
jmp 0x116621d7
lea eax, [eax + eax*2 + 3]
mov dword [edx + eax*4], ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ecx]
add eax, ecx
cmp eax, ebx
jne 0x116621ec
push 0xc
pop eax
jmp 0x116621f3
lea eax, [eax*8 + 4]
push eax
call fcn.116d0228
mov esi, eax
pop ecx
cmp esi, ebx
je 0x11662397
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea ecx, [ecx*8 + 0xc]
push ecx
push eax
push esi
call fcn.116d0820
mov eax, dword [ebp - 4]
add esp, 0xc
xor edi, edi
cmp dword [eax], ebx
jbe 0x116622ad
lea ecx, [edi + 1]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + ecx*8]
test cl, 0x28
je 0x116622a2
cmp dword [esi], ebx
mov dword [ebp - 0xc], ebx
jbe 0x11662287
lea edx, [esi + 8]
mov dword [ebp + 0x1c], edx
test cl, 8
je 0x11662263
push dword [eax + edi*8 + 4]
mov eax, dword [ebp + 0x1c]
push dword [eax - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x11662474
mov ecx, dword [ebp - 0x34]
mov ecx, dword [eax + ecx*8]
test cl, 0x20
je 0x11662279
mov edx, dword [ebp + 0x1c]
cmp dword [edx], ecx
je 0x11662474
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
add dword [ebp + 0x1c], 8
cmp edx, dword [esi]
jb 0x11662243
lea eax, [eax + edi*8 + 4]
push 8
push eax
mov eax, dword [esi]
lea eax, [esi + eax*8 + 4]
push eax
call fcn.116d0820
add esp, 0xc
inc dword [esi]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x34]
cmp edi, dword [eax]
jb 0x11662228
call fcn.11661dd4
push eax
call fcn.116b84e0
cmp dword [ebp + 0xc], ebx
pop ecx
mov dword [ebp - 0x34], eax
je 0x11662320
push 0xd
xor eax, eax
pop ecx
lea edi, [ebp - 0xa4]
mov dword [ebp - 0xa8], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa8]
push 0x38
push eax
push 0xa
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xa0]
push 8
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.116d0770
add esp, 0xc
test eax, eax
je 0x11662320
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x9c]
mov dword [ecx + 0xc], eax
push dword [ebp - 0x48]
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push dword [ebp - 0x44]
stosd dword es:[edi], eax
push dword [ebp - 0x38]
stosd dword es:[edi], eax
push dword [ebp - 0x14]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x70], 0x18
lea ecx, [eax + 0x10]
add eax, 8
push ecx
push eax
lea eax, [ebp - 0x70]
push 1
push eax
lea eax, [ebp - 0x18]
push 0xf01ff
push eax
call fcn.11661237
add esp, 0x34
cmp dword [ebp - 0x18], ebx
je 0x116623a8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push dword [ebp + 8]
call fcn.116b5e70
pop ecx
test eax, eax
pop ecx
je 0x1166238b
push dword [ebp - 0x58]
push dword [ebp - 0x18]
call fcn.116b5e40
pop ecx
pop ecx
push dword [ebp - 0x18]
call fcn.116b5d00
pop ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], ebx
je 0x116623a8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x34], ebx
je 0x116623b2
call fcn.116b87f0
cmp dword [0x117d15f0], ebx
mov esi, 0x117d0d5c
je 0x116623cc
push str.FreeTokenInformationBuffer
push esi
call fcn.116cea30
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.116610a0
push dword [ebp - 0x14]
call fcn.116610a0
push dword [ebp - 0x20]
call fcn.116610a0
push dword [ebp - 0x3c]
call fcn.116610a0
push dword [ebp - 0x1c]
call fcn.116610a0
push dword [ebp - 0x38]
call fcn.116610a0
push dword [ebp - 0x44]
call fcn.116610a0
push dword [ebp - 0x54]
call fcn.116610a0
push dword [ebp - 0x48]
call fcn.116610a0
push ebx
call fcn.116610a0
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
add esp, 0x28
cmp dword [ebp - 0x24], ebx
je 0x11662430
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x30], ebx
je 0x1166243d
push dword [ebp - 0x30]
call edi
mov dword [ebp - 0x30], ebx
cmp dword [0x117d15f0], ebx
je 0x1166246c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x40]
push str.CAdminTokenMgr::CreateAdminToken_____hAdminToken___08x___hToken___08x__hLinkedToken___08x__hSystemToken___08x__hQueryToken___08x___OnlyAdminGroup___d_
push str.AdminToken
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x28
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [eax + edi*8 + 4]
push 8
push eax
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*8 + 4]
push eax
call fcn.116d0820
add esp, 0xc
jmp 0x1166229f