Function at 0x404500
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get disk information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa64
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0xa60], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404532
sub eax, edi
add eax, 1
push eax
push ecx
lea ecx, [esp + 0x548]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404558
sub eax, ecx
add eax, 1
push eax
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strncpy]
lea edx, [esp + 0x650]
push edx
call esi
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404580
sub eax, ecx
add eax, 1
push eax
lea eax, [esp + 0x85c]
push ebx
push eax
call esi
mov edi, dword [esp + 0x20]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4045a6
sub eax, edx
add eax, 1
push eax
lea ecx, [esp + 0x754]
push edi
push ecx
call esi
add esp, 0xc
cmp byte [esp + 0x648], 0
jne 0x4049a2
lea edx, [esp + 0x960]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
jbe 0x404d07
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x404606
mov esi, dword [sym.imp.MSVCR80.dll_strncpy]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + eax + 0x960]
mov dl, byte [esp + eax + 0x961]
lea eax, [esp + eax + 0x961]
push 0x104
lea eax, [esp + 0x14]
mov byte [esp + 0x14], cl
push eax
lea ecx, [esp + 0x310]
push ecx
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call esi
lea eax, [esp + 0x314]
add esp, 0xc
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x404650
mov dx, word [0x40f698]
mov cl, byte [0x40f69a]
mov word [eax], dx
lea edx, [esp + 0x30]
mov byte [eax + 2], cl
push edx
lea eax, [esp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404978
jmp 0x4046a0
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push 1
lea edx, [esp + 0x60]
push 0x40f69c
push edx
call esi
add esp, 0xc
test eax, eax
je 0x404960
push 2
lea eax, [esp + 0x60]
push 0x40f6a0
push eax
call esi
add esp, 0xc
test eax, eax
je 0x404960
lea ecx, [esp + 0x540]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x4048b7
add dword [0x41252c], 1
push 0x104
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x190]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea edi, [esp + 0x194]
add esp, 0xc
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404722
mov dx, word [0x40f6a4]
lea eax, [esp + 0x5c]
mov word [edi], dx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404740
lea edi, [esp + 0x188]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404755
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call esi
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x2e0]
push 0x40f6f0
push eax
call ebx
add esp, 0x1c
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call esi
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x2a4]
push 0x40f6f0
push ecx
call ebx
mov edx, dword [esp + 0x6c]
shr edx, 0xa
push edx
lea eax, [esp + 0x194]
push 0x40f710
push eax
call ebx
add esp, 0x28
test byte [esp + 0x30], 0x10
je 0x40486c
lea edi, [esp + 0x188]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404830
mov cx, word [0x40f6a8]
lea eax, [esp + 0x188]
mov word [edi], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404850
sub eax, edx
push 0
push eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x190]
push edx
push eax
jmp 0x4048b2
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x18c]
push edx
lea eax, [esp + 0x418]
push str._s__s
push eax
call ebx
lea eax, [esp + 0x420]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404898
push 0
sub eax, edx
mov edx, dword [ebp + 0x1c]
push eax
lea ecx, [esp + 0x418]
push ecx
push edx
call sub.WS2_32.dll_send
test byte [esp + 0x30], 0x10
je 0x404960
push 0x104
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x190]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea edi, [esp + 0x194]
add esp, 0xc
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4048e7
mov dx, word [0x40f6a4]
lea eax, [esp + 0x5c]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404901
lea edi, [esp + 0x188]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404916
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x754]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x860]
push edx
lea eax, [esp + 0x194]
push eax
push ecx
lea edx, [esp + 0x554]
push edx
call fcn.00404500
add esp, 0x18
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4046a0
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
jb 0x404600
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa60]
xor ecx, esp
call fcn.0040e2e2
mov esp, ebp
pop ebp
ret
push 0x104
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0x310]
push eax
call esi
lea eax, [esp + 0x314]
add esp, 0xc
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4049c6
mov cx, word [0x40f698]
mov dl, byte [0x40f69a]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404d07
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push 1
lea eax, [esp + 0x60]
push 0x40f69c
push eax
call esi
add esp, 0xc
test eax, eax
je 0x404cef
push 2
lea ecx, [esp + 0x60]
push 0x40f6a0
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x404cef
lea edx, [esp + 0x540]
push edx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x404c37
add dword [0x41252c], 1
push 0x104
lea ecx, [esp + 0x64c]
push ecx
lea edx, [esp + 0x190]
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea edi, [esp + 0x194]
add esp, 0xc
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404aa0
mov ax, word [0x40f6a4]
mov word [edi], ax
lea eax, [esp + 0x5c]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ac0
lea edi, [esp + 0x188]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404ad5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x2a4]
push 0x40f6f0
push ecx
call ebx
add esp, 0x1c
lea edx, [esp + 0x3c]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
call esi
movzx eax, word [esp + 0x22]
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x2e0]
push 0x40f6f0
push edx
call ebx
mov eax, dword [esp + 0x6c]
shr eax, 0xa
push eax
lea ecx, [esp + 0x194]
push 0x40f710
push ecx
call ebx
add esp, 0x28
test byte [esp + 0x30], 0x10
je 0x404bec
lea edi, [esp + 0x188]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404bb0
mov dx, word [0x40f6a8]
lea eax, [esp + 0x188]
mov word [edi], dx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404bd0
mov ecx, dword [ebp + 0x1c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x190]
push eax
push ecx
jmp 0x404c32
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x418]
push str._s__s
push ecx
call ebx
lea eax, [esp + 0x420]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c18
sub eax, edx
push 0
push eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x418]
push edx
push eax
call sub.WS2_32.dll_send
test byte [esp + 0x30], 0x10
je 0x404cef
push 0x104
lea ecx, [esp + 0x64c]
push ecx
lea edx, [esp + 0x190]
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea edi, [esp + 0x194]
add esp, 0xc
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404c70
mov ax, word [0x40f6a4]
mov word [edi], ax
lea eax, [esp + 0x5c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c90
lea edi, [esp + 0x188]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404ca5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [esp + 0x754]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x860]
push eax
lea ecx, [esp + 0x194]
push ecx
push edx
lea eax, [esp + 0x554]
push eax
call fcn.00404500
add esp, 0x18
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404a14
mov ecx, dword [esp + 0xa6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e2e2
mov esp, ebp
pop ebp
ret