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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1300]
mov eax, 0x1400
call fcn.140036730
sub rsp, rax
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
mov r15, r8
mov qword [rsp + 0x28], r8
mov edi, edx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], recv
mov byte [rcx], r12b
mov dword [rsp + 0x20], 1
lea rax, [0x14007f4f0]
mov rdx, r8
cmp qword [r8 + 0x10], r12
cmove rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140008de0
nop
call fcn.14003393c
mov edx, eax
mov dword [rbp + 0x12e4], 0xffffffff
mov dword [rsp + 0x64], eax
lea ecx, [r12 + 1]
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x64], edx
inc rcx
cmp rcx, 0x270
jb 0x1400065e0
mov ebx, 0x270
mov dword [rsp + 0x60], ebx
mov r14, qword [rsp + 0x50]
dec r14d
mov r13, qword [rsp + 0x40]
test edi, edi
jle 0x140006842
mov r12, rdi
mov r15, qword [rsp + 0x58]
cmp r14d, 0xffffffff
jne 0x140006797
cmp ebx, 0x270
jne 0x140006682
lea r8, [rsp + 0x68]
mov r9d, ebx
nop
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140006640
mov ebx, dword [rsp + 0x60]
jmp 0x14000675d
cmp ebx, 0x4e0
jb 0x14000675d
xor r8d, r8d
mov eax, dword [rbp + r8*4 + 0x924]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x928]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0xf58]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x64], ecx
inc r8
cmp r8, 0xe3
jb 0x140006691
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rbp + r8*4 + 0x924]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x928]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x428]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x64], ecx
inc r8
cmp r8, 0x26f
jb 0x1400066e0
mov edx, dword [rbp + 0x12e0]
and edx, 0x80000000
mov eax, dword [rsp + 0x64]
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 [rbp + 0x594]
mov dword [rbp + 0x920], ecx
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov eax, ebx
mov edx, dword [rsp + rax*4 + 0x64]
inc ebx
mov dword [rsp + 0x60], ebx
mov eax, edx
shr eax, 0xb
and eax, dword [rbp + 0x12e4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x1400067dc
lea ebx, [r14 + 1]
lea rcx, [rsp + 0x60]
call fcn.140013b20
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x1400067d4
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x1400067d4
nop
lea rcx, [rsp + 0x60]
call fcn.140013b20
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x1400067c0
shr rcx, 0x20
mov ebx, dword [rsp + 0x60]
lea r8, [rsp + 0x40]
cmp r15, 0x10
cmovae r8, r13
mov eax, ecx
cdq
idiv dword [rsp + 0x50]
movsxd rax, edx
movzx r9d, byte [rax + r8]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140006824
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140006819
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140006833
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.14000b5f0
sub r12, 1
jne 0x140006625
mov r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14000687b
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140006872
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400068ee
mov rcx, r13
call fcn.140035d80
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x1400068b1
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x1400068ac
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400068f4
mov rcx, r8
call fcn.140035d80
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], recv
mov byte [r15], 0
mov rax, rsi
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.140035d60
mov rbx, qword [rsp + 0x1448]
add rsp, 0x1400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140047b50
nop
call fcn.140047b50
int3