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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x180169ee8]
mov rax, qword gs:[0x58]
mov ecx, 0x3c
mov rax, qword [rax + rdx*8]
mov ebp, 0xffffffff
mov esi, 1
lea r13, [0x1801666d0]
mov eax, dword [rcx + rax]
cmp dword [0x180167a58], eax
jg 0x1800335dc
mov eax, 0x40
mov rdi, 0xffffffffffffffff
lea rax, [rax - 1]
shr rdi, 1
cmp rdi, rbp
ja 0x180033303
mov r12, qword [rbx + 8]
mov r15, qword [rbx]
cmp r15, r12
je 0x180033582
lea r14, [r15 + 4]
cmp r14, r12
je 0x180033582
lea rbx, [rax - 1]
mov r8d, dword [0x1801666d0]
nop word [rax + rax]
lea rbp, [rsi + 1]
nop dword [rax]
nop dword [rax + rax]
xor r11d, r11d
xor r10d, r10d
test rsi, rsi
je 0x180033523
nop
mov rcx, rbx
shl r11, cl
add r11, r11
nop dword [rax]
cmp r8d, 0x270
jne 0x1800333d5
lea r8, [0x1801666d8]
mov r9d, 0x270
nop word [rax + rax]
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 0x180033390
mov r8d, dword [0x1801666d0]
jmp 0x1800334be
cmp r8d, 0x4e0
jb 0x1800334be
mov r8d, 0x9c4
nop dword [rax + rax]
mov edx, dword [r8 + r13]
xor edx, dword [r8 + r13 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r13]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + r13 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r8 + r13 - 0x9c0], ecx
add r8, 4
cmp r8, 0xd50
jb 0x1800333f0
mov r8d, 0xd50
nop word [rax + rax]
mov edx, dword [r8 + r13]
xor edx, dword [r8 + r13 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r13]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + r13 - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r8 + r13 - 0x9c0], ecx
add r8, 4
cmp r8, 0x1380
jb 0x180033440
mov edx, dword [0x180167a50]
xor edx, dword [0x1801666d4]
btr edx, 0x1f
xor edx, dword [0x180167a50]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [0x180166d04]
mov dword [0x180167090], ecx
xor r8d, r8d
mov dword [0x1801666d0], r8d
mov eax, r8d
mov ecx, dword [r13 + rax*4 + 4]
lea r8d, [rax + 1]
mov dword [0x1801666d0], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [0x180167a54]
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 rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, rdi
ja 0x180033370
or r11, rax
mov rcx, rbx
shl r10, cl
add r10, r10
or r10, rdi
cmp r10, rsi
jb 0x180033360
xor edx, edx
mov rax, r10
div rbp
mov rcx, rax
xor edx, edx
mov rax, r11
div rbp
cmp rax, rcx
jb 0x18003354c
xor edx, edx
mov rax, r10
div rbp
cmp rdx, rsi
jne 0x180033350
xor edx, edx
mov rax, r11
div rbp
cmp rdx, rsi
je 0x180033572
movss xmm0, dword [r14]
mov eax, dword [r15 + rdx*4]
mov dword [r14], eax
movss dword [r15 + rdx*4], xmm0
mov r8d, dword [0x1801666d0]
mov rsi, rbp
add r14, 4
cmp r14, r12
jne 0x180033340
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [r13 + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x1800335a0
mov dword [0x1801666d0], 0x270
lea rcx, [0x180167a58]
call fcn.1800b5d94
jmp 0x1800332f7
lea rcx, [0x180167a58]
call fcn.1800b5e00
cmp dword [0x180167a58], 0xffffffff
jne 0x1800332f7
call fcn.1800b44f4
mov dword [0x180167a54], ebp
mov dword [0x1801666d4], eax
mov r8, rsi
jmp 0x1800335a0