Function at 0x1004a690
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xd40
mov ecx, dword [esp + 0xd4c]
mov edx, dword [esp + 0xd50]
push ebx
push ebp
push esi
push edi
push 1
push 1
push eax
mov eax, dword [esp + 0xd60]
push ecx
mov ecx, dword [0x107ab964]
push edx
push eax
push ecx
push 0x10227334
call fcn.10029df0
lea edx, [esp + 0x570]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x570]
push edx
push 0x28
rep stosd dword es:[edi], eax
call fcn.100286d0
add esp, 0x28
test eax, eax
je 0x1004abfa
mov edi, str.Users_
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.MSVCRT.dll_strncmp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x552]
push ecx
push str.Users_
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x1004a730
lea edx, [esp + 0x550]
mov edi, 0x10265358
jmp 0x1004a766
mov edi, str.Documents_and_Settings_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x552]
push ecx
push str.Documents_and_Settings_
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x1004abfa
lea edx, [esp + 0x550]
mov edi, 0x10265344
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x950]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x550]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x550]
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, 0x10232584
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x554]
push ecx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004abfa
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jle 0x1004a890
lea edx, [esp + 0x3c]
push str.RDPService
push edx
call esi
add esp, 8
test eax, eax
jne 0x1004a8a9
lea eax, [esp + 0x3c]
push str.MsWinTermSvc
push eax
call esi
add esp, 8
test eax, eax
jne 0x1004a8a9
lea ecx, [esp + 0x3c]
push str.WMIService
push ecx
call esi
add esp, 8
test eax, eax
jne 0x1004a8a9
lea edx, [esp + 0x3c]
push str.DNSService
push edx
call esi
add esp, 8
test eax, eax
jne 0x1004a8a9
lea eax, [esp + 0x3c]
push str.DCOMService
push eax
call esi
add esp, 8
test eax, eax
jne 0x1004a8a9
lea ecx, [esp + 0x3c]
push str.RPCService
push ecx
call esi
add esp, 8
test eax, eax
jne 0x1004a8a9
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1004abf3
jmp 0x1004a80b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
or ecx, 0xffffffff
lea edi, [esp + 0x950]
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x3c]
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]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x950]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x150]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
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, 0x102652f0
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]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x1004aaec
mov esi, str.termsvc.exe
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004a9ae
test cl, cl
je 0x1004a9aa
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004a9ae
add eax, 2
add esi, 2
test cl, cl
jne 0x1004a98a
xor eax, eax
jmp 0x1004a9b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004aafc
mov esi, str.rpcservice.exe
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004a9e8
test cl, cl
je 0x1004a9e4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004a9e8
add eax, 2
add esi, 2
test cl, cl
jne 0x1004a9c4
xor eax, eax
jmp 0x1004a9ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004aafc
mov esi, str.wmiservice.exe
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004aa22
test cl, cl
je 0x1004aa1e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004aa22
add eax, 2
add esi, 2
test cl, cl
jne 0x1004a9fe
xor eax, eax
jmp 0x1004aa27
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004aafc
mov esi, str.dnsservice.exe
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004aa5c
test cl, cl
je 0x1004aa58
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004aa5c
add eax, 2
add esi, 2
test cl, cl
jne 0x1004aa38
xor eax, eax
jmp 0x1004aa61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004aafc
mov esi, str.rpcservice.exe
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004aa96
test cl, cl
je 0x1004aa92
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004aa96
add eax, 2
add esi, 2
test cl, cl
jne 0x1004aa72
xor eax, eax
jmp 0x1004aa9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004aafc
mov esi, str.dcomservice.exe
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004aacc
test cl, cl
je 0x1004aac8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004aacc
add eax, 2
add esi, 2
test cl, cl
jne 0x1004aaa8
xor eax, eax
jmp 0x1004aad1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004aafc
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004a981
push edi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd40
ret
push edi
call ebx
or ecx, 0xffffffff
lea edi, [esp + 0x950]
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
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, 0x1022722c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x150]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
je 0x1004abfa
push 0
lea ecx, [esp + 0x154]
push 0
push ecx
call fcn.10028810
mov edx, dword [esp + 0xd64]
mov eax, dword [esp + 0xd68]
mov ecx, dword [esp + 0xd6c]
push 1
push 1
push edx
push eax
mov eax, dword [0x107ab964]
lea edx, [esp + 0x16c]
push ecx
push edx
push eax
push 0x10227334
call fcn.10029df0
add esp, 0x2c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd40
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd40
ret