Function at 0x40bc60
Capabilities:
Enumerate files on windows
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x40d1e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
nop dword [eax]
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x328]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
push 1
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x344], eax
test eax, eax
je 0x40bceb
cmp eax, 0xea
jne 0x40bfbd
cmp dword [ebp - 0x328], 1
mov ebx, dword [ebp - 0x330]
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x32c], 1
jb 0x40bfa1
nop
mov eax, dword [ebx + 4]
test eax, eax
je 0x40bd22
cmp eax, 0x80000000
jne 0x40bf73
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x40bf73
push 0x404208
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40bf73
push 0x404218
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x334]
lea eax, [ebp - 0xcc]
push eax
call esi
push 0x4041b0
lea eax, [ebp - 0xcc]
push eax
call esi
push dword [ebx]
lea eax, [ebp - 0xcc]
push eax
call esi
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x40d23c
call fcn.0040cb40
add esp, 0xc
test eax, eax
jne 0x40be08
nop dword [eax]
lea eax, [ebp - 0x340]
push eax
push 0
push 0x40d20c
call fcn.0040cac0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40bde8
nop dword [eax]
push esi
call fcn.0040b030
push esi
call fcn.0040c9b0
lea eax, [ebp - 0x340]
push eax
push 0
push 0x40d20c
call fcn.0040cac0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40bdc0
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x40d23c
call fcn.0040cb40
add esp, 0xc
test eax, eax
je 0x40bda0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10000
call fcn.0040c980
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bf6d
lea eax, [ebp - 0xcc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4041a8
push ebx
call esi
lea eax, [ebp - 0x31c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x320], eax
cmp eax, 0xffffffff
je 0x40bed7
test byte [ebp - 0x31c], 0x10
je 0x40beb3
xor esi, esi
nop dword [eax]
push dword [esi + 0x40d130]
lea eax, [ebp - 0x2f0]
push eax
call edi
test eax, eax
je 0x40bead
add esi, 4
cmp esi, 0x88
jb 0x40be60
lea eax, [ebp - 0xcc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4041b0
push ebx
call esi
lea eax, [ebp - 0x2f0]
push eax
push ebx
call esi
push ebx
call fcn.0040c5d0
add esp, 4
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x31c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x320]
jne 0x40be52
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40bf64
cmp dword [0x40d26c], 0
je 0x40bf64
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.0040c980
add esp, 4
mov edi, eax
lea eax, [ebp - 0xcc]
push 0
push 0
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x4041f0
call fcn.0040af30
push edi
call fcn.0040c9b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 0x10
push ebx
call fcn.0040c9b0
add esp, 4
mov ebx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x32c]
add ebx, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x32c], eax
cmp eax, dword [ebp - 0x328]
jbe 0x40bd10
mov ebx, dword [ebp - 0x330]
push ebx
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x344], 0xea
mov ecx, dword [ebp - 0x334]
je 0x40bcb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc9c
mov esp, ebp
pop ebp
ret