Function at 0x11671e97
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 0x11671eb6
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x11671eb6
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 0x116723b2
cmp dword [ebp + 0x18], ebx
je 0x11671fa2
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 0x11672397
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 0x11672397
push 0x14
call fcn.116e0478
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x11672397
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 0x11671fbf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0x10]
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 3
push dword [ebp + 0x10]
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xa
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 4
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 6
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
push 7
push esi
call fcn.116710b2
add esp, 0x10
test eax, eax
je 0x11672397
push dword [ebp - 0x1c]
call fcn.11672490
push dword [ebp - 4]
call fcn.11672490
mov esi, dword [ebp + 0x1c]
pop ecx
cmp esi, 3
pop ecx
je 0x116721d7
lea eax, [ebp - 0x50]
push eax
push str.SeTcbPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x11672397
mov edx, dword [ebp - 0x14]
cmp esi, ebx
mov edi, dword [edx]
mov dword [ebp - 0x2c], edi
jne 0x11672175
cmp edi, ebx
jne 0x116720e8
push 0x10
pop eax
jmp 0x116720f2
lea eax, [edi + edi*2]
lea eax, [eax*4 + 4]
push eax
call fcn.116e0478
mov esi, eax
pop ecx
cmp esi, ebx
je 0x11672397
cmp edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x1c], ebx
jle 0x11672162
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx + 8]
cmp eax, dword [ebp - 0x4c]
jne 0x11672129
mov eax, dword [ecx + edx + 4]
cmp eax, dword [ebp - 0x50]
jne 0x11672129
inc dword [ebp - 0xc]
jmp 0x11672157
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 0x1167210f
sub edi, dword [ebp - 0xc]
mov dword [esi], edi
push dword [ebp - 0x14]
call fcn.116710a0
pop ecx
mov dword [ebp - 0x14], esi
jmp 0x116721d7
cmp esi, 1
jne 0x116721a9
xor eax, eax
cmp edi, ebx
jle 0x116721d7
lea ecx, [edx + 4]
mov esi, dword [ecx + 4]
cmp esi, dword [ebp - 0x4c]
jne 0x11672192
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x50]
je 0x1167219c
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x11672183
jmp 0x116721d7
lea eax, [eax + eax*2 + 3]
mov dword [edx + eax*4], 2
jmp 0x116721d7
cmp esi, 2
jne 0x116721d7
xor eax, eax
cmp edi, ebx
jle 0x116721d7
lea ecx, [edx + 4]
mov esi, dword [ecx + 4]
cmp esi, dword [ebp - 0x4c]
jne 0x116721c6
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x50]
je 0x116721d0
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x116721b7
jmp 0x116721d7
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 0x116721ec
push 0xc
pop eax
jmp 0x116721f3
lea eax, [eax*8 + 4]
push eax
call fcn.116e0478
mov esi, eax
pop ecx
cmp esi, ebx
je 0x11672397
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea ecx, [ecx*8 + 0xc]
push ecx
push eax
push esi
call fcn.116e0a70
mov eax, dword [ebp - 4]
add esp, 0xc
xor edi, edi
cmp dword [eax], ebx
jbe 0x116722ad
lea ecx, [edi + 1]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + ecx*8]
test cl, 0x28
je 0x116722a2
cmp dword [esi], ebx
mov dword [ebp - 0xc], ebx
jbe 0x11672287
lea edx, [esi + 8]
mov dword [ebp + 0x1c], edx
test cl, 8
je 0x11672263
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 0x11672474
mov ecx, dword [ebp - 0x34]
mov ecx, dword [eax + ecx*8]
test cl, 0x20
je 0x11672279
mov edx, dword [ebp + 0x1c]
cmp dword [edx], ecx
je 0x11672474
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
add dword [ebp + 0x1c], 8
cmp edx, dword [esi]
jb 0x11672243
lea eax, [eax + edi*8 + 4]
push 8
push eax
mov eax, dword [esi]
lea eax, [esi + eax*8 + 4]
push eax
call fcn.116e0a70
add esp, 0xc
inc dword [esi]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x34]
cmp edi, dword [eax]
jb 0x11672228
call fcn.11671dd4
push eax
call fcn.116c8730
cmp dword [ebp + 0xc], ebx
pop ecx
mov dword [ebp - 0x34], eax
je 0x11672320
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.116e09c0
add esp, 0xc
test eax, eax
je 0x11672320
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.11671237
add esp, 0x34
cmp dword [ebp - 0x18], ebx
je 0x116723a8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push dword [ebp + 8]
call fcn.116c60c0
pop ecx
test eax, eax
pop ecx
je 0x1167238b
push dword [ebp - 0x58]
push dword [ebp - 0x18]
call fcn.116c6090
pop ecx
pop ecx
push dword [ebp - 0x18]
call fcn.116c5f50
pop ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], ebx
je 0x116723a8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x34], ebx
je 0x116723b2
call fcn.116c8a40
cmp dword [0x117e1700], ebx
mov esi, 0x117e0e6c
je 0x116723cc
push str.FreeTokenInformationBuffer
push esi
call fcn.116dec80
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.116710a0
push dword [ebp - 0x14]
call fcn.116710a0
push dword [ebp - 0x20]
call fcn.116710a0
push dword [ebp - 0x3c]
call fcn.116710a0
push dword [ebp - 0x1c]
call fcn.116710a0
push dword [ebp - 0x38]
call fcn.116710a0
push dword [ebp - 0x44]
call fcn.116710a0
push dword [ebp - 0x54]
call fcn.116710a0
push dword [ebp - 0x48]
call fcn.116710a0
push ebx
call fcn.116710a0
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
add esp, 0x28
cmp dword [ebp - 0x24], ebx
je 0x11672430
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x30], ebx
je 0x1167243d
push dword [ebp - 0x30]
call edi
mov dword [ebp - 0x30], ebx
cmp dword [0x117e1700], ebx
je 0x1167246c
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.116deab0
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.116e0a70
add esp, 0xc
jmp 0x1167229f