Function at 0x40cc10
Capabilities:
Contain obfuscated stackstrings
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57410b
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5e6044]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x154], ecx
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov edi, 2
push 0x2328
mov dword [ebp - 4], 0
mov byte [ebp - 0x14d], 1
mov word [ebp - 0x14c], di
mov dword [ebp - 0x148], 0
call esi
push 0x2328
mov word [ebp - 0x14a], ax
mov word [ebp - 0x13c], di
mov dword [ebp - 0x138], 0xffffffff
call esi
push 0
push edi
push edi
mov word [ebp - 0x13a], ax
mov dword [ebp - 0x160], 0x10
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
lea eax, [ebp - 0x14d]
push 1
push eax
push 0x20
push 0xffff
push edi
mov dword [ebp - 0x164], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0054f5e0
add esp, 0xc
mov dword [ebp - 0x20], 0x30305058
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x1c], 0x49463130
mov word [ebp - 0x18], 0x444e
mov dword [ebp - 0x2c], 0x30305058
push dword [ebp - 0x160]
mov dword [ebp - 0x28], 0x4f463130
push eax
push 0
push 0xa
lea eax, [ebp - 0x20]
mov word [ebp - 0x24], 0x4e55
push eax
push edi
mov byte [ebp - 0x22], 0x44
call dword [sym.imp.WS2_32.dll_sendto]
nop
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0054f5e0
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x40cdd1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [0x5eb084], 0
push eax
je 0x40cd95
push 0x58b590
jmp 0x40cd9a
push str.recv_data_error_socket_err:_d
push 0x5eb0a8
call fcn.00402630
mov ecx, dword [0x5eb07c]
add esp, 0xc
push dword [0x5eb0a8]
push 0x451
call fcn.004240bf
push 0
push 0x40
push dword [0x5eb0a8]
call fcn.004242a8
jmp 0x40cd40
cmp eax, 0x22
jne 0x40cd40
xor eax, eax
mov dword [ebp - 0x158], eax
call fcn.004233b1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40cdfe
push 0x80004005
call fcn.00402180
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x15c], esi
push 0xb
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00566aaa
add esp, 0xc
test eax, eax
je 0x40ce52
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cd40
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40cd40
push 0x15
call fcn.00422419
mov edi, eax
add esp, 4
test edi, edi
je 0x40ce75
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi + 0x14], 0
jmp 0x40ce77
xor edi, edi
movzx eax, byte [ebp - 0x121]
mov byte [edi + 8], al
movzx eax, byte [ebp - 0x120]
mov byte [edi + 9], al
movzx eax, byte [ebp - 0x11f]
mov byte [edi + 0xa], al
movzx eax, byte [ebp - 0x11e]
mov byte [edi + 0xb], al
movzx eax, byte [ebp - 0x11d]
mov byte [edi + 0xc], al
movzx eax, byte [ebp - 0x11c]
mov byte [edi + 0xd], al
movzx eax, byte [ebp - 0x119]
mov byte [edi], al
movzx eax, byte [ebp - 0x118]
mov byte [edi + 1], al
movzx eax, byte [ebp - 0x117]
mov byte [edi + 2], al
movzx eax, byte [ebp - 0x116]
mov byte [edi + 3], al
movzx eax, byte [ebp - 0x115]
mov byte [edi + 4], al
movzx eax, byte [ebp - 0x114]
mov byte [edi + 5], al
movzx eax, byte [ebp - 0x113]
mov byte [edi + 6], al
movzx eax, byte [ebp - 0x112]
mov byte [edi + 7], al
movzx eax, byte [ebp - 0x111]
mov byte [edi + 0xe], al
movzx eax, byte [ebp - 0x110]
mov byte [edi + 0xf], al
movzx eax, byte [ebp - 0x10f]
mov byte [edi + 0x10], al
movzx eax, byte [ebp - 0x10e]
mov byte [edi + 0x11], al
movzx eax, byte [ebp - 0x10d]
mov byte [edi + 0x12], al
movzx eax, byte [ebp - 0x10c]
mov byte [edi + 0x13], al
movzx eax, byte [ebp - 0x10b]
mov byte [edi + 0x14], al
movzx eax, byte [edi + 0xd]
push eax
movzx eax, byte [edi + 0xc]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
movzx eax, byte [edi + 9]
push eax
movzx eax, byte [edi + 8]
push eax
lea eax, [ebp - 0x15c]
push 0x58b5f8
push eax
call fcn.00402630
mov eax, dword [ebp - 0x154]
add esp, 0x20
xor esi, esi
push esi
push esi
push 0x18b
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x40d016
nop dword [eax]
mov eax, dword [ebp - 0x154]
push 0
push esi
push 0x199
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [eax + 8]
cmp ecx, dword [edi + 8]
jne 0x40cfd8
movzx eax, word [eax + 0xc]
cmp ax, word [edi + 0xc]
jne 0x40cfd8
mov dword [ebp - 0x158], 1
jmp 0x40cfe4
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x154]
inc esi
push 0
push 0
push 0x18b
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jl 0x40cfa0
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x40d016
mov esi, dword [ebp - 0x15c]
jmp 0x40d064
mov esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x154]
push esi
push 0
push 0x180
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [ebp - 0x154]
push eax
push 0x19a
push dword [edi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x186
push dword [edi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
mov edi, dword [ebp - 0x164]
test eax, eax
jg 0x40cd40
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40cd40