Function at 0x401d10
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov dword [esp], 0x3e8
call sub.msvcrt.dll_malloc
mov dword [esp], 0x202
mov ebx, eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 4], eax
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
inc eax
je 0x402012
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
test eax, eax
mov esi, eax
je 0x402040
cld
xor eax, eax
mov ecx, 4
lea edi, [ebp - 0x1b8]
rep stosd dword es:[edi], eax
movsx ecx, word [esi + 0xa]
lea edi, [ebp - 0x1b4]
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov dword [esp + 8], ecx
mov dword [esp], edi
mov edi, 0x10
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
movzx edx, word [esi + 8]
mov esi, 1
mov word [ebp - 0x1b8], dx
mov dword [esp], 0x19
call sub.WS2_32.DLL_htons
mov word [ebp - 0x1b6], ax
sub esp, 4
xor eax, eax
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
lea ecx, [ebp - 0x1b8]
mov esi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.WS2_32.DLL_connect
sub esp, 0xc
inc eax
je 0x402030
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [ebx], 0x6f6c6568
mov dword [ebx + 4], 0x2e656d20
mov dword [ebx + 8], 0x656d6f73
mov dword [ebx + 0xc], 0x616c6170
mov dword [ebx + 0x10], 0x632e6563
mov dword [ebx + 0x14], 0xa6d6f
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [ebx], 0x4c49414d
mov dword [ebx + 4], 0x4f524620
mov dword [ebx + 8], 0x3c3a4d
mov edi, dword [ebp + 0x10]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strncat
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 0xa3e
mov byte [eax + ebx + 2], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [ebx], 0x54504352
mov dword [ebx + 4], 0x3a4f5420
mov word [ebx + 8], 0x3c
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], edi
xor edi, edi
call sub.msvcrt.dll_strncat
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 0xa3e
mov byte [eax + ebx + 2], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [ebx], 0x41544144
mov word [ebx + 4], 0xa
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov ecx, dword [ebp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], ecx
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [ebx], 0x74697571
mov word [ebx + 4], 0xa
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x1f4
call sub.msvcrt.dll__sleep
mov dword [esp], esi
call sub.WS2_32.DLL_closesocket
sub esp, 4
call sub.WS2_32.DLL_WSACleanup
mov dword [esp], ebx
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.WS2_32.DLL_WSACleanup
mov dword [esp], ebx
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.connect
call sub.msvcrt.dll_perror
jmp 0x402017
mov dword [esp], str.gethostbyname
call sub.msvcrt.dll_perror
jmp 0x402017