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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x12d0]
mov eax, 0x13d0
call fcn.14003a470
sub rsp, rax
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rbp + 0x12c0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x24], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov r14d, 1
mov dword [rsp + 0x24], r14d
call fcn.140014124
mov edx, eax
or dword [rbp + 0x12b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, r14d
mov r12d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x34], edx
add rcx, r14
cmp rcx, r12
jb 0x140002bbe
mov edi, r12d
mov dword [rsp + 0x30], r12d
mov esi, 8
mov r13d, 0x7fffffff
mov r10d, 0x9908b0df
cmp edi, r12d
jne 0x140002c3d
lea r8, [rsp + 0x38]
mov r9, r12
mov edx, dword [r8 - 4]
xor edx, dword [r8]
and edx, r13d
xor edx, dword [r8 - 4]
mov eax, edx
and al, r14b
neg al
sbb ecx, ecx
and ecx, r10d
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, r14
jne 0x140002bff
mov edi, dword [rsp + 0x30]
jmp 0x140002d11
cmp edi, 0x4e0
jb 0x140002d11
xor r8d, r8d
mov edx, dword [rbp + r8*4 + 0x8f4]
xor edx, dword [rbp + r8*4 + 0x8f8]
and edx, r13d
xor edx, dword [rbp + r8*4 + 0x8f4]
mov eax, edx
and al, r14b
neg al
sbb ecx, ecx
and ecx, r10d
xor ecx, dword [rbp + r8*4 + 0xf28]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x34], ecx
add r8, r14
cmp r8, 0xe3
jb 0x140002c4c
mov r8d, 0xe3
mov edx, dword [rbp + r8*4 + 0x8f4]
xor edx, dword [rbp + r8*4 + 0x8f8]
and edx, r13d
xor edx, dword [rbp + r8*4 + 0x8f4]
mov eax, edx
and al, r14b
neg al
sbb ecx, ecx
and ecx, r10d
xor ecx, dword [rbp + r8*4 - 0x458]
shr edx, 1
xor ecx, edx
mov dword [rsp + r8*4 + 0x34], ecx
add r8, r14
cmp r8, 0x26f
jb 0x140002c96
mov edx, dword [rbp + 0x12b0]
and edx, 0x80000000
mov eax, dword [rsp + 0x34]
and eax, r13d
or edx, eax
mov eax, edx
and al, r14b
neg al
sbb ecx, ecx
and ecx, r10d
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x564]
mov dword [rbp + 0x8f0], ecx
xor edi, edi
mov dword [rsp + 0x30], edi
mov eax, edi
mov ecx, dword [rsp + rax*4 + 0x34]
add edi, r14d
mov dword [rsp + 0x30], edi
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x12b4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov r8d, ecx
shr r8d, 0x12
xor r8d, ecx
mov eax, 0x38e38e39
mul r8d
shr edx, 3
mov al, dl
shl al, 3
add dl, al
shl dl, 2
sub r8b, dl
mov eax, 0x37
lea r9d, [rax - 7]
cmp r8b, 0xa
cmovge r9d, eax
add r9b, r8b
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140002da3
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002d98
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002db9
mov r8b, byte [rsp + 0x20]
mov rdx, r14
mov rcx, rbx
call fcn.140006364
mov r10d, 0x9908b0df
sub rsi, r14
jne 0x140002bf2
mov rax, rbx
mov rcx, qword [rbp + 0x12c0]
xor rcx, rsp
call fcn.140039d40
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret