Function at 0x11651eb3
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 0x11651ed2
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x11651ed2
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 0x116523ce
cmp dword [ebp + 0x18], ebx
je 0x11651fbe
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 0x116523b3
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 0x116523b3
push 0x14
call fcn.116bf498
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x116523b3
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 0x11651fdb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0x10]
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 3
push dword [ebp + 0x10]
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xa
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 4
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 6
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
push 7
push esi
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x116523b3
push dword [ebp - 0x1c]
call fcn.116524ac
push dword [ebp - 4]
call fcn.116524ac
mov esi, dword [ebp + 0x1c]
pop ecx
cmp esi, 3
pop ecx
je 0x116521f3
lea eax, [ebp - 0x50]
push eax
push str.SeTcbPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x116523b3
mov edx, dword [ebp - 0x14]
cmp esi, ebx
mov edi, dword [edx]
mov dword [ebp - 0x2c], edi
jne 0x11652191
cmp edi, ebx
jne 0x11652104
push 0x10
pop eax
jmp 0x1165210e
lea eax, [edi + edi*2]
lea eax, [eax*4 + 4]
push eax
call fcn.116bf498
mov esi, eax
pop ecx
cmp esi, ebx
je 0x116523b3
cmp edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x1c], ebx
jle 0x1165217e
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx + 8]
cmp eax, dword [ebp - 0x4c]
jne 0x11652145
mov eax, dword [ecx + edx + 4]
cmp eax, dword [ebp - 0x50]
jne 0x11652145
inc dword [ebp - 0xc]
jmp 0x11652173
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 0x1165212b
sub edi, dword [ebp - 0xc]
mov dword [esi], edi
push dword [ebp - 0x14]
call fcn.116510a0
pop ecx
mov dword [ebp - 0x14], esi
jmp 0x116521f3
cmp esi, 1
jne 0x116521c5
xor eax, eax
cmp edi, ebx
jle 0x116521f3
lea ecx, [edx + 4]
mov esi, dword [ecx + 4]
cmp esi, dword [ebp - 0x4c]
jne 0x116521ae
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x50]
je 0x116521b8
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x1165219f
jmp 0x116521f3
lea eax, [eax + eax*2 + 3]
mov dword [edx + eax*4], 2
jmp 0x116521f3
cmp esi, 2
jne 0x116521f3
xor eax, eax
cmp edi, ebx
jle 0x116521f3
lea ecx, [edx + 4]
mov esi, dword [ecx + 4]
cmp esi, dword [ebp - 0x4c]
jne 0x116521e2
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x50]
je 0x116521ec
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x116521d3
jmp 0x116521f3
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 0x11652208
push 0xc
pop eax
jmp 0x1165220f
lea eax, [eax*8 + 4]
push eax
call fcn.116bf498
mov esi, eax
pop ecx
cmp esi, ebx
je 0x116523b3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea ecx, [ecx*8 + 0xc]
push ecx
push eax
push esi
call fcn.116bfa90
mov eax, dword [ebp - 4]
add esp, 0xc
xor edi, edi
cmp dword [eax], ebx
jbe 0x116522c9
lea ecx, [edi + 1]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + ecx*8]
test cl, 0x28
je 0x116522be
cmp dword [esi], ebx
mov dword [ebp - 0xc], ebx
jbe 0x116522a3
lea edx, [esi + 8]
mov dword [ebp + 0x1c], edx
test cl, 8
je 0x1165227f
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 0x11652490
mov ecx, dword [ebp - 0x34]
mov ecx, dword [eax + ecx*8]
test cl, 0x20
je 0x11652295
mov edx, dword [ebp + 0x1c]
cmp dword [edx], ecx
je 0x11652490
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
add dword [ebp + 0x1c], 8
cmp edx, dword [esi]
jb 0x1165225f
lea eax, [eax + edi*8 + 4]
push 8
push eax
mov eax, dword [esi]
lea eax, [esi + eax*8 + 4]
push eax
call fcn.116bfa90
add esp, 0xc
inc dword [esi]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x34]
cmp edi, dword [eax]
jb 0x11652244
call fcn.11651df0
push eax
call fcn.116a7750
cmp dword [ebp + 0xc], ebx
pop ecx
mov dword [ebp - 0x34], eax
je 0x1165233c
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.116bf9e0
add esp, 0xc
test eax, eax
je 0x1165233c
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.11651253
add esp, 0x34
cmp dword [ebp - 0x18], ebx
je 0x116523c4
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push dword [ebp + 8]
call fcn.116a50e0
pop ecx
test eax, eax
pop ecx
je 0x116523a7
push dword [ebp - 0x58]
push dword [ebp - 0x18]
call fcn.116a50b0
pop ecx
pop ecx
push dword [ebp - 0x18]
call fcn.116a4f70
pop ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], ebx
je 0x116523c4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x34], ebx
je 0x116523ce
call fcn.116a7a60
cmp dword [0x117bf508], ebx
mov esi, 0x117bec74
je 0x116523e8
push str.FreeTokenInformationBuffer
push esi
call fcn.116bdca0
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.116510a0
push dword [ebp - 0x14]
call fcn.116510a0
push dword [ebp - 0x20]
call fcn.116510a0
push dword [ebp - 0x3c]
call fcn.116510a0
push dword [ebp - 0x1c]
call fcn.116510a0
push dword [ebp - 0x38]
call fcn.116510a0
push dword [ebp - 0x44]
call fcn.116510a0
push dword [ebp - 0x54]
call fcn.116510a0
push dword [ebp - 0x48]
call fcn.116510a0
push ebx
call fcn.116510a0
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
add esp, 0x28
cmp dword [ebp - 0x24], ebx
je 0x1165244c
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x30], ebx
je 0x11652459
push dword [ebp - 0x30]
call edi
mov dword [ebp - 0x30], ebx
cmp dword [0x117bf508], ebx
je 0x11652488
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.116bdad0
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.116bfa90
add esp, 0xc
jmp 0x116522bb