Function at 0x4aa1c0
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
mov eax, 0x24a4
call fcn.004f2630
push ebx
push esi
lea eax, [esp + 0x28]
xor esi, esi
push 0x80
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x3ac]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [esp + 0x24b4]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x4b0]
push 0x1000
push eax
mov dword [ebx], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4aa227
mov dword [ebx], esi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24a4
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
shr eax, 2
mov dword [esp + 0x20], eax
je 0x4aa77c
lea ecx, [esp + 0x4ac]
push ebp
push edi
mov dword [esp + 0x10], ecx
jmp 0x4aa24f
mov esi, dword [esp + 0x2c]
inc esi
cmp esi, 0x1f4
mov dword [esp + 0x2c], esi
jg 0x4aa772
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14b4]
push ecx
mov esi, eax
push 0x1000
push edx
push esi
mov dword [esp + 0x28], esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4aa747
mov dword [esp + 0x14], 0
lea ebp, [esp + 0x14b4]
jmp 0x4aa2af
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp]
lea eax, [esp + 0x2b0]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4aa728
lea edi, [esp + 0x2b0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push str._swinlogon.exe
push edx
call fcn.004f175f
lea eax, [esp + 0x1bc]
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea edx, [esp + 0x30]
lea eax, [esp + 0xb0]
push edx
push str.___swinlogon.exe
push eax
call fcn.004f175f
lea ecx, [esp + 0x1bc]
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea eax, [esp + 0x30]
lea ecx, [esp + 0xb0]
push eax
push str._scsrss.exe
push ecx
call fcn.004f175f
lea edx, [esp + 0x1bc]
lea eax, [esp + 0xbc]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x30]
lea edx, [esp + 0xb0]
push ecx
push 0x528418
push edx
call fcn.004f175f
lea eax, [esp + 0x1bc]
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea edx, [esp + 0x30]
lea eax, [esp + 0xb0]
push edx
push str._s_services.exe
push eax
call fcn.004f175f
lea ecx, [esp + 0x1bc]
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea eax, [esp + 0x30]
lea ecx, [esp + 0xb0]
push eax
push str._slsass.exe
push ecx
call fcn.004f175f
lea edx, [esp + 0x1bc]
lea eax, [esp + 0xbc]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x30]
lea edx, [esp + 0xb0]
push ecx
push str._s_svchost.exe
push edx
call fcn.004f175f
lea eax, [esp + 0x1bc]
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea edx, [esp + 0x30]
lea eax, [esp + 0xb0]
push edx
push str._s_spoolsv.exe
push eax
call fcn.004f175f
lea ecx, [esp + 0x1bc]
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea eax, [esp + 0x1b0]
push eax
push str.SystemRootSystem32_smss.exe
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x1b0]
push ecx
push str.__SystemRootSystem32_smss.exe
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea edx, [esp + 0x30]
lea eax, [esp + 0xb0]
push edx
push str._sctfmon.exe
push eax
call fcn.004f175f
lea ecx, [esp + 0x1bc]
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea eax, [esp + 0x30]
lea ecx, [esp + 0xb0]
push eax
push str._sconime.exe
push ecx
call fcn.004f175f
lea edx, [esp + 0x1bc]
lea eax, [esp + 0xbc]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x30]
lea edx, [esp + 0xb0]
push ecx
push str._s_taskmgr.exe
push edx
call fcn.004f175f
lea eax, [esp + 0x1bc]
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea edx, [esp + 0x30]
lea eax, [esp + 0xb0]
push edx
push str._smdm.exe
push eax
call fcn.004f175f
lea ecx, [esp + 0x1bc]
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aa732
lea eax, [esp + 0x3b4]
lea ecx, [esp + 0xb0]
push eax
push str._sexplorer.exe
push ecx
call fcn.004f175f
lea edx, [esp + 0x1bc]
lea eax, [esp + 0xbc]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
jne 0x4aa60c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
jmp 0x4aa732
lea eax, [esp + 0x1b0]
push str.c:endp_bin_spoolsu.exe
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x1b0]
push str.c:endp_bin_spoolsw.exe
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea edx, [esp + 0x1b0]
push str.c:endpcache_fileservice.exe
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea eax, [esp + 0x1b0]
push str.c:endpcacheprocservice.exe
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x1b0]
push str.c:endpcacheuserservice.exe
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea edx, [esp + 0x1b0]
push str.c:endpcachecardMonitor.exe
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea eax, [esp + 0x1b0]
push str.c:endpcachecardMonitorXp.exe
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
lea ecx, [esp + 0x1b0]
push str.c:endpcache_regService.exe
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aa732
mov edx, dword [ebx]
mov ecx, dword [esp + 0x24b8]
shl edx, 7
add edx, ecx
lea edi, [esp + 0x2b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
inc ecx
mov eax, ecx
mov dword [ebx], ecx
cmp eax, 0x100
je 0x4aa747
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add ebp, 4
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jb 0x4aa2ab
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jb 0x4aa24b
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
pop ebp
jg 0x4aa781
mov eax, 1
pop esi
pop ebx
add esp, 0x24a4
ret