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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400300a8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14d, edx
mov rbx, rcx
mov qword [rbp - 0x48], rcx
xor r12d, r12d
mov ecx, dword [0x140032b18]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov eax, 0x13a8
mov eax, dword [rax + rsi]
cmp dword [0x1400324c0], eax
jg 0x1400163b1
mov r15d, 0x1398
mov eax, dword [r15 + rsi]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
test al, 1
jne 0x1400161c8
or eax, 1
mov dword [r15 + rsi], eax
mov edi, ecx
add rdi, rsi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov ecx, eax
mov dword [rdi + 0x1384], 0xffffffff
mov dword [rdi + 4], eax
mov edx, 1
lea r8, [rdi + 8]
nop word [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [r8], ecx
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x1400161a0
mov dword [rdi], 0x270
mov eax, dword [r15 + rsi]
mov r13d, 0x13a0
test al, 2
jne 0x1400161ee
or eax, 2
mov dword [r15 + rsi], eax
mov dword [rsi + r13], r12d
mov eax, dword [0x1400324b0]
dec eax
mov dword [rsi + r13 + 4], eax
mov eax, 0x20
test r14d, r14d
cmovne eax, r14d
movsxd rdx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.1400142c0
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001621a
mov rcx, qword [rbx]
mov rdx, rcx
jmp 0x14001621d
mov rdx, rbx
mov rdi, rcx
mov r14, qword [rbx + 0x10]
add r14, rdx
cmp rcx, r14
je 0x1400162db
lea r15, [rsi + r13]
mov r12d, reloc.OLEAUT32.dll_SafeArrayGetDim
add r12, rsi
mov r13d, 0x80000000
mov edx, dword [r15 + 4]
mov ecx, dword [r15]
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0x20
mov dword [rbp - 0x30], 0xffffffff
lea eax, [rcx - 0x80000000]
lea esi, [rcx + r13]
cmp ecx, r13d
cmovae esi, eax
lea eax, [rdx - 0x80000000]
lea ecx, [rdx + r13]
cmp edx, r13d
cmovae ecx, eax
sub ecx, esi
cmp ecx, 0xffffffff
jne 0x14001628f
lea rcx, [rbp - 0x40]
call fcn.140014a90
jmp 0x14001629b
lea edx, [rcx + 1]
lea rcx, [rbp - 0x40]
call fcn.140014700
lea ecx, [rsi + rax]
lea eax, [rcx - 0x80000000]
lea r8d, [rcx + r13]
cmp ecx, r13d
cmovae r8d, eax
lea rdx, [0x1400324a0]
cmp qword [0x1400324b8], 0x10
cmovae rdx, qword [0x1400324a0]
movsxd rcx, r8d
movzx edx, byte [rcx + rdx]
mov byte [rdi], dl
inc rdi
cmp rdi, r14
jne 0x140016243
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001df40
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea eax, [rcx + 0x21]
xor byte [rbp + rcx - 0x40], al
inc rcx
cmp rcx, 0x2a
jb 0x140016310
mov byte [rbp - 0x15], 0
mov qword [0x1400324a0], r12
mov qword [0x1400324b0], r12
mov qword [0x1400324b8], 0xf
mov edx, 0x30
lea rcx, [0x1400324a0]
call fcn.1400035d0
mov rdx, rax
mov qword [0x1400324a0], rax
mov qword [0x1400324b0], 0x2a
mov qword [0x1400324b8], 0x2f
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rbp - 0x20]
movsd qword [rax + 0x20], xmm0
movzx eax, word [rbp - 0x18]
mov word [rdx + 0x28], ax
mov byte [rdx + 0x2a], 0
lea rcx, [0x140020a40]
call fcn.14001de14
nop
lea rcx, [0x1400324c0]
call fcn.14001e358
jmp 0x140016159
lea rcx, [0x1400324c0]
call fcn.14001e3b8
cmp dword [0x1400324c0], 0xffffffff
jne 0x140016159
movdqa xmm0, xmmword [0x1400222f0]
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [str.eddloWU__TWUS_998877665544332abbccddeeff_1223____caobbffb]
movdqu xmmword [rbp - 0x30], xmm1
mov dword [rbp - 0x20], 0x3632322f
mov dword [rbp - 0x1c], 0x3f313236
mov dword [rbp - 0x18], 0x1003031
mov rcx, r12
jmp 0x140016310