Function at 0x1001c500
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4f4
mov eax, dword [0x1005e068]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
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 0x1001c596
lea eax, [esp + 0x30]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1001c590
mov eax, dword [esp + 0x30]
push 0
push 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
push 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x58], 1
mov dword [esp + 0x64], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1001c596
push dword [esp + 0x18]
call ebx
mov eax, dword [0x10057dcc]
mov dword [esp + 0x2f8], eax
mov ax, word [0x10057dd0]
push 0x1f8
mov word [esp + 0x300], ax
lea eax, [esp + 0x302]
push 0
push eax
call fcn.10022540
mov eax, dword [0x10057de4]
add esp, 0xc
movups xmm0, xmmword [str.0tray.exe]
mov dword [esp + 0x2a0], eax
lea eax, [esp + 0x2a4]
push 0x50
push 0
push eax
movups xmmword [esp + 0x29c], xmm0
call fcn.10022540
add esp, 0xc
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x2fc]
push 0xff
push eax
call fcn.1002e904
add esp, 0xc
lea eax, [esp + 0x64]
xor edi, edi
push 0x228
push edi
push eax
call fcn.10022540
add esp, 0xc
mov dword [esp + 0x60], 0x22c
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001c86c
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001c68e
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [esp + 0x2f8]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.100329aa
add esp, 8
test eax, eax
je 0x1001c741
lea eax, [esp + 0x60]
push eax
push esi
call edi
test eax, eax
jne 0x1001c660
xor edi, edi
push esi
call ebx
test edi, edi
jle 0x1001c86c
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001c8b0
mov edx, str.Hello_World__n
mov ecx, 0x10115ea0
call fcn.10017b70
lea eax, [esp + 0x14]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001c896
lea eax, [esp + 0x38]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x38]
push 0
push 0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x44]
push 0x10
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x68], 1
mov dword [esp + 0x74], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1001c74a
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.1001f7ed
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x68]
jmp 0x1001c68e
push ecx
mov ecx, dword [esp + 0x18]
mov edx, str.SeDebugPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeChangeNotifyPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeTcbPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeImpersonatePrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeLoadDriverPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeRestorePrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeBackupPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeSecurityPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeSystemEnvironmentPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeIncreaseQuotaPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeTakeOwnershipPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeIncreaseBasePriorityPrivilege
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, 0x10057134
call fcn.1001c470
mov ecx, dword [esp + 0x18]
mov edx, str.SeAssignPrimaryTokenPrivilege
call fcn.1001c470
add esp, 4
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x20
movq qword [esp + 0x24], xmm0
push eax
mov word [esp + 0x28], 0x101
mov byte [esp + 0x2f], 0x10
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
push 0x19
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [esp + 0x14]
call ebx
push esi
call ebx
mov ecx, dword [esp + 0x10]
call fcn.1001c8d0
mov ecx, 1
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.1001f7ed
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.1001f7ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4fc]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001f7ed
mov esp, ebp
pop ebp
ret