Function at 0x47cae0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x50fa80]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
movups xmmword [ebp - 0x1c], xmm0
push 0x20
movq xmm0, qword [0x50fa90]
movq qword [ebp - 0xc], xmm0
xorps xmm0, xmm0
push 2
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x6c], xmm0
call esi
mov eax, dword [ebp - 0x44]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 3
push ebx
mov dword [ebp - 0x70], 0
call edi
push dword [ebp - 0x30]
call fcn.004c8c9a
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x30]
push eax
push 3
push ebx
call edi
push dword [ebp - 0x30]
call fcn.004c8c9a
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [eax], 0
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call esi
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
xor ebx, ebx
push eax
movups xmmword [ebp - 0x8c], xmm0
push 0x800
movq qword [ebp - 0x7c], xmm0
lea eax, [ebp - 0x8c]
push eax
push ebx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x47cc6e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x54]
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
test eax, eax
jne 0x47cc66
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x47cc66
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x10]
push eax
call fcn.004c8c9a
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov dword [ebx], eax
test eax, eax
je 0x47cc5e
lea edi, [ebx + 4]
mov eax, dword [ebp - 0x50]
push edi
push dword [eax + esi*8 + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
inc esi
add edi, 0xc
cmp esi, dword [ebp - 0x2c]
jb 0x47cc45
push dword [ebp - 0x50]
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp - 0x54]
call sub.ADVAPI32.dll_LsaClose
test ebx, ebx
jne 0x47ccad
push 0x4c
call fcn.004c8c9a
mov ebx, eax
add esp, 4
xor edi, edi
xor esi, esi
mov dword [ebx], 0
lea ecx, [edi + 4]
add ecx, ebx
push ecx
push dword [esi + 0x5385c8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x47cca2
inc dword [ebx]
add esi, 4
add edi, 0xc
cmp esi, 0x14
jb 0x47cc88
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ecx], eax
jbe 0x47cd20
lea esi, [ecx + 4]
nop dword [eax]
mov edi, dword [ebx]
xor edx, edx
test edi, edi
je 0x47ccec
lea eax, [ebx + 4]
nop dword [eax + eax]
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x47ccde
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
je 0x47cce6
inc edx
add eax, 0xc
cmp edx, edi
jb 0x47ccd0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp edx, edi
jne 0x47cd15
mov edx, dword [ebp - 0x58]
movq xmm0, qword [esi]
mov ecx, dword [edx]
lea eax, [ecx + 1]
mov dword [edx], eax
lea eax, [ecx + ecx*2]
lea ecx, [edx + eax*4]
movq qword [ecx + 4], xmm0
mov eax, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
inc eax
add esi, 0xc
mov dword [ebp - 0x2c], eax
cmp eax, dword [ecx]
jb 0x47ccc0
push ecx
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
mov ebx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
add esp, 8
push eax
push 0
push 0
lea eax, [ebx + 4]
push eax
push dword [ebx]
lea eax, [ebp - 0x74]
push eax
push 1
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
mov esi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
jne 0x47cd64
mov dword [ebp - 0x28], 0
jmp 0x47cdc2
push 0x50fa98
push 1
push 0x4fbe00
call fcn.0042f9d0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x555c28], eax
test eax, eax
je 0x47cdc2
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
je 0x47cdc2
mov eax, dword [ebp - 0x38]
push eax
mov dword [ebp - 0x68], 0x20
mov dword [ebp - 0x6c], eax
call esi
add eax, 8
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x19
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x3c]
call fcn.004c8c9a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x4c], edi
push eax
push dword [ebp - 0x3c]
push edi
push 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x64]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 4
push 6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
push dword [edi]
call esi
mov ecx, dword [ebp - 0x40]
movzx esi, word [ecx + 2]
add esi, 8
add esi, eax
push esi
call fcn.004c8c9a
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov ecx, dword [ebp - 0x40]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 4]
jae 0x47ce70
lea eax, [ebp - 0x5c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov ecx, dword [ebp - 0x5c]
movzx eax, word [ecx + 2]
push eax
push ecx
push esi
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov ecx, dword [ebp - 0x40]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jb 0x47ce45
mov esi, dword [ebp - 0x4c]
push dword [esi]
push 0x10000000
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push 0
push edi
push 0
push 0
push 4
push 6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov dword [ebp - 0x60], edi
movzx eax, word [edi + 2]
push eax
lea eax, [ebp - 0x60]
push eax
push 6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push edi
call fcn.004c8c7f
push esi
call fcn.004c8c7f
add esp, 8
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
call esi
push dword [ebp - 0x48]
call esi
push ebx
call fcn.004c8c7f
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x28]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret