Function at 0x420770
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, 0x6c3c
call fcn.00457d20
push ebx
mov ebx, dword [esp + 0x6c48]
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov dl, byte [0x493b50]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x431]
mov byte [esp + 0x430], dl
mov dword [esp + 0x1c], 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x430]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x430]
test al, al
jne 0x42080c
mov edi, 0x48e40c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x494050]
mov cl, byte [0x493b50]
test eax, eax
je 0x420864
mov byte [esp + 0x30], cl
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.6.4.1
lea edx, [esp + 0x34]
push str.220_CCProxy__s_SMTP_Service_Ready_r_n
push edx
stosb byte es:[edi], al
call fcn.00457c43
add esp, 0xc
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
push ebx
call fcn.0041c1a0
test eax, eax
jne 0x4208a4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c3c
ret 8
mov byte [esp + 0x30], cl
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.6.4.1
lea edx, [esp + 0x34]
push str.220_CCProxy__s_SMTP_Service_Ready_Unregistered__r_n
push edx
stosb byte es:[edi], al
call fcn.00457c43
add esp, 0xc
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
push ebx
call fcn.0041c1a0
test eax, eax
je 0x420bb7
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], 0x1000
mov dword [esp + 0x18], 9
je 0x420bb7
mov esi, dword [esp + 0x6c50]
cmp dword [esi + 0x1c], 2
jne 0x420bb7
lea ecx, [esp + 0x834]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push ebx
mov ecx, ebp
call fcn.004200b0
test eax, eax
je 0x420bb7
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
cmp eax, 6
ja case.0x420900.5
jmp dword [eax*4 + 0x420c50]
test edi, edi
je 0x420915
push str.503_command_out_of_order_r_n
jmp 0x420999
lea edi, [esp + 0x834]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c48]
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, [esp + 0x430]
push ecx
push str.250__s_r_n250_AUTH_LOGIN_r_n
push edx
call fcn.00457c43
add esp, 0xc
lea eax, [esp + 0x5c48]
push eax
jmp 0x420979
cmp edi, 1
je 0x4209da
push str.503_command_out_of_order_r_n
jmp 0x420999
test edi, edi
jle 0x420969
push str.250_OK_r_n
push ebx
mov ecx, ebp
call fcn.0041c1a0
test eax, eax
je 0x420bb7
mov edi, 1
jmp 0x4209c0
test edi, edi
jle 0x420969
push str.250_OK_r_n
push ebx
mov ecx, ebp
call fcn.0041c1a0
test eax, eax
je 0x420bb7
jmp 0x4209c0
push str.501_command_argument_is_not_acceptable_r_n
push ebx
mov ecx, ebp
call fcn.0041c1a0
test eax, eax
je 0x420bb7
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4208c1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c3c
ret 8
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2c3d]
mov byte [esp + 0x2c3c], dl
mov byte [esp + 0xc34], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0xc35]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x3c41]
mov byte [esp + 0x3c40], dl
mov byte [esp + 0x1c38], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x1c39]
rep stosd dword es:[edi], eax
mov edi, 0x1000
push str.334_VXNlcm5hbWU6_r_n
push ebx
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.0041c1a0
test eax, eax
je 0x420bb7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c3c]
push ecx
push edx
push esi
push ebx
mov ecx, ebp
call fcn.0041ca00
test eax, eax
je 0x420bb7
mov eax, dword [esp + 0x10]
push str.334_UGFzc3dvcmQ6_r_n
push ebx
mov ecx, ebp
mov byte [esp + eax + 0x2c42], 0
call fcn.0041c1a0
test eax, eax
je 0x420bb7
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc34]
push ecx
push edx
push esi
push ebx
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.0041ca00
test eax, eax
je 0x420bb7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c3c]
lea edx, [esp + 0x3c40]
push ecx
push edx
mov byte [esp + eax + 0xc3a], 0
call fcn.00412c30
mov dword [esp + 0x18], eax
mov byte [esp + eax + 0x3c48], 0
lea eax, [esp + 0xc3c]
lea ecx, [esp + 0x1c40]
push eax
push ecx
call fcn.00412c30
lea edx, [esp + 0x3c50]
push 0x48eb4c
push edx
mov dword [esp + 0x28], eax
mov byte [esp + eax + 0x1c50], 0
call fcn.00457ca0
mov edx, eax
add esp, 0x18
test edx, edx
je 0x420b8a
mov al, byte [0x493b50]
mov ecx, 0x400
mov byte [esp + 0x4c44], al
xor eax, eax
lea edi, [esp + 0x4c45]
rep stosd dword es:[edi], eax
lea edi, [edx + 2]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4c44]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x3c40]
mov edx, dword [ecx + 0x240b4]
push edx
push eax
call fcn.004584c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x420bc6
push str.535_authentication_failed_r_n
push ebx
mov ecx, ebp
call fcn.0041c1a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c3c
ret 8
push 0
push 1
push 2
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x6c50]
mov edi, eax
push edi
push ecx
mov ecx, dword [ebp + 4]
add ecx, 0x27600
call fcn.00442570
mov ecx, dword [esp + 0x6c50]
inc esi
lea edx, [esp + 0x1c38]
push esi
lea eax, [esp + 0x3c44]
push edx
push eax
push edi
push ebx
push ecx
mov ecx, ebp
call fcn.00429820
test eax, eax
je 0x420c27
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c3c
ret 8
push str.535_ESMTP_authentication_failed_r_n
jmp 0x420baf
push str.221_SMTP_SERVICE_CLOSED_r_n
push ebx
mov ecx, ebp
call fcn.0041c1a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c3c
ret 8