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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x468], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x228
lea ecx, [esp + 0x40]
push esi
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], esi
call fcn.100113d0
add esp, 0xc
push 0x206
lea eax, [esp + 0x26e]
xor edx, edx
push esi
push eax
mov word [esp + 0x274], dx
call fcn.100113d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
push 0x28
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000aecc
lea edx, [esp + 0x24]
push edx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [esp + 0xc]
push esi
push esi
push 0x10
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
jne 0x1000aef8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.1000c146
mov esp, ebp
pop ebp
ret 4
push 0x400
push 8
push edi
mov dword [esp + 0x44], 0x22c
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [esp + 0x38]
push eax
mov dword [edi], esi
push ebx
mov esi, 4
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000b029
mov ecx, dword [esp + 0x40]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000b00e
cmp eax, 4
je 0x1000b00e
cmp eax, 8
je 0x1000b00e
lea edx, [esp + 0x34]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
push 0x208
lea ecx, [esp + 0x26c]
push ecx
push edx
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x268]
push ecx
lea ebx, [eax + eax + 2]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
lea eax, [eax + ebx + 4]
add eax, esi
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jae 0x1000afd5
mov edx, dword [esp + 0x30]
push ecx
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov eax, dword [esp + 0x40]
mov dword [esi + edi], eax
push ebx
lea ecx, [esp + 0x60]
add esi, 4
push ecx
lea edx, [esi + edi]
push edx
call fcn.100119c0
add esp, 0xc
add esi, ebx
mov ebx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x26c]
push eax
lea ecx, [esi + edi]
push ecx
call fcn.100119c0
add esp, 0xc
add esi, ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000af2a
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push 0x28
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b092
lea eax, [esp + 0x24]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x474]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c146
mov esp, ebp
pop ebp
ret 4