Function at 0x14015caf0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Connect socket
Generate random numbers via winapi
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov edx, 1
mov dword [rbp - 0x25], reloc.WS2_32.dll_recv
mov ebx, 2
mov r12, r9
mov ecx, ebx
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14015cb3f
jmp 0x14015cf35
mov qword [rsp + 0xd0], rsi
mov ecx, 0x7f000001
mov qword [rsp + 0xd8], rdi
xor edi, edi
mov qword [rsp + 0xe0], r13
mov qword [rbp - 0x11], rdi
mov qword [rsp + 0xa0], r14
mov word [rbp - 0x19], bx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x29]
mov word [rbp - 0x17], di
mov edx, 0xffff
mov dword [rbp - 0x15], eax
lea r8d, [rdi - 5]
mov qword [r12 + 8], 0xffffffffffffffff
mov rcx, r15
mov qword [r12], 0xffffffffffffffff
mov dword [rbp - 0x29], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14015cef2
lea r8d, [rdi + 0x10]
mov rcx, r15
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14015cef2
lea r8, [rbp - 0x25]
mov rcx, r15
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14015cef2
cmp dword [rbp - 0x25], 0x10
jl 0x14015cef2
lea edx, [rdi + 1]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14015cef2
xor r8d, r8d
lea edx, [rdi + 1]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
je 0x14015cef2
lea r8d, [rdi + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14015cef2
lea r8, [rbp - 0x29]
mov dword [rbp - 0x29], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x14015cef2
lea edx, [rdi + 1]
mov qword [rbp - 9], r15
mov r8d, 0x3e8
mov dword [rbp - 1], 0x300
lea rcx, [rbp - 9]
call fcn.140125250
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_accept]
mov qword [r12 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14015cef2
cmp byte [0x1402dbf21], dil
je 0x14015ccdc
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1402dbf18]
mov rax, qword [rbp - 0x21]
cqo
idiv r8
mov qword [rbp - 0x39], rax
mov rax, qword [rbp - 0x21]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14015cd07
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
mov qword [rbp - 0x39], r9
sub r8d, ecx
imul eax, r8d, 0x3e8
mov r14d, 9
mov qword [rbp - 0x31], rax
mov esi, r14d
lea r13, [rbp + 0x17]
lea rdi, [rbp + 7]
nop dword [rax]
mov rax, qword [0x1402d9140]
lea rdx, [rbp - 0x29]
mov ebx, 4
mov r8d, 4
cmp rsi, rbx
cmovb rbx, rsi
xor ecx, ecx
call qword [rax + 0x50]
cmp eax, 4
jne 0x14015cd75
cmp byte [0x1402db619], 0
jne 0x14015ce55
lea r9d, [rax - 2]
mov dword [rbp - 0x29], 0
mov r8d, eax
lea rdx, [rbp - 0x29]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x14015cef2
mov eax, dword [rbp - 0x29]
test rbx, rbx
je 0x14015cda1
sub rsi, rbx
nop dword [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14015cd90
mov dword [rbp - 0x29], eax
test rsi, rsi
jne 0x14015cd20
mov rcx, qword [r12]
lea rdx, [rbp + 7]
xor r9d, r9d
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_send]
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x31]
nop word [rax + rax]
mov rax, qword [r12 + 8]
lea rcx, [rbp - 9]
mov edx, 1
mov qword [rbp - 9], rax
mov r8d, 0x3e8
mov dword [rbp - 1], 0x300
call fcn.140125250
mov rcx, qword [r12 + 8]
xor r9d, r9d
mov r8d, r14d
mov rdx, r13
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14015cf4f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [0x1402dbf21], 0
mov ebx, eax
je 0x14015ce75
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x21]
cqo
idiv qword [0x1402dbf18]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402dbf18]
mov rcx, rax
jmp 0x14015ce9c
imul eax, dword [0x1402db758], 0x41c64e6d
add eax, 0x3039
mov dword [0x1402db758], eax
ror eax, 0x10
mov dword [rbp - 0x29], eax
jmp 0x14015cd80
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
sub r8d, ecx
imul ecx, r8d, 0x3e8
sub r9, rdi
movabs rax, 0x20c49ba5e353f7
cmp r9, rax
jge 0x14015cef2
movabs rax, 0xffdf3b645a1cac09
cmp r9, rax
jle 0x14015cee6
sub ecx, esi
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rcx, edx
add rcx, rax
cmp rcx, 0xea60
jg 0x14015cef2
cmp ebx, 0x2733
je 0x14015cdd0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r12 + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r13, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14016b380
add rsp, 0xa8
pop r15
pop r12
pop rbx
pop rbp
ret
sub r14, rcx
je 0x14015cf5c
add r13, rcx
jmp 0x14015cdd0
mov rax, qword [rbp + 7]
cmp rax, qword [rbp + 0x17]
jne 0x14015cef2
movzx eax, byte [rbp + 0xf]
cmp al, byte [rbp + 0x1f]
jne 0x14015cef2
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14015cf15