Function at 0x10005ea0
Capabilities:
Enumerate files on windows
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1dbc
call fcn.1001fa20
mov eax, dword [0x10028014]
xor eax, esp
mov dword [esp + 0x1db8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], edi
test eax, eax
jne 0x10005fff
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x1000
lea eax, [esp + 0x578]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x10005f0c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1db8]
xor ecx, esp
call fcn.1001e905
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x18]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x1000656b
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x570]
test eax, eax
je 0x10005ff1
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10005fea
push 0x104
lea eax, [esp + 0x15b4]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10005fea
lea ecx, [esp + 0x15b0]
call fcn.10004a20
push eax
lea eax, [esp + 0x1574]
push 0x10021b44
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x19b4]
lea ecx, [esp + 0x15b4]
call fcn.10004820
add esp, 4
test al, al
je 0x10005fea
mov eax, dword [esp + esi*4 + 0x570]
movups xmm0, xmmword [esp + 0x1570]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x19b0]
push eax
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x48]
movups xmm0, xmmword [esp + 0x1584]
push 0x10021b44
push eax
movups xmmword [esp + 0x40], xmm0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call fcn.100188f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10005f20
jmp 0x1000656b
cmp eax, 1
jne 0x10006212
test edi, edi
je 0x1000656b
push edi
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000656b
push 0x424
lea eax, [esp + 0x150]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x148], 0x428
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
nop word [eax + eax]
push 0x1f4
lea eax, [esp + 0x15b4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x368], cx
je 0x100060ad
lea eax, [esp + 0x368]
nop word [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x15af], al
lea eax, [esp + 0x368]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x10006090
lea ecx, [esp + 0x15b0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100060b7
sub ecx, edx
xor edx, edx
test ecx, ecx
js 0x100060ed
nop word [eax + eax]
mov al, byte [esp + edx + 0x15b0]
cmp al, 0x41
jl 0x100060e8
cmp al, 0x5a
jg 0x100060e8
add al, 0x20
mov byte [esp + edx + 0x15b0], al
inc edx
cmp edx, ecx
jle 0x100060d0
push 0x1f4
lea eax, [esp + 0x17bc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x168], cx
je 0x1000613d
lea eax, [esp + 0x168]
nop word [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x17b7], al
lea eax, [esp + 0x168]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x10006120
lea ecx, [esp + 0x17b8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006147
sub ecx, edx
xor edx, edx
test ecx, ecx
js 0x1000617d
nop word [eax + eax]
mov al, byte [esp + edx + 0x17b8]
cmp al, 0x41
jl 0x10006178
cmp al, 0x5a
jg 0x10006178
add al, 0x20
mov byte [esp + edx + 0x17b8], al
inc edx
cmp edx, ecx
jle 0x10006160
movups xmm0, xmmword [esp + 0x17b8]
mov eax, dword [esp + 0x150]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x15b0]
movups xmmword [esp + 0x24], xmm0
push eax
movups xmm0, xmmword [esp + 0x17cc]
lea eax, [esp + 0x48]
push eax
movups xmmword [esp + 0x3c], xmm0
call fcn.10001410
mov eax, dword [0x10188c10]
add esp, 8
cmp eax, dword [0x10188c14]
jne 0x100061cf
push ecx
call fcn.100199c0
mov eax, dword [0x10188c10]
test eax, eax
je 0x100061e5
mov edi, eax
lea esi, [esp + 0x20]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x10188c10]
add eax, 0x128
mov dword [0x10188c10], eax
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x10006060
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000656b
cmp eax, 2
jne 0x1000656b
test edi, edi
je 0x10005ef3
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0x1000
lea eax, [esp + 0x578]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x10005ef3
mov ebx, dword [esp + 0x1c]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x100062f5
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x570]
test eax, eax
je 0x100062e8
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100062e1
mov eax, dword [esp + 0x18]
cmp dword [esp + esi*4 + 0x570], eax
jne 0x100062e1
push 0x104
lea eax, [esp + 0x1bbc]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x100062e1
lea ecx, [esp + 0x1bb8]
call fcn.10004a20
push eax
lea eax, [esp + 0x1574]
push 0x10021b44
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x19b4]
lea ecx, [esp + 0x1bbc]
call fcn.10004820
add esp, 4
test al, al
jne 0x100062f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10006260
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x19b0]
mov dword [0x10aaa668], 0
push eax
push 0x10021b48
lea eax, [esp + 0x15b8]
push 0x208
push eax
call fcn.10001370
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x15c0]
add esp, 0x10
push eax
call esi
lea eax, [esp + 0x15b0]
push eax
push str._ls.
push 0x208
push eax
call fcn.10001370
add esp, 0x10
lea eax, [esp + 0x148]
push eax
lea eax, [esp + 0x15b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000656b
nop dword [eax]
mov eax, dword [0x10aaa668]
cmp eax, 0xc8
jg 0x10006547
xor ecx, ecx
mov dword [esp + 0x17b8], edi
cmp word [esp + 0x174], cx
je 0x100063ba
lea eax, [esp + 0x174]
nop word [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x1f], al
lea eax, [esp + 0x174]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x100063a0
mov eax, 0x10021b61
mov byte [esp + 0x10], 0x25
mov byte [esp + 0x12], 0
mov al, byte [eax]
xor al, 0xe3
mov byte [esp + 0x11], al
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x17c4]
push eax
call fcn.10001410
add esp, 0xc
xor eax, eax
mov word [esp + 0x10], ax
mov byte [esp + 0x12], al
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x15b0]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x19b0]
push eax
push 0x10021b48
lea eax, [esp + 0x15b8]
push 0x208
push eax
call fcn.10001370
add esp, 0x10
lea eax, [esp + 0x15b0]
push eax
call esi
lea eax, [esp + 0x174]
push eax
lea eax, [esp + 0x15b4]
push eax
push str._ls_ls
push 0x208
push eax
call fcn.10001370
add esp, 0x14
lea eax, [esp + 0x20]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x15b0], cx
je 0x100064ae
lea eax, [esp + 0x15b0]
mov al, byte [eax]
mov byte [esp + ecx + 0x20], al
inc ecx
lea eax, [esp + 0x15b0]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x10006496
mov eax, 0x10021b61
mov byte [esp + 0x14], 0x25
mov byte [esp + 0x16], 0
mov al, byte [eax]
xor al, 0xe3
mov byte [esp + 0x15], al
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x17e4]
push eax
call fcn.10001410
add esp, 0xc
xor eax, eax
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x10188c10]
add esp, 0xc
cmp eax, dword [0x10188c14]
jne 0x10006515
push ecx
call fcn.100199c0
mov eax, dword [0x10188c10]
test eax, eax
je 0x10006538
mov edi, eax
lea esi, [esp + 0x17b8]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x10188c10]
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add eax, 0x128
mov dword [0x10188c10], eax
mov eax, dword [0x10aaa668]
inc eax
mov dword [0x10aaa668], eax
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10006370
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1dc4]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001e905
mov esp, ebp
pop ebp
ret 8