Function at 0x1000e420
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x10042040]
xor eax, esp
mov dword [esp + 0x258], 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 0x1000e4ac
lea eax, [esp + 0x14c]
mov dword [esp + 0x148], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x160], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x154]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
call ebx
push 0x124
lea eax, [esp + 0x28]
push 0
push eax
call fcn.10013850
add esp, 0xc
mov dword [esp + 0x20], 0x128
lea eax, [esp + 0x158]
push 0x104
push 0
push eax
call fcn.10013850
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x400
mov esi, eax
mov dword [esp + 0x1c], 0
push 0x40
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [esp + 0x10], 1
lea eax, [esp + 0x20]
push eax
push esi
mov byte [edi], 0x7d
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1000e632
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [esp + 0x28]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
push 0x104
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
neg eax
sbb al, al
and byte [esp + 0x158], al
lea eax, [esp + 0x44]
push eax
call ebx
mov esi, eax
lea eax, [esp + 0x158]
push eax
call ebx
add esi, eax
mov eax, dword [esp + 0x10]
add eax, 6
push edi
add esi, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000e5b1
push 0x42
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [edi + esi], eax
lea eax, [esp + 0x44]
push eax
add esi, 4
call ebx
inc eax
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [edi + esi]
push eax
call fcn.100132d0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call ebx
inc esi
add esi, eax
lea eax, [esp + 0x158]
push eax
call ebx
inc eax
push eax
lea eax, [esp + 0x15c]
push eax
lea eax, [edi + esi]
push eax
call fcn.100132d0
add esp, 0xc
lea eax, [esp + 0x158]
push eax
call ebx
inc esi
add eax, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000e533
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000e69b
lea eax, [esp + 0x14c]
mov dword [esp + 0x148], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x160], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x154]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
call ebx
push esi
call ebx
mov ecx, dword [esp + 0x264]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011882
mov esp, ebp
pop ebp
ret