Function at 0x140004950
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], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1348]
mov eax, 0x1420
call fcn.14005d5e0
sub rsp, rax
mov rax, qword [0x14006e030]
xor rax, rsp
mov qword [rbp + 0x1310], rax
mov sil, cl
mov rbx, qword [0x14006f9e8]
mov ecx, 0x1c90
call fcn.140051e08
mov rdi, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov r13d, 1
mov dword [rax + 8], r13d
mov dword [rax + 0xc], r13d
lea rax, [0x140063048]
mov qword [rdi], rax
lea r14, [rdi + 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006878
mov rdx, rax
mov rcx, r14
call fcn.1400031d8
nop
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], rdi
or r12d, 0xffffffff
test r14, r14
je 0x140004a5f
mov rax, qword [r14 + 8]
test rax, rax
je 0x140004a06
cmp dword [rax + 8], 0
jne 0x140004a5f
lock add dword [rdi + 8], r13d
lock add dword [rdi + 0xc], r13d
mov qword [r14], r14
mov rcx, qword [r14 + 8]
mov qword [r14 + 8], rdi
test rcx, rcx
je 0x140004a33
mov eax, r12d
lock xadd dword [rcx + 0xc], eax
add eax, r12d
jne 0x140004a33
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x140004a5f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
add eax, r12d
jne 0x140004a5f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
test sil, sil
jne 0x140004c28
call fcn.140050b4c
or dword [rbp + 0x1304], 0xffffffff
mov dword [rbp - 0x7c], eax
mov rdx, r13
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x7c], eax
add rdx, r13
cmp rdx, r8
jb 0x140004a80
mov dword [rbp - 0x80], r8d
mov rbx, qword [0x14006f9e8]
mov ecx, 0x60
call fcn.140051e08
mov rsi, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], r13d
mov dword [rax + 0xc], r13d
lea rax, [0x140062ec0]
mov qword [rsi], rax
lea r15, [rsi + 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006878
nop
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.140005a88
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140004b01
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rsi
lea rcx, [rbp - 0x80]
call fcn.14000542c
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
imul r8d, edx, 0x3e8
sub r9d, r8d
mov eax, r9d
add rax, 0x1388
imul rdx, rax, 0xf4240
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.1400058f0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
lock add dword [rsi + 8], r13d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
movdqu xmmword [rsp + 0x48], xmm0
lock add dword [rdi + 8], r13d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
call fcn.140004c8c
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140004bc5
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140004bc5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140004bc5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140004bfb
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140004bfb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140004bfb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov eax, r12d
lock xadd dword [rsi + 8], eax
add eax, r12d
jne 0x140004c31
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, r12d
lock xadd dword [rsi + 0xc], eax
add eax, r12d
jne 0x140004c31
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
jmp 0x140004c31
mov rcx, r14
call fcn.140003660
nop
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x140004c5c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
add eax, r12d
jne 0x140004c5c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbp + 0x1310]
xor rcx, rsp
call fcn.140051b80
lea r11, [rsp + 0x1420]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret