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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x240], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x23f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
push 1
push str.SeDebugPrivilege
call fcn.10013f30
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10013cec
xor eax, eax
jmp 0x10013f1a
mov dword [ebp - 0x138], 0x128
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov byte [eax], 0x80
mov dword [ebp - 0x248], 1
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10013edf
mov eax, dword [ebp - 0x130]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x130], 0
je 0x10013ec7
cmp dword [ebp - 0x130], 4
je 0x10013ec7
cmp dword [ebp - 0x130], 8
je 0x10013ec7
lea ecx, [ebp - 0x13c]
push ecx
push 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.PSAPI.DLL_EnumProcessModules
push 0x104
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esi + eax + 6]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov edx, dword [ebp - 0x248]
add edx, dword [ebp - 0x24c]
cmp eax, edx
jae 0x10013e06
push 0x42
mov eax, dword [ebp - 0x248]
add eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x244], eax
push 4
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x244]
add eax, dword [ebp - 0x248]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x248]
add ecx, 4
mov dword [ebp - 0x248], ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x244]
add ecx, dword [ebp - 0x248]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x248]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x248], edx
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
add edx, dword [ebp - 0x248]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x248]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x248], edx
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10013d34
push 0x42
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x244], eax
push 0
push str.SeDebugPrivilege
call fcn.10013f30
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret