Function at 0x10017180
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.10028f40
mov eax, dword [0x100571c4]
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 0x100172df
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 0x100171ec
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1db8]
xor ecx, esp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x18]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x1001784b
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x570]
test eax, eax
je 0x100172d1
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100172ca
push 0x104
lea eax, [esp + 0x15b4]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x100172ca
lea ecx, [esp + 0x15b0]
call fcn.1001c5d0
push eax
lea eax, [esp + 0x1574]
push 0x10050e50
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x19b4]
lea ecx, [esp + 0x15b4]
call fcn.1001c3b0
add esp, 4
test al, al
je 0x100172ca
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 0x10050e50
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.100182f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10017200
jmp 0x1001784b
cmp eax, 1
jne 0x100174f2
test edi, edi
je 0x1001784b
push edi
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001784b
push 0x424
lea eax, [esp + 0x150]
push 0
push eax
call fcn.1002aef0
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.1002aef0
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x368], cx
je 0x1001738d
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 0x10017370
lea ecx, [esp + 0x15b0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017397
sub ecx, edx
xor edx, edx
test ecx, ecx
js 0x100173cd
nop word [eax + eax]
mov al, byte [esp + edx + 0x15b0]
cmp al, 0x41
jl 0x100173c8
cmp al, 0x5a
jg 0x100173c8
add al, 0x20
mov byte [esp + edx + 0x15b0], al
inc edx
cmp edx, ecx
jle 0x100173b0
push 0x1f4
lea eax, [esp + 0x17bc]
push 0
push eax
call fcn.1002aef0
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x168], cx
je 0x1001741d
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 0x10017400
lea ecx, [esp + 0x17b8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017427
sub ecx, edx
xor edx, edx
test ecx, ecx
js 0x1001745d
nop word [eax + eax]
mov al, byte [esp + edx + 0x17b8]
cmp al, 0x41
jl 0x10017458
cmp al, 0x5a
jg 0x10017458
add al, 0x20
mov byte [esp + edx + 0x17b8], al
inc edx
cmp edx, ecx
jle 0x10017440
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.10002700
mov eax, dword [0x101a0260]
add esp, 8
cmp eax, dword [0x101a0264]
jne 0x100174af
push ecx
call fcn.10018350
mov eax, dword [0x101a0260]
test eax, eax
je 0x100174c5
mov edi, eax
lea esi, [esp + 0x20]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x101a0260]
add eax, 0x128
mov dword [0x101a0260], eax
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x10017340
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001784b
cmp eax, 2
jne 0x1001784b
test edi, edi
je 0x100171d3
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 0x100171d3
mov ebx, dword [esp + 0x1c]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x100175d5
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x570]
test eax, eax
je 0x100175c8
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100175c1
mov eax, dword [esp + 0x18]
cmp dword [esp + esi*4 + 0x570], eax
jne 0x100175c1
push 0x104
lea eax, [esp + 0x1bbc]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x100175c1
lea ecx, [esp + 0x1bb8]
call fcn.1001c5d0
push eax
lea eax, [esp + 0x1574]
push 0x10050e50
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x19b4]
lea ecx, [esp + 0x1bbc]
call fcn.1001c3b0
add esp, 4
test al, al
jne 0x100175d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x10017540
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x19b0]
mov dword [0x101a067c], 0
push eax
push 0x10050e54
lea eax, [esp + 0x15b8]
push 0x208
push eax
call fcn.10016d60
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.10016d60
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 0x1001784b
nop dword [eax]
mov eax, dword [0x101a067c]
cmp eax, 0xc8
jg 0x10017827
xor ecx, ecx
mov dword [esp + 0x17b8], edi
cmp word [esp + 0x174], cx
je 0x1001769a
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 0x10017680
mov eax, 0x10050e6d
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.10002700
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.1002aef0
add esp, 0xc
lea eax, [esp + 0x15b0]
push 0x208
push 0
push eax
call fcn.1002aef0
add esp, 0xc
lea eax, [esp + 0x19b0]
push eax
push 0x10050e54
lea eax, [esp + 0x15b8]
push 0x208
push eax
call fcn.10016d60
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.10016d60
add esp, 0x14
lea eax, [esp + 0x20]
push 0x104
push 0
push eax
call fcn.1002aef0
xor ecx, ecx
add esp, 0xc
cmp word [esp + 0x15b0], cx
je 0x1001778e
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 0x10017776
mov eax, 0x10050e6d
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.10002700
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.1002aef0
mov eax, dword [0x101a0260]
add esp, 0xc
cmp eax, dword [0x101a0264]
jne 0x100177f5
push ecx
call fcn.10018350
mov eax, dword [0x101a0260]
test eax, eax
je 0x10017818
mov edi, eax
lea esi, [esp + 0x17b8]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x101a0260]
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add eax, 0x128
mov dword [0x101a0260], eax
mov eax, dword [0x101a067c]
inc eax
mov dword [0x101a067c], eax
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10017650
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.10027e1f
mov esp, ebp
pop ebp
ret 8