Function at 0x140002350
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
mov rax, qword [sym.imp.WS2_32.dll_socket]
mov ebx, ecx
mov word [rsp + 0x56], r8w
mov ecx, 2
mov r8d, 6
mov qword [rsp + 0x1c8], rdx
mov edx, 1
movzx ebx, bx
mov qword [rsp + 0x58], rax
call rax
mov edx, 2
mov r15, qword [sym.imp.WS2_32.dll_htons]
mov ecx, ebx
mov rdi, rax
mov qword [rsp + 0x48], rax
mov word [rsp + 0x70], dx
mov dword [rsp + 0x50], ebx
call r15
cmp rdi, 0xffffffffffffffff
mov dword [rsp + 0x74], 0
mov word [rsp + 0x72], ax
mov dword [rsp + 0x6c], 0
je 0x140002808
lea r9, [rsp + 0x100]
mov r8d, 4
mov edx, pe_overlay
mov dword [rsp + 0x100], 1
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rdx, [rsp + 0x70]
mov r8d, 0x10
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x140002708
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x140002858
mov rsi, qword [sym.__acrt_iob_func]
mov ecx, 1
mov dword [rsp + 0x6c], 1
mov edi, ebx
call rsi
mov r8d, ebx
lea rbx, str._n____Listening_On_Port__d..._n
mov rcx, rax
mov rdx, rbx
call sym.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140002495
mov r8d, edi
mov rdx, rbx
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x140002872
mov dword [rsp + 0x6c], 0x10
mov rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1c8]
call sym.gethost
mov ecx, 1
cmp eax, 0xffffffff
mov ebx, eax
je 0x1400027b0
call rsi
mov r14d, dword [rsp + 0x50]
lea rdi, str._n____Waiting_Connect_On_Port__d..._n
mov rdx, rdi
mov rcx, rax
mov r8d, r14d
call sym.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x14000251b
mov r8d, r14d
mov rdx, rdi
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
lea r13, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x6c]
mov rdx, r13
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1400027d8
movzx ecx, word [rsp + 0x72]
lea r12, [rsp + 0x90]
call r15
movzx r9d, byte [rsp + 0x75]
lea rdx, str._d._d._d._d:_d
mov rcx, r12
movzx eax, ax
movzx r8d, byte [rsp + 0x74]
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x77]
lea rbp, [rsp + 0x100]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x76]
mov dword [rsp + 0x20], eax
call sym.sprintf
mov eax, ebx
movzx r14d, word [rsp + 0x56]
mov rcx, rbp
lea rdx, str._d._d._d._d:_d
shr eax, 0x18
movzx r8d, bl
mov dword [rsp + 0x28], eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x20], eax
movzx eax, bh
mov r9d, eax
call sym.sprintf
mov ecx, 1
call rsi
lea rdx, str._n____Connect_From__s__Now_Connect_to__s_n
mov r9, rbp
mov r8, r12
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x14000261a
lea rdx, str._n____Connect_From__s__Now_Connect_to__s_n
mov r9, rbp
mov r8, r12
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
mov ecx, r14d
call r15
mov dword [rsp + 0x74], ebx
mov r8d, 6
mov edx, 1
mov word [rsp + 0x72], ax
mov ecx, 2
mov rax, qword [rsp + 0x58]
call rax
mov r8d, 0x10
mov rdx, r13
mov rbx, rax
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140002748
movq xmm1, rbx
movq xmm0, rdi
mov ecx, 1
punpcklqdq xmm0, xmm1
lea rbx, str._n____Connect__s_Successed_Start_Transfer..._n
movaps xmmword [rsp + 0x80], xmm0
call rsi
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x1400026c1
mov r8, rbp
mov rdx, rbx
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
lea r9, [rsp + 0x80]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea r8, [sym.in_data_tran]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400024b0
mov ecx, 1
mov rsi, qword [sym.__acrt_iob_func]
call rsi
mov edi, dword [rsp + 0x50]
lea rbx, str._n_____Bind_On_Port__d_Failed_n
mov rcx, rax
mov rdx, rbx
mov r8d, edi
call sym.fprintf
mov rcx, qword [0x14000f048]
test rcx, rcx
jne 0x14000247e
jmp 0x140002495
lea r12, str._n_____Connect__s_Failed..._n
mov ecx, 1
call rsi
mov r8, rbp
mov rdx, r12
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140002796
mov r8, rbp
mov rdx, r12
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400024b0
call rsi
mov r8, qword [rsp + 0x1c8]
lea rdx, str._n_____Reslove_Host__s_Failed..._n
mov rcx, rax
call sym.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
mov rsi, qword [sym.__acrt_iob_func]
call rsi
lea rbx, str._n_____Create_Socket_Failed_n
mov rcx, rax
mov rdx, rbx
call sym.fprintf
mov rcx, qword [0x14000f048]
test rcx, rcx
je 0x140002495
mov rdx, rbx
call sym.fprintf
mov rcx, qword [0x14000f048]
call sym.fflush
jmp 0x140002495
mov ecx, 1
mov rsi, qword [sym.__acrt_iob_func]
call rsi
lea rbx, str._n_____Listen_Failed_n
mov rcx, rax
jmp 0x140002820
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x1400027ee