Function at 0x100176f0
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.10028bb0
mov eax, dword [0x1005c1c4]
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 0x1001784f
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 0x1001775c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1db8]
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x18]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x10017dbb
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x570]
test eax, eax
je 0x10017841
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1001783a
push 0x104
lea eax, [esp + 0x15b4]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1001783a
lea ecx, [esp + 0x15b0]
call fcn.1001d3c0
push eax
lea eax, [esp + 0x1574]
push 0x100554c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x19b4]
lea ecx, [esp + 0x15b4]
call fcn.1001d1a0
add esp, 4
test al, al
je 0x1001783a
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 0x100554c8
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.10018870
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10017770
jmp 0x10017dbb
cmp eax, 1
jne 0x10017a62
test edi, edi
je 0x10017dbb
push edi
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10017dbb
push 0x424
lea eax, [esp + 0x150]
push 0
push eax
call fcn.1002ab80
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 fcn.1002ab80
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x368], cx
je 0x100178fd
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 0x100178e0
lea ecx, [esp + 0x15b0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017907
sub ecx, edx
xor edx, edx
test ecx, ecx
js 0x1001793d
nop word [eax + eax]
mov al, byte [esp + edx + 0x15b0]
cmp al, 0x41
jl 0x10017938
cmp al, 0x5a
jg 0x10017938
add al, 0x20
mov byte [esp + edx + 0x15b0], al
inc edx
cmp edx, ecx
jle 0x10017920
push 0x1f4
lea eax, [esp + 0x17bc]
push 0
push eax
call fcn.1002ab80
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x168], cx
je 0x1001798d
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 0x10017970
lea ecx, [esp + 0x17b8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017997
sub ecx, edx
xor edx, edx
test ecx, ecx
js 0x100179cd
nop word [eax + eax]
mov al, byte [esp + edx + 0x17b8]
cmp al, 0x41
jl 0x100179c8
cmp al, 0x5a
jg 0x100179c8
add al, 0x20
mov byte [esp + edx + 0x17b8], al
inc edx
cmp edx, ecx
jle 0x100179b0
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.100025e0
mov eax, dword [0x101ab0f4]
add esp, 8
cmp eax, dword [0x101ab0f8]
jne 0x10017a1f
push ecx
call fcn.100188d0
mov eax, dword [0x101ab0f4]
test eax, eax
je 0x10017a35
mov edi, eax
lea esi, [esp + 0x20]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x101ab0f4]
add eax, 0x128
mov dword [0x101ab0f4], eax
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x100178b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10017dbb
cmp eax, 2
jne 0x10017dbb
test edi, edi
je 0x10017743
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 0x10017743
mov ebx, dword [esp + 0x1c]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x10017b45
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x570]
test eax, eax
je 0x10017b38
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10017b31
mov eax, dword [esp + 0x18]
cmp dword [esp + esi*4 + 0x570], eax
jne 0x10017b31
push 0x104
lea eax, [esp + 0x1bbc]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10017b31
lea ecx, [esp + 0x1bb8]
call fcn.1001d3c0
push eax
lea eax, [esp + 0x1574]
push 0x100554c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x19b4]
lea ecx, [esp + 0x1bbc]
call fcn.1001d1a0
add esp, 4
test al, al
jne 0x10017b41
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10017ab0
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x19b0]
mov dword [0x10accc4c], 0
push eax
push 0x100554c0
lea eax, [esp + 0x15b8]
push 0x208
push eax
call fcn.100172d0
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.100172d0
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 0x10017dbb
nop dword [eax]
mov eax, dword [0x10accc4c]
cmp eax, 0xc8
jg 0x10017d97
xor ecx, ecx
mov dword [esp + 0x17b8], edi
cmp word [esp + 0x174], cx
je 0x10017c0a
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 0x10017bf0
mov eax, 0x100554cd
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.100025e0
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 fcn.1002ab80
add esp, 0xc
lea eax, [esp + 0x15b0]
push 0x208
push 0
push eax
call fcn.1002ab80
add esp, 0xc
lea eax, [esp + 0x19b0]
push eax
push 0x100554c0
lea eax, [esp + 0x15b8]
push 0x208
push eax
call fcn.100172d0
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.100172d0
add esp, 0x14
lea eax, [esp + 0x20]
push 0x104
push 0
push eax
call fcn.1002ab80
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x15b0], cx
je 0x10017cfe
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 0x10017ce6
mov eax, 0x100554cd
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.100025e0
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 fcn.1002ab80
mov eax, dword [0x101ab0f4]
add esp, 0xc
cmp eax, dword [0x101ab0f8]
jne 0x10017d65
push ecx
call fcn.100188d0
mov eax, dword [0x101ab0f4]
test eax, eax
je 0x10017d88
mov edi, eax
lea esi, [esp + 0x17b8]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x101ab0f4]
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add eax, 0x128
mov dword [0x101ab0f4], eax
mov eax, dword [0x10accc4c]
inc eax
mov dword [0x10accc4c], eax
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10017bc0
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.10027a55
mov esp, ebp
pop ebp
ret 8