Function at 0x4024a0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
movdqu xmm0, xmmword [0x420970]
push esi
push edi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
movdqu xmmword [ebp - 0x1c], xmm0
push 2
movq xmm0, qword [0x420980]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 3
push ebx
mov dword [ebp - 0x68], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [ebp - 0x30]
push esi
call fcn.00407316
add esp, 4
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x30]
call fcn.00407316
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [eax], 0
lea eax, [ebp - 0x44]
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 edi
push dword [ebp - 0x44]
call fcn.00402830
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4025ea
push 0x4c
call fcn.00407316
mov ebx, eax
add esp, 4
xor edi, edi
xor esi, esi
mov dword [ebx], 0
lea eax, [ebx + 4]
add eax, edi
push eax
push dword [esi + 0x4290c8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4025df
inc dword [ebx]
add esi, 4
add edi, 0xc
cmp esi, 0x14
jb 0x4025c5
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ecx], eax
jbe 0x402660
lea esi, [ecx + 4]
lea esp, [esp]
mov edi, dword [ebx]
xor edx, edx
test edi, edi
je 0x40262c
lea eax, [ebx + 4]
jmp 0x402610
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x40261e
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
je 0x402626
inc edx
add eax, 0xc
cmp edx, edi
jb 0x402610
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
cmp edx, edi
jne 0x402655
mov edi, dword [ebp - 0x2c]
mov ecx, dword [edi]
lea eax, [ecx + ecx*2]
lea edx, [edi + eax*4]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x3c]
mov dword [edi], eax
movq xmm0, qword [esi]
movq qword [edx + 4], xmm0
mov eax, dword [esi + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x34]
inc eax
add esi, 0xc
mov dword [ebp - 0x34], eax
cmp eax, dword [ecx]
jb 0x402600
push ecx
call fcn.004072de
push ebx
call fcn.004072de
mov ebx, dword [ebp - 0x2c]
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 - 0x6c]
push eax
push 1
push 0
push dword [ebp - 0x58]
call dword [0x42b378]
mov edi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
jne 0x4026a4
mov dword [ebp - 0x28], 0
jmp 0x4026fe
push 0x420988
push 0x4209a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42b344], eax
test eax, eax
je 0x4026fe
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
je 0x4026fe
mov eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 0x50], 0x20
mov dword [ebp - 0x54], eax
call edi
add eax, 8
push eax
lea eax, [ebp - 0x54]
push eax
push 0x19
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [ebp - 0x4c]
push esi
call fcn.00407316
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x4c]
push ecx
push esi
push eax
push 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x60]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 4
push 6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call edi
mov ecx, dword [ebp - 0x38]
movzx esi, word [ecx + 2]
add esi, 8
add esi, eax
push esi
call fcn.00407316
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 4]
jae 0x4027ac
lea eax, [ebp - 0x64]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov ecx, dword [ebp - 0x64]
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 - 0x38]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jb 0x402781
mov esi, dword [ebp - 0x2c]
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 - 0x5c], edi
movzx eax, word [edi + 2]
push eax
lea eax, [ebp - 0x5c]
push eax
push 6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push edi
call fcn.004072de
push esi
call fcn.004072de
add esp, 8
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x40]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
call esi
push dword [ebp - 0x44]
call esi
push ebx
call fcn.004072de
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x28]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004077dc
mov esp, ebp
pop ebp
ret