Function at 0x421a60
Capabilities:
Connect socket
Get hostname
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4476b1
mov eax, dword fs:[0]
push eax
sub esp, 0xd1c
mov eax, dword [0x45636c]
xor eax, esp
mov dword [esp + 0xd18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45636c]
xor eax, esp
push eax
lea eax, [esp + 0xd30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea ebp, [esi + 0x12c]
push 0x44bf2a
mov ecx, ebp
mov dword [esp + 0x20], esi
call fcn.00405f80
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x421ae4
push 0x3a
push str.451_Requested_action_aborted:_local_error_who_am_I_mailing
mov ecx, ebp
call fcn.00405f80
jmp 0x422696
cmp dword [esi + 0x4c], ebx
jne 0x421afc
push 0x32
push str.451_Requested_action_aborted:_local_error_who_am_I
mov ecx, ebp
call fcn.00405f80
jmp 0x422696
cmp dword [esi + 0xe8], ebx
jne 0x421b17
push 0x49
push str.451_Requested_action_aborted:_local_error_no_SMTP_name_server_smtp_server
mov ecx, ebp
call fcn.00405f80
jmp 0x422696
lea ecx, [esp + 0x1c]
push ecx
call fcn.00426bd0
mov dword [esp + 0xd38], ebx
cmp byte [esi + 0xf2], 0
je 0x421b6e
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00424cd0
test al, al
jne 0x421c1a
push str.451_Requested_action_aborted:_No_MX_records_ascertained
mov ecx, ebp
call fcn.00426890
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x421b64
push eax
call fcn.0042a99a
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
jmp 0x422682
mov cx, word [esi + 0xf0]
lea edi, [esi + 0xd4]
mov eax, edi
lea esi, [esp + 0xd8]
call fcn.00420950
cmp byte [esp + 0xe8], 0
je 0x421ba7
push 2
push 4
lea ecx, [esp + 0xe4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
jmp 0x421bbc
cmp dword [edi + 0x18], 0x10
jb 0x421bb2
mov edi, dword [edi + 4]
jmp 0x421bb5
add edi, 4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x421bf3
push str.451_Requested_action_aborted:_local_error_in_processing
mov ecx, ebp
call fcn.00426890
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x421bdd
push eax
call fcn.0042a99a
add esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push edx
jmp 0x42268e
mov ecx, dword [eax + 0xc]
movsx eax, word [eax + 0xa]
mov edx, dword [ecx]
add eax, edx
lea ecx, [esp + 0xdc]
call fcn.004286f0
lea eax, [esp + 0xd8]
lea ebx, [esp + 0x1c]
call fcn.00426fe0
xor esi, esi
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [esp + 0x34], ebx
cmp ebx, 0xffffffff
jne 0x421c43
push str.451_Requested_action_aborted:_socket_function_error
mov ecx, ebp
call fcn.00426890
jmp 0x42266c
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x421c6a
push str.451_Requested_action_aborted:_No_MX_records_ascertained
mov ecx, ebp
call fcn.00426890
push 0x44e298
lea ecx, [esp + 0x114]
call fcn.00405ae0
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xd3c], 1
call fcn.004226c0
push 0x3ff
lea edx, [esp + 0x131]
push 0
mov byte [esp + 0xd40], 2
push edx
mov byte [esp + 0x138], 0
call fcn.0042f230
add esp, 0xc
lea esi, [esp + 0xa4]
lea edi, [esp + 0x1c]
call fcn.00426fa0
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
jmp 0x421ce0
lea esi, [esp + 0xb4]
lea edi, [esp + 0x1c]
call fcn.00426fc0
mov esi, eax
test ebp, ebp
je 0x421cfa
cmp ebp, dword [esi]
je 0x421cff
call fcn.0042b7e7
mov edi, dword [esp + 0x3c]
cmp edi, dword [esi + 4]
jae 0x422609
test ebp, ebp
jne 0x421d4b
call fcn.0042b7e7
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x421d21
call fcn.0042b7e7
push 0x10
push edi
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x421d50
mov ecx, dword [esp + 0x18]
push 0x2d
push str.554_Transaction_failed:_server_connect_error.
add ecx, 0x12c
call fcn.00405f80
jmp 0x422579
mov eax, dword [ebp]
jmp 0x421d17
push 0
push 0x3ff
lea ecx, [esp + 0x134]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x421d84
mov ecx, dword [esp + 0x18]
push str.554_Transaction_failed:_server_connect_response_error.
add ecx, 0x12c
call fcn.00426890
jmp 0x422579
push 0x3ff
lea edx, [esp + 0x531]
push 0
push edx
mov byte [esp + 0x538], 0
call fcn.0042f230
add esp, 0xc
push 0x400
lea eax, [esp + 0x530]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x421de0
mov ecx, dword [str.flibbletoot]
mov edx, dword [0x44e308]
mov eax, dword [0x44e30c]
mov dword [esp + 0x52c], ecx
mov dword [esp + 0x530], edx
mov dword [esp + 0x534], eax
push 0x44d2d8
lea ecx, [esp + 0x50]
call fcn.00405ae0
mov ebp, eax
push str.EHLO
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd3c], 3
call fcn.00405ae0
push eax
lea edi, [esp + 0x530]
lea esi, [esp + 0xc0]
mov byte [esp + 0xd3c], 4
call fcn.004138d0
add esp, 4
push ebp
push eax
lea edi, [esp + 0xe0]
mov byte [esp + 0xd40], 5
call fcn.00413980
add esp, 8
mov ecx, esi
call fcn.00405b50
lea ecx, [esp + 0x88]
call fcn.00405b50
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd38], 9
call fcn.00405b50
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x421e7d
lea eax, [esp + 0xdc]
mov ecx, dword [esp + 0xec]
push 0
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x421ead
mov ecx, dword [esp + 0x18]
push str.554_Transaction_failed:_EHLO_send
add ecx, 0x12c
call fcn.00426890
jmp 0x422565
push 0
push 0x3ff
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x421ee1
mov ecx, dword [esp + 0x18]
push str.554_Transaction_failed:_EHLO_receipt
add ecx, 0x12c
call fcn.00426890
jmp 0x422565
mov edi, dword [esp + 0x18]
mov byte [esp + eax + 0x12c], 0
lea eax, [esp + 0x12c]
lea ebp, [edi + 0x12c]
push eax
mov ecx, ebp
call fcn.00426890
push eax
lea ecx, [esp + 0xf8]
call fcn.00405b20
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
mov byte [esp + 0xd3c], 0xa
call fcn.00410da0
mov edx, eax
lea eax, [esp + 0x110]
mov byte [esp + 0xd38], 0xb
call fcn.004287a0
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
cmp byte [esp + 0x17], 0
je 0x42208c
cmp byte [edi + 0xf3], 0
je 0x421f77
push str.554_possibly_trying_to_use_AUTH_without_ESMTP_server__ERROR_
mov ecx, ebp
call fcn.00426890
jmp 0x422559
xor edi, edi
lea eax, [esp + 0xd8]
call fcn.00410d70
mov byte [eax], 0x48
mov edi, 1
lea eax, [esp + 0xd8]
call fcn.00410d70
mov byte [eax], 0x45
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x421fb4
lea eax, [esp + 0xdc]
mov ecx, dword [esp + 0xec]
push 0
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x421fdc
push str.554_Transaction_failed:_HELO_send
mov ecx, ebp
call fcn.00426890
jmp 0x422559
push 0
push 0x3ff
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, ebp
cmp eax, 0xffffffff
jne 0x422008
push str.554_Transaction_failed:_HELO_receipt
call fcn.00426890
jmp 0x422559
mov byte [esp + eax + 0x12c], 0
lea eax, [esp + 0x12c]
push eax
call fcn.00426890
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
call fcn.00410da0
mov edx, eax
lea eax, [esp + 0x110]
mov byte [esp + 0xd38], 0xc
call fcn.004287a0
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
cmp byte [esp + 0x17], 0
je 0x42208c
push 0
push 6
push str.QUIT_r_n
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x422552
push 0
push 0x3ff
lea ecx, [esp + 0x934]
push ecx
jmp 0x42254b
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0xf3], 0
je 0x4220db
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0xf8]
call fcn.00425ad0
test al, al
jne 0x4220d7
lea ecx, [esp + 0xf4]
call fcn.00405b50
lea ecx, [esp + 0xd8]
mov byte [esp + 0xd38], 2
call fcn.00405b50
mov ebx, dword [esp + 0x34]
jmp 0x422579
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
add eax, 0x38
push eax
mov ecx, str.MAIL_FROM:_
lea edi, [esp + 0x8c]
call fcn.00413820
add esp, 4
push eax
mov edi, 0x44e3f8
lea esi, [esp + 0x50]
mov byte [esp + 0xd3c], 0xd
call fcn.004138d0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0xd44], 0xe
call fcn.00405c80
mov ecx, esi
call fcn.00405b50
lea ecx, [esp + 0x88]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x42215d
lea eax, [esp + 0xdc]
mov ecx, dword [esp + 0xec]
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push ecx
push eax
push ebx
call edi
cmp eax, 0xffffffff
jne 0x422187
push str.554_MAIL_FROM_sending_error
mov ecx, ebp
call fcn.00426890
jmp 0x422559
push 0
push 0x3ff
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, ebp
cmp eax, 0xffffffff
jne 0x4221b3
push str.554_MAIL_FROM_receipt_error
call fcn.00426890
jmp 0x422559
mov byte [esp + eax + 0x12c], 0
lea eax, [esp + 0x12c]
push eax
call fcn.00426890
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
call fcn.00410da0
mov edx, eax
lea eax, [esp + 0x110]
mov byte [esp + 0xd38], 0xf
call fcn.004287a0
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
cmp byte [esp + 0x17], 0
je 0x422233
push 0
push 6
push str.QUIT_r_n
push ebx
call edi
cmp eax, 0xffffffff
je 0x422552
push 0
push 0x3ff
lea ecx, [esp + 0x934]
push ecx
jmp 0x42254b
mov edi, dword [esp + 0x18]
add edi, 4
lea esi, [esp + 0xac]
mov dword [esp + 0x48], edi
call fcn.00426fa0
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x80]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.00426fc0
mov esi, eax
lea edi, [esp + 0x40]
call fcn.00426f80
test al, al
je 0x4223c5
lea esi, [esp + 0x40]
call fcn.00426f20
add eax, 0x1c
push eax
mov ecx, str.RCPT_TO:__
lea edi, [esp + 0x8c]
call fcn.00413820
add esp, 4
push eax
mov edi, 0x44e3f8
lea esi, [esp + 0x50]
mov byte [esp + 0xd3c], 0x10
call fcn.004138d0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0xd44], 0x11
call fcn.00405c80
mov ecx, esi
call fcn.00405b50
lea ecx, [esp + 0x88]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x4222fd
lea eax, [esp + 0xdc]
mov ecx, dword [esp + 0xec]
push 0
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x422322
push str.554_Transaction_failed
mov ecx, ebp
call fcn.00426890
jmp 0x422399
push 0
push 0x3ff
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x42234e
lea eax, [esp + 0x12c]
push eax
mov ecx, ebp
call fcn.00426890
jmp 0x422399
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebp
mov byte [esp + eax + 0x130], 0
call fcn.00426890
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
call fcn.00410da0
mov edx, eax
lea eax, [esp + 0x110]
mov byte [esp + 0xd38], 0x12
call fcn.004287a0
mov ecx, esi
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
lea esi, [esp + 0x40]
call fcn.00426f50
mov edi, dword [esp + 0x48]
lea esi, [esp + 0x80]
call fcn.00426fc0
mov esi, eax
lea edi, [esp + 0x40]
call fcn.00426f80
test al, al
jne 0x422276
push 0
push 6
push str.DATA_r_n
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4223eb
push str.554_DATA_send_error
mov ecx, ebp
call fcn.00426890
jmp 0x422559
push 0
push 0x3ff
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, ebp
cmp eax, 0xffffffff
jne 0x422417
push str.554_DATA__server_response_error
call fcn.00426890
jmp 0x422559
mov byte [esp + eax + 0x12c], 0
lea eax, [esp + 0x12c]
push eax
call fcn.00426890
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
call fcn.00410da0
mov ecx, 0x44e4a0
mov edi, eax
mov byte [esp + 0xd38], 0x13
call fcn.00428800
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
cmp byte [esp + 0x17], 0
jne 0x42205f
mov esi, dword [esp + 0x78]
sub esi, dword [esp + 0x74]
jne 0x42247f
call fcn.0042b7e7
mov edx, dword [esp + 0x74]
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push esi
push edx
push ebx
call edi
cmp eax, 0xffffffff
jne 0x4224a6
push str.554_DATA__server_response_error__actual_send_
mov ecx, ebp
call fcn.00426890
jmp 0x422559
push 0
push 0x3ff
lea eax, [esp + 0x134]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4224d2
push str.554_DATA__server_response_error__actual_send_
mov ecx, ebp
call fcn.00426890
jmp 0x422559
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebp
mov byte [esp + eax + 0x130], 0
call fcn.00426890
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
call fcn.00410da0
mov edx, eax
lea eax, [esp + 0x110]
mov byte [esp + 0xd38], 0x14
call fcn.004287a0
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd38], 0xa
call fcn.00405b50
push 0
push 6
push str.QUIT_r_n
push ebx
call edi
cmp byte [esp + 0x17], 0
je 0x4225a5
cmp eax, 0xffffffff
je 0x422552
push 0
push 0x3ff
lea edx, [esp + 0x934]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0xf4]
call fcn.00405b50
lea ecx, [esp + 0xd8]
mov byte [esp + 0xd38], 2
call fcn.00405b50
mov ebp, dword [esp + 0x38]
test ebp, ebp
jne 0x4225a0
call fcn.0042b7e7
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x422596
call fcn.0042b7e7
add dword [esp + 0x3c], 0x14
jmp 0x421ce0
mov eax, dword [ebp]
jmp 0x422588
cmp eax, 0xffffffff
je 0x4225c0
push 0
push 0x3ff
lea edx, [esp + 0x934]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
push 3
xor ecx, ecx
lea esi, [esp + 0x50]
mov edx, ebp
call fcn.00410da0
mov ecx, 0x44e4d4
mov edi, eax
mov byte [esp + 0xd38], 0x15
call fcn.00428800
mov ecx, esi
call fcn.00405b50
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0xf4]
call fcn.00405b50
lea ecx, [esp + 0xd8]
call fcn.00405b50
mov eax, dword [esp + 0x74]
xor esi, esi
cmp eax, esi
je 0x42261c
push eax
call fcn.0042a99a
add esp, 4
mov eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call fcn.0042a99a
add esp, 4
cmp dword [esp + 0x128], 0x10
jb 0x422652
mov ecx, dword [esp + 0x114]
push ecx
call fcn.0042a99a
add esp, 4
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], esi
mov byte [esp + 0x114], 0
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x42267d
push eax
call fcn.0042a99a
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.0042a99a
add esp, 4
mov ecx, dword [esp + 0xd30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd18]
xor ecx, esp
call fcn.0042a9a5
add esp, 0xd28
ret