Function at 0x140014a70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa10
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov dword [rsp + 0x28], r14d
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x1403617c0], eax
jle 0x140014b8f
lea rcx, [0x1403617c0]
call fcn.140260f10
cmp dword [0x1403617c0], 0xffffffff
jne 0x140014b8f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140362bb8], xmm0
mov qword [0x140362bc8], rax
call fcn.140245480
mov dword [rsp + 0x30], eax
call fcn.140245480
mov dword [rsp + 0x34], eax
call fcn.140245480
mov dword [rsp + 0x38], eax
call fcn.140245480
mov dword [rsp + 0x3c], eax
xorps xmm0, xmm0
movdqu xmmword [0x140362bb8], xmm0
mov ecx, r14d
mov qword [0x140362bc8], rcx
lea rbx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov rdx, qword [0x140362bc0]
cmp rdx, rcx
je 0x140014b4e
mov dword [rdx], eax
add qword [0x140362bc0], 4
jmp 0x140014b5f
lea r8, [rsp + 0x24]
lea rcx, [0x140362bb8]
call fcn.140077990
add rbx, 4
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x140014b76
mov rcx, qword [0x140362bc8]
jmp 0x140014b30
lea rcx, [0x1402b02e0]
call fcn.1402612cc
nop
lea rcx, [0x1403617c0]
call fcn.140260ea4
lea rbp, [0x140000000]
mov eax, dword [rsi]
cmp dword [0x140362c50], eax
jle 0x140014c7c
lea rcx, [0x140362c50]
call fcn.140260f10
cmp dword [0x140362c50], 0xffffffff
jne 0x140014c7c
mov dword [0x140362bb4], 0xffffffff
mov edx, 0x1571
mov dword [0x140361834], edx
mov ecx, 1
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 + 0x361834], edx
inc rcx
cmp rcx, 0x270
jb 0x140014be0
mov dword [0x140361830], 0x270
lea r8, [rsp + 0xa10]
lea rdx, [rsp + 0x50]
call fcn.140083de0
mov edx, r14d
mov r8, r14
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + r8*4 + 0x50]
mov dword [rbp + r8*4 + 0x361834], ecx
mov eax, ecx
or eax, edx
mov edx, ecx
shr edx, 0x1f
test r8, r8
cmovne edx, eax
inc r8
cmp r8, 0x270
jb 0x140014c30
test edx, edx
jne 0x140014c66
mov dword [0x140361834], 0x80000000
mov dword [0x140361830], 0x270
lea rcx, [0x140362c50]
call fcn.140260ea4
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x28], 1
mov esi, reloc.WS2_32.dll_recv
lea r15, [0x140361838]
movabs r12, 0x842108421084211
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [0x140361830]
cmp edx, 0x270
jne 0x140014d27
mov rax, r15
mov r9d, edx
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
btr r8d, 0x1f
xor r8d, dword [rax - 4]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [rax + 0x630]
shr r8d, 1
xor edx, r8d
mov dword [rax + 0x9bc], edx
lea rax, [rax + 4]
sub r9, 1
jne 0x140014ce0
mov edx, dword [0x140361830]
jmp 0x140014e09
cmp edx, 0x4e0
jb 0x140014e09
mov r8, r14
mov eax, dword [r8 + rbp + 0x3621f4]
mov edx, eax
xor edx, dword [r8 + rbp + 0x3621f8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + rbp + 0x362828]
shr edx, 1
xor ecx, edx
mov dword [r8 + rbp + 0x361834], ecx
add r8, 4
cmp r8, 0x38c
jb 0x140014d36
mov r8d, 0x38c
mov eax, dword [r8 + rbp + 0x3621f4]
mov edx, eax
xor edx, dword [r8 + rbp + 0x3621f8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + rbp + 0x3614a8]
shr edx, 1
xor ecx, edx
mov dword [r8 + rbp + 0x361834], ecx
add r8, 4
cmp r8, 0x9bc
jb 0x140014d83
mov edx, dword [0x140362bb0]
and edx, 0x80000000
mov eax, dword [0x140361834]
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [0x140361e64]
mov dword [0x1403621f0], ecx
mov edx, r14d
mov dword [0x140361830], edx
mov eax, edx
mov ecx, dword [rbp + rax*4 + 0x361834]
inc edx
mov dword [0x140361830], edx
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140362bb4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ecx, 0xffffdf8c
shl ecx, 0xf
xor rcx, rax
mov r8, rcx
shr r8, 0x12
xor r8, rcx
mov rax, r12
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub r8, rax
movzx r9d, byte [r8 + rbp + 0x2f4f10]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140014e9d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140014e92
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140014eae
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140062770
sub rsi, 1
jne 0x140014cc0
mov rax, rdi
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret