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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x1548]
mov eax, 0x1640
call fcn.140017020
sub rsp, rax
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rbp + 0x1530], rax
call fcn.140015974
or dword [rbp + 0x1414], 0xffffffff
mov dword [rbp + 0x94], eax
mov r14d, 1
mov edx, r14d
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x94], eax
add rdx, r14
cmp rdx, r8
jb 0x1400099d6
mov dword [rbp + 0x90], r8d
mov eax, 2
mov dword [rbp - 0x68], eax
mov dword [rbp - 0x64], 0xf
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x6c], 0xa
mov edx, 0x8f4650b3
mov rcx, qword [0x140056d70]
call fcn.140008b74
mov r8d, 0x104
lea rdx, [rbp + 0x1420]
xor ecx, ecx
call rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
and qword [rsp + 0x68], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov cl, r14b
call fcn.14001542c
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x80]
call fcn.14000f23c
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x80]
call fcn.14000dbf4
mov qword [rsp + 0x78], rax
lea r8, [0x14004c53b]
lea rcx, [rsp + 0x68]
call fcn.14000e874
nop
lea rcx, [rbp + 0x1420]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140009a9d
lea rdi, [rbp + 0x1420]
add rdi, rax
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140009b67
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x60]
call fcn.140018b20
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8, rdi
lea rdx, [rbp + 0x1420]
lea rcx, [rbp - 0x60]
call fcn.14001049c
nop
lea rcx, [rbp - 0x60]
call fcn.140010bb4
mov bl, al
lea rcx, [rbp - 0x60]
call fcn.1400102d0
test bl, bl
je 0x140009b67
call fcn.140008e98
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009c27
or eax, 0xffffffff
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x140009c27
mov rbx, qword [rsp + 0x68]
jmp 0x140009b5d
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
and qword [rax], 0
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
test rbx, rbx
jne 0x140009b47
jmp 0x140009c27
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x70]
call fcn.14000dcf4
mov ebx, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x68]
call fcn.14000dcf4
mov r8d, ebx
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140006f88
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140009ba7
mov rax, qword [rax]
mov rdx, rax
call fcn.140010028
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140009bee
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009be8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009c77
call fcn.140016590
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009c27
or eax, 0xffffffff
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x140009c27
mov rbx, qword [rsp + 0x68]
jmp 0x140009c22
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
and qword [rax], 0
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
test rbx, rbx
jne 0x140009c0c
and qword [rsp + 0x68], 0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140009c4d
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140009c4d
mov r8, qword [rax]
mov edx, r14d
mov rcx, rax
call qword [r8]
xor eax, eax
mov rcx, qword [rbp + 0x1530]
xor rcx, rsp
call fcn.140016570
lea r11, [rsp + 0x1640]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400213a0
nop
int3