Function at 0x17ca0a80
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 4], 0xffffffff
push ebx
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.17ce52a8
test eax, eax
je 0x17ca0aae
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x17ca0afe
call fcn.17ce51cd
mov edi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca0cbb
test byte [eax + 0x1c], 1
je 0x17ca0cbb
push edi
push 0x17c91700
push 0x7c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
jmp 0x17ca0cbb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 3
push dword [ebp - 4]
call esi
test eax, eax
jne 0x17ca0b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x17ca0b4f
call fcn.17ce51cd
mov edi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca0cba
test byte [eax + 0x1c], 1
je 0x17ca0cba
push edi
push 0x17c91700
push 0x7d
jmp 0x17ca0caf
push dword [ebp - 0xc]
call fcn.17d07b64
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x17ca0b8c
mov ecx, 0x8007000e
mov edi, ecx
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca0cba
test byte [eax + 0x1c], 1
je 0x17ca0cba
push ecx
push 0x17c91700
push 0x7e
jmp 0x17ca0caf
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push eax
push 3
push dword [ebp - 4]
call esi
test eax, eax
jne 0x17ca0bcd
call fcn.17ce51cd
mov edi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca0cba
test byte [eax + 0x1c], 1
je 0x17ca0cba
push edi
push 0x17c91700
push 0x7f
jmp 0x17ca0caf
xor esi, esi
cmp dword [esi + 0x17d2601c], ebx
je 0x17ca0be6
push dword [esi + 0x17d26020]
call fcn.17ca2103
test eax, eax
je 0x17ca0c0e
lea eax, [esi + 0x17d26014]
push eax
push dword [esi + 0x17d26010]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x17ca0c0e
call fcn.17ce51cd
cmp eax, 0x80070521
jne 0x17ca0cdd
add esi, 0x14
cmp esi, 0xc8
jb 0x17ca0bcf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
cmp dword [eax], ebx
jbe 0x17ca0c79
add eax, 0xc
lea edx, [eax - 8]
mov dword [ebp - 0x10], 0x17d26014
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x10]
push 2
pop ecx
mov esi, edx
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x17ca0d03
add dword [ebp - 0x14], 0x14
add dword [ebp - 0x10], 0x14
cmp dword [ebp - 0x14], 0xc8
jb 0x17ca0c33
mov ecx, dword [ebp - 0x1c]
neg ecx
sbb ecx, ecx
and ecx, 4
mov dword [eax], ecx
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
add eax, 0xc
xor ebx, ebx
cmp edx, dword [ecx]
jb 0x17ca0c26
mov edi, dword [ebp - 0x20]
mov eax, ecx
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x17ca0cba
call fcn.17ce51cd
mov edi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca0cba
test byte [eax + 0x1c], 1
je 0x17ca0cba
push edi
push 0x17c91700
push 0x81
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
pop esi
cmp dword [ebp - 4], 0xffffffff
je 0x17ca0cca
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x17ca0cd7
push dword [ebp - 8]
call fcn.17d07bb4
mov eax, edi
pop edi
pop ebx
leave
ret
call fcn.17ce51cd
mov edi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca0cba
test byte [eax + 0x1c], 1
je 0x17ca0cba
push edi
push 0x17c91700
push 0x80
jmp 0x17ca0caf
mov dword [eax], 2
jmp 0x17ca0c62