Function at 0x1000e170
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x100357ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x40]
push ecx
push 0xf01ff
push eax
mov dword [ebp - 0x50], eax
call ebx
test eax, eax
je 0x1000e810
mov ecx, dword [ebp - 0x40]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x4c]
push edx
push 4
lea eax, [ebp - 0x60]
push eax
push 0x14
push ecx
call esi
test eax, eax
je 0x1000e23b
cmp dword [ebp - 0x60], 0
jne 0x1000e23b
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x4c]
push edx
push 4
lea eax, [ebp - 0x44]
push eax
push 0x12
push ecx
call esi
test eax, eax
je 0x1000e23b
cmp dword [ebp - 0x44], 3
jne 0x1000e23b
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x4c]
push edx
push 4
lea eax, [ebp - 0x34]
push eax
push 0x13
push ecx
call esi
test eax, eax
je 0x1000e821
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000e231
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x40]
push ecx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a2e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000df00
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1000e806
push eax
push 0
push 0x1001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x1000e806
lea ecx, [ebp - 0x34]
push ecx
push 0xf01ff
push esi
call ebx
test eax, eax
je 0x1000e7ff
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea edx, [ebp - 0x78]
push edx
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x48], 0x10
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x10
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push edx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], SysReAllocString
call edi
mov ecx, dword [ebp - 0x34]
push 0
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 1
push ecx
call edi
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeAssignPrimaryTokenPrivilege
xor ebx, ebx
push ebx
call esi
test eax, eax
je 0x1000e303
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeLockMemoryPrivilege
push ebx
call esi
test eax, eax
je 0x1000e324
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
call esi
test eax, eax
je 0x1000e345
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeUnsolicitedInputPrivilege
push ebx
call esi
test eax, eax
je 0x1000e366
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeMachineAccountPrivilege
push ebx
call esi
test eax, eax
je 0x1000e387
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeTcbPrivilege
push ebx
call esi
test eax, eax
je 0x1000e3a8
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeSecurityPrivilege
push ebx
call esi
test eax, eax
je 0x1000e3c9
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeTakeOwnershipPrivilege
push ebx
call esi
test eax, eax
je 0x1000e3ea
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeLoadDriverPrivilege
push ebx
call esi
test eax, eax
je 0x1000e40b
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeSystemProfilePrivilege
push ebx
call esi
test eax, eax
je 0x1000e42c
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeSystemtimePrivilege
push ebx
call esi
test eax, eax
je 0x1000e44d
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeProfileSingleProcessPrivilege
push ebx
call esi
test eax, eax
je 0x1000e46e
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeIncreaseBasePriorityPrivilege
push ebx
call esi
test eax, eax
je 0x1000e48f
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeCreatePagefilePrivilege
push ebx
call esi
test eax, eax
je 0x1000e4b0
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeCreatePermanentPrivilege
push ebx
call esi
test eax, eax
je 0x1000e4d1
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeBackupPrivilege
push ebx
call esi
test eax, eax
je 0x1000e4f2
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeRestorePrivilege
push ebx
call esi
test eax, eax
je 0x1000e513
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
test eax, eax
je 0x1000e534
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeDebugPrivilege
push ebx
call esi
test eax, eax
je 0x1000e555
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeAuditPrivilege
push ebx
call esi
test eax, eax
je 0x1000e576
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeSystemEnvironmentPrivilege
push ebx
call esi
test eax, eax
je 0x1000e597
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeChangeNotifyPrivilege
push ebx
call esi
test eax, eax
je 0x1000e5b8
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeRemoteShutdownPrivilege
push ebx
call esi
test eax, eax
je 0x1000e5d9
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeUndockPrivilege
push ebx
call esi
test eax, eax
je 0x1000e5fa
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeSyncAgentPrivilege
push ebx
call esi
test eax, eax
je 0x1000e61b
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeEnableDelegationPrivilege
push ebx
call esi
test eax, eax
je 0x1000e63c
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeManageVolumePrivilege
push ebx
call esi
test eax, eax
je 0x1000e65d
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeImpersonatePrivilege
push ebx
call esi
test eax, eax
je 0x1000e67e
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeCreateGlobalPrivilege
push ebx
call esi
test eax, eax
je 0x1000e69f
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeTrustedCredManAccessPrivilege
push ebx
call esi
test eax, eax
je 0x1000e6c0
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeRelabelPrivilege
push ebx
call esi
test eax, eax
je 0x1000e6e1
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
push str.SeIncreaseWorkingSetPrivilege
push ebx
call esi
test eax, eax
je 0x1000e702
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeTimeZonePrivilege
push ebx
call esi
test eax, eax
je 0x1000e723
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.1000e110
add esp, 4
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push edx
push str.SeCreateSymbolicLinkPrivilege
push ebx
call esi
test eax, eax
je 0x1000e744
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.1000e110
add esp, 4
lea ecx, [ebp - 0x10]
xor eax, eax
mov edx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x54], ebx
push edx
mov word [ebp - 0x10], 0x101
mov byte [ebp - 9], 0x10
mov dword [ebp - 8], ebx
mov dword [ebp - 0x54], 0x20
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x34]
add eax, 8
push eax
lea eax, [ebp - 0x58]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x70]
call fcn.1000df90
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
sub ecx, eax
sar ecx, 2
add esp, 4
xor esi, esi
test ecx, ecx
je 0x1000e7ca
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageW]
nop
mov edx, dword [eax + esi*4]
push ebx
push ebx
push 0x12
push edx
call edi
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x1000e7b0
mov edx, dword [ebp - 0x44]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
push ebx
push ebx
push eax
lea ecx, [ebp - 0x30]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x70]
call fcn.1000fd30
mov esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012a2e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x40]
push eax
jmp 0x1000e80a