Function at 0x407ecb
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
mov eax, 0x414729
call fcn.004097a4
sub esp, 0x698
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x6a0]
push eax
mov edi, ecx
push 0x202
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407f07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4082ac
lea eax, [edi + 0xc]
push eax
call fcn.0040453f
mov esi, dword [ebp + 8]
pop ecx
mov ecx, esi
call fcn.00407bba
cmp eax, 0xffffffff
je 0x407f2a
mov eax, 0x80
jmp 0x4082ac
push dword [esi + 0x20]
call fcn.0040a576
xor ebx, ebx
cmp dword [edi + 4], ebx
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jne 0x407fa2
push dword [esi + 8]
mov ecx, edi
push dword [esi + 4]
call fcn.00407ce7
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x4082ac
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00407d5a
push 0x100
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40808e
lea eax, [ebp - 0x510]
push 0x418464
push eax
call fcn.00408af0
pop ecx
pop ecx
jmp 0x40808e
push dword [esi + 0xc]
lea eax, [ebp - 0x410]
push str.MAIL_FROM:__s__r_n
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040996a
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00407d5a
mov byte [ebp - 4], 3
cmp ebx, dword [ebp - 0x1c]
jge 0x408120
push dword [esi + ebx*4 + 0x34]
lea eax, [ebp - 0x410]
push str.RCPT_TO:__s__r_n
push eax
call fcn.0040996a
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00407d5a
inc ebx
jmp 0x407fde
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x410]
push str.EHLO__s_r_n
push eax
call fcn.0040996a
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00407d5a
jmp 0x407fa2
and dword [ebp - 4], 0
push str.DATA_r_n
mov ecx, edi
call fcn.004077ab
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00407d5a
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.00407bee
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
mov ebx, str.______NextPart_001_01C19920.83032BC0
push ebx
mov eax, str.______NextPart_000_01C19920.83032BC0
push eax
push eax
lea eax, [ebp - 0x410]
push str.Content_Type:_multipart_mixed__r_n_tboundary__s__r_n_r_nThis_message_is_in_MIME_format._r_n_r_n___s_r_nContent_Type:_multipart_alternative__r_n_tboundary__s_
push eax
call fcn.0040996a
add esp, 0x14
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
push 5
mov ecx, esi
call fcn.004076a5
test eax, eax
je 0x4081ac
push str.text_plain
mov ecx, edi
call fcn.00407859
push dword [esi + 0x18]
mov ecx, edi
call fcn.004077ab
push 6
mov ecx, esi
call fcn.004076a5
test eax, eax
je 0x4081d6
push str.text_html
mov ecx, edi
call fcn.00407859
push 6
mov ecx, esi
call fcn.00407b98
push eax
mov ecx, edi
call fcn.004077ab
push ebx
mov ebx, str._r_n_r_n___s___r_n_r_n
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.0040996a
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
push 8
mov ecx, esi
call fcn.004076a5
test eax, eax
je 0x408222
push 9
mov ecx, esi
call fcn.00407b98
push eax
push 8
mov ecx, esi
call fcn.00407b98
push eax
mov ecx, edi
call fcn.00407894
push 0xa
mov ecx, esi
call fcn.004076a5
test eax, eax
je 0x40824a
push 0xb
mov ecx, esi
call fcn.00407b98
push eax
push 0xa
mov ecx, esi
call fcn.00407b98
push eax
mov ecx, edi
call fcn.00407894
push str.______NextPart_000_01C19920.83032BC0
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.0040996a
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.004077ab
push str._r_n._r_n
mov ecx, edi
call fcn.004077ab
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00407d5a
jmp 0x408298
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00407d04
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8