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

Disassembly:
mov eax, 0x6c40
call fcn.0043ae00
push ebx
mov ebx, dword [esp + 0x6c4c]
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov dl, byte [0x473aa0]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], dl
mov dword [esp + 0x20], 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x34]
test al, al
jne 0x41571d
mov edi, 0x46eefc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
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 [0x51f6c4]
test eax, eax
je 0x415744
push str.220_CCProxy_6.0_SMTP_Service_Ready_r_n
push ebx
mov ecx, ebp
call fcn.00411160
test eax, eax
jne 0x415759
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c40
ret 8
push str.220_CCProxy_6.0_SMTP_Service_Ready_Unregistered__r_n
push ebx
mov ecx, ebp
call fcn.00411160
test eax, eax
je 0x415a9e
mov eax, dword [0x46ed38]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x14], 9
je 0x415a9e
mov eax, dword [esp + 0x6c54]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
shl esi, 2
mov dword [esp + 0x18], esi
mov ecx, dword [0x51a850]
cmp dword [esi + ecx + 0x18], 2
jne 0x415a9e
lea edx, [esp + 0x3444]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
mov ecx, ebp
call fcn.00415530
test eax, eax
je 0x415a9e
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 2]
cmp eax, 6
ja case.0x4157cd.5
jmp dword [eax*4 + 0x415b28]
test edi, edi
je 0x4157e2
push str.503_command_out_of_order_r_n
jmp 0x41587f
lea edi, [esp + 0x3444]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4848]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c4c]
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 + 0x34]
push ecx
push str.250__s_r_n250_AUTH_LOGIN_r_n
push edx
call fcn.0043afc4
add esp, 0xc
lea eax, [esp + 0x5c4c]
mov ecx, ebp
push eax
push ebx
call fcn.00411160
test eax, eax
je 0x415a9e
mov esi, dword [esp + 0x18]
mov edi, 1
jmp 0x4158a6
cmp edi, 1
je 0x4158c2
push str.503_command_out_of_order_r_n
jmp 0x41587f
test edi, edi
jle 0x41584f
push str.250_OK_r_n
push ebx
mov ecx, ebp
call fcn.00411160
test eax, eax
je 0x415a9e
mov edi, 1
jmp 0x4158a6
test edi, edi
jle 0x41584f
push str.250_OK_r_n
push ebx
mov ecx, ebp
call fcn.00411160
test eax, eax
je 0x415a9e
jmp 0x4158a6
push str.501_command_argument_is_not_acceptable_r_n
push ebx
mov ecx, ebp
call fcn.00411160
test eax, eax
je 0x415a9e
mov eax, dword [0x46ed38]
test eax, eax
jne 0x41578f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c40
ret 8
mov dl, byte [0x473aa0]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2441]
mov byte [esp + 0x2440], dl
mov byte [esp + 0x3844], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x3845]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x439]
mov byte [esp + 0x438], dl
mov byte [esp + 0x143c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x143d]
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.00411160
test eax, eax
je 0x415a9e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2440]
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004123e0
test eax, eax
je 0x415a9e
mov eax, dword [esp + 0x10]
push str.334_UGFzc3dvcmQ6_r_n
push ebx
mov ecx, ebp
mov byte [esp + eax + 0x2446], 0
call fcn.00411160
test eax, eax
je 0x415a9e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3844]
push ecx
push edx
push ebx
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.004123e0
test eax, eax
je 0x415a9e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2440]
lea edx, [esp + 0x438]
push ecx
push edx
mov byte [esp + eax + 0x384a], 0
call fcn.00407ec0
mov dword [esp + 0x18], eax
mov byte [esp + eax + 0x440], 0
lea eax, [esp + 0x384c]
lea ecx, [esp + 0x1444]
push eax
push ecx
call fcn.00407ec0
lea edx, [esp + 0x448]
push 0x46f868
push edx
mov dword [esp + 0x28], eax
mov byte [esp + eax + 0x1454], 0
call fcn.0043ad80
mov edx, eax
add esp, 0x18
test edx, edx
je 0x415a74
mov al, byte [0x473aa0]
mov ecx, 0x400
mov byte [esp + 0x4c48], al
xor eax, eax
lea edi, [esp + 0x4c49]
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 + 0x4c48]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x438]
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 + 0x4c48]
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 esi, dword [esp + 0x18]
mov ecx, dword [0x51a838]
lea edx, [esp + 0x438]
push ecx
push edx
call fcn.0043beb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x415aad
push str.535_authentication_failed_r_n
push ebx
mov ecx, ebp
call fcn.00411160
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c40
ret 8
push 0
push 1
push 2
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x51a850]
inc edi
lea edx, [esp + 0x143c]
push edi
mov dword [esi + ecx + 4], eax
lea ecx, [esp + 0x43c]
push edx
mov edx, dword [esp + 0x6c5c]
push ecx
push eax
push ebx
push edx
mov ecx, ebp
call fcn.00422b60
test eax, eax
je 0x415aff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c40
ret 8
push str.535_ESMTP_authentication_failed_r_n
jmp 0x415a96
push str.221_SMTP_SERVICE_CLOSED_r_n
push ebx
mov ecx, ebp
call fcn.00411160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c40
ret 8