Function at 0x10016c00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10107f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x450], edi
mov esi, dword [eax]
mov ebx, ecx
mov dword [ebp - 0x44c], ebx
cmp esi, edi
jne 0x10016c4f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x21c], ax
call fcn.10066620
push 0x206
lea eax, [ebp - 0x422]
xor edx, edx
push edi
push eax
mov word [ebp - 0x424], dx
call fcn.10066620
add esp, 0x18
xor ecx, ecx
mov eax, 0x104
push 0x10
mov word [ebp - 0x440], cx
push str.SeDebugPrivilege
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
call fcn.1000abb0
lea edx, [ebp - 0x440]
push edx
mov dword [ebp - 4], edi
call fcn.10016f10
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x42c], 8
jb 0x10016d01
mov eax, dword [ebp - 0x440]
push eax
call fcn.10065453
add esp, 4
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x458], eax
cmp eax, edi
je 0x10016e9d
xor ecx, ecx
push 0xc
mov word [ebp - 0x440], cx
push str.advapi32.dll
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
call fcn.1000abb0
cmp dword [ebp - 0x430], edi
jne 0x10016d53
xor esi, esi
jmp 0x10016d9c
mov eax, dword [ebp - 0x440]
mov esi, 8
cmp dword [ebp - 0x42c], esi
jae 0x10016d6c
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
jne 0x10016d9a
mov eax, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], esi
jae 0x10016d8b
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
jne 0x10016d9a
xor esi, esi
jmp 0x10016d9c
mov esi, eax
cmp dword [ebp - 0x42c], 8
jb 0x10016db4
mov edx, dword [ebp - 0x440]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
mov word [ebp - 0x440], ax
cmp esi, edi
je 0x10016e9d
push str.OpenProcessToken
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10016e9d
mov edx, dword [ebp - 0x458]
lea ecx, [ebp - 0x448]
push ecx
push 8
push edx
call eax
test eax, eax
je 0x10016e9d
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x448]
lea eax, [ebp - 0x444]
push eax
push ecx
push edi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10016e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10016e9d
mov ebx, dword [ebp - 0x444]
push ebx
call fcn.10066a7d
mov esi, eax
add esp, 4
cmp esi, edi
je 0x10016e97
mov ecx, dword [ebp - 0x448]
lea eax, [ebp - 0x444]
push eax
push ebx
push esi
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10016e8e
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x450]
push edx
lea eax, [ebp - 0x21c]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.10066b11
add esp, 4
mov ebx, dword [ebp - 0x44c]
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
lea eax, [ebp - 0x21c]
mov word [ebx], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10016eb5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.1000abb0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret