Function at 0x140014680
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 [0x14035d7a0], eax
jle 0x14001479f
lea rcx, [0x14035d7a0]
call fcn.14025e820
cmp dword [0x14035d7a0], 0xffffffff
jne 0x14001479f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14035eb98], xmm0
mov qword [0x14035eba8], rax
call fcn.140242d90
mov dword [rsp + 0x30], eax
call fcn.140242d90
mov dword [rsp + 0x34], eax
call fcn.140242d90
mov dword [rsp + 0x38], eax
call fcn.140242d90
mov dword [rsp + 0x3c], eax
xorps xmm0, xmm0
movdqu xmmword [0x14035eb98], xmm0
mov ecx, r14d
mov qword [0x14035eba8], rcx
lea rbx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov rdx, qword [0x14035eba0]
cmp rdx, rcx
je 0x14001475e
mov dword [rdx], eax
add qword [0x14035eba0], 4
jmp 0x14001476f
lea r8, [rsp + 0x24]
lea rcx, [0x14035eb98]
call fcn.140075390
add rbx, 4
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x140014786
mov rcx, qword [0x14035eba8]
jmp 0x140014740
lea rcx, [0x1402ad620]
call fcn.14025ebdc
nop
lea rcx, [0x14035d7a0]
call fcn.14025e7b4
lea rbp, [0x140000000]
mov eax, dword [rsi]
cmp dword [0x14035ec30], eax
jle 0x14001488c
lea rcx, [0x14035ec30]
call fcn.14025e820
cmp dword [0x14035ec30], 0xffffffff
jne 0x14001488c
mov dword [0x14035eb94], 0xffffffff
mov edx, 0x1571
mov dword [0x14035d814], 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 + 0x35d814], edx
inc rcx
cmp rcx, 0x270
jb 0x1400147f0
mov dword [0x14035d810], 0x270
lea r8, [rsp + 0xa10]
lea rdx, [rsp + 0x50]
call fcn.1400817e0
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 + 0x35d814], 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 0x140014840
test edx, edx
jne 0x140014876
mov dword [0x14035d814], 0x80000000
mov dword [0x14035d810], 0x270
lea rcx, [0x14035ec30]
call fcn.14025e7b4
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, [0x14035d818]
movabs r12, 0x842108421084211
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [0x14035d810]
cmp edx, 0x270
jne 0x140014937
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 0x1400148f0
mov edx, dword [0x14035d810]
jmp 0x140014a19
cmp edx, 0x4e0
jb 0x140014a19
mov r8, r14
mov eax, dword [r8 + rbp + 0x35e1d4]
mov edx, eax
xor edx, dword [r8 + rbp + 0x35e1d8]
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 + 0x35e808]
shr edx, 1
xor ecx, edx
mov dword [r8 + rbp + 0x35d814], ecx
add r8, 4
cmp r8, 0x38c
jb 0x140014946
mov r8d, 0x38c
mov eax, dword [r8 + rbp + 0x35e1d4]
mov edx, eax
xor edx, dword [r8 + rbp + 0x35e1d8]
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 + 0x35d488]
shr edx, 1
xor ecx, edx
mov dword [r8 + rbp + 0x35d814], ecx
add r8, 4
cmp r8, 0x9bc
jb 0x140014993
mov edx, dword [0x14035eb90]
and edx, 0x80000000
mov eax, dword [0x14035d814]
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 [0x14035de44]
mov dword [0x14035e1d0], ecx
mov edx, r14d
mov dword [0x14035d810], edx
mov eax, edx
mov ecx, dword [rbp + rax*4 + 0x35d814]
inc edx
mov dword [0x14035d810], edx
mov eax, ecx
shr eax, 0xb
and eax, dword [0x14035eb94]
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 + 0x2f1ed0]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140014aad
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140014aa2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140014abe
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140060230
sub rsi, 1
jne 0x1400148d0
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