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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1460]
mov eax, 0x1560
call fcn.1801a54b0
sub rsp, rax
movaps xmmword [rsp + 0x1550], xmm6
movaps xmmword [rsp + 0x1540], xmm7
movaps xmmword [rsp + 0x1530], xmm8
movaps xmmword [rsp + 0x1520], xmm9
movaps xmmword [rsp + 0x1510], xmm10
movaps xmmword [rsp + 0x1500], xmm11
movaps xmmword [rsp + 0x14f0], xmm12
movaps xmmword [rsp + 0x14e0], xmm13
movaps xmmword [rsp + 0x14d0], xmm14
mov rax, qword [0x180248300]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov rax, qword [0x1802545f0]
inc dword [rcx + rax]
call fcn.18013d600
movsxd rbx, eax
test eax, eax
je 0x18013faf6
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
mov qword [rbp + 8], rax
movsd xmm11, qword [0x18021ada0]
comisd xmm11, xmmword [0x180254220]
jbe 0x18013ef8e
mov rax, qword [0x1802545d8]
mov rcx, qword [rsi + rax]
mov eax, dword [rcx + 0x58]
sub eax, dword [rcx + 0x84]
movsxd rcx, eax
mov qword [rbp - 0x10], rcx
je 0x18013ef8e
movabs rax, 0x1fffffffffffffff
cmp rcx, rax
ja 0x18013fb58
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.180140100
call fcn.18013cba0
mov qword [rsp + 0x58], rax
movss xmm2, dword [0x18021aabc]
lea rdx, [rbp - 8]
mov rcx, rsi
call fcn.18013d850
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov rcx, rsi
call fcn.1800a5dd0
cmp dword [rax + 8], r13d
jle 0x18013faa7
mov r15d, dword [0x180253490]
mov r12, qword gs:[0x58]
mov qword [rsp + 0x50], rbx
xor r14d, r14d
mov qword [rbp - 0x10], r14
movss xmm9, dword [0x18021ab5c]
xorps xmm8, xmm8
movsd xmm12, qword [0x18021ab90]
movsd xmm10, qword [0x18021ae10]
movss xmm13, dword [0x18021aaf8]
movss xmm14, dword [0x18021ab34]
mov rcx, rsi
call fcn.1800a5dd0
mov rcx, qword [rax]
mov rdi, qword [rcx + r14*8]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x18013fa86
cmp r14, rbx
jge 0x18013fa86
mov rcx, rdi
call fcn.18013cad0
cmp qword [rax], 0
je 0x18013fa86
cmp qword [0x180254780], 0
je 0x18013f0ba
mov rcx, rdi
call fcn.1800c89a0
cmp qword [rax], 0
je 0x18013f0ba
mov ecx, 8
mov rax, qword [r12 + r15*8]
mov ecx, dword [rcx + rax]
cmp dword [0x180257ac0], ecx
jle 0x18013f0a6
lea rcx, [0x180257ac0]
call fcn.1801a4820
cmp dword [0x180257ac0], 0xffffffff
jne 0x18013f0a6
mov rax, qword [0x180254780]
mov qword [0x180257b38], rax
lea rcx, [0x180257ac0]
call fcn.1801a47b4
mov rbx, qword [0x180257b38]
mov rcx, rdi
call fcn.1800c89a0
mov rcx, qword [rax]
call rbx
mov rax, qword [rbp - 8]
mov qword [rsp + 0x48], rax
mov rbx, qword [rbp]
mov qword [rsp + 0x40], rbx
cmp rax, rbx
je 0x18013fa81
nop word [rax + rax]
mov rax, qword [rax]
test rax, rax
je 0x18013fa61
mov r13, qword [rax]
test r13, r13
je 0x18013fa61
mov rdx, rdi
mov rcx, r13
call fcn.18013e680
mov r14, rax
mov qword [rbp - 0x20], rax
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x30], rax
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.18013e8e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rbp - 0x80], xmm2
mov rdx, qword [rbp - 0x38]
cmp rdx, qword [rbp - 0x30]
je 0x18013f159
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx + 0x20], xmm2
add qword [rbp - 0x38], 0x30
jmp 0x18013f167
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.180140570
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call fcn.18013eb50
mov byte [rsp + 0x20], al
test r14, r14
jne 0x18013f1eb
test al, al
jne 0x18013f1eb
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x18013fa61
mov rcx, qword [rbp - 0x30]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x18013f1de
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013faea
mov rcx, r8
call fcn.1801a4700
jmp 0x18013fa61
cmp qword [0x1802547a0], 0
je 0x18013f425
cmp qword [0x1802545d0], 0
je 0x18013f425
mov esi, 8
mov rax, qword [r12 + r15*8]
mov ecx, dword [rsi + rax]
cmp dword [0x180257b48], ecx
jle 0x18013f24a
lea rcx, [0x180257b48]
call fcn.1801a4820
cmp dword [0x180257b48], 0xffffffff
jne 0x18013f24a
mov rax, qword [0x1802547a0]
mov qword [0x180257b60], rax
lea rcx, [0x180257b48]
call fcn.1801a47b4
mov rcx, r13
call fcn.18007cc20
test al, al
jne 0x18013f425
mov rcx, r13
call fcn.18007cdc0
test al, al
jne 0x18013f425
mov rcx, r13
call fcn.18007cf60
test al, al
jne 0x18013f425
mov rcx, rdi
call fcn.18013cad0
cmp qword [rax], 0
je 0x18013f425
mov rcx, rdi
call fcn.18013cad0
lea rdx, [rbp + 0x20]
mov rcx, qword [rax]
call fcn.18007bcb0
xor edi, edi
mov r8, qword [rbp - 0x38]
mov rcx, r8
mov r11, qword [rbp - 0x40]
sub rcx, r11
movabs r9, 0x2aaaaaaaaaaaaaab
mov rax, r9
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18013f3aa
xor ebx, ebx
nop word [rax + rax]
cmp qword [r11 + rbx + 0x10], 0
je 0x18013f379
mov rax, qword [r12 + r15*8]
mov ecx, dword [rsi + rax]
cmp dword [0x180257af8], ecx
jle 0x18013f32e
lea rcx, [0x180257af8]
call fcn.1801a4820
cmp dword [0x180257af8], 0xffffffff
jne 0x18013f32a
mov rax, qword [0x1802545d0]
mov qword [0x180257b80], rax
lea rcx, [0x180257af8]
call fcn.1801a47b4
mov r11, qword [rbp - 0x40]
mov rcx, qword [r13]
mov rax, qword [0x180257b80]
mov r10, qword [rcx + rax*8]
movsxd rax, edi
lea r9, [rax + rax*2]
shl r9, 4
add r9, 0x18
add r9, r11
mov r8, qword [r11 + rbx + 0x10]
mov rdx, qword [r11 + rbx + 8]
mov rcx, r13
call r10
test al, al
jne 0x18013f425
mov r8, qword [rbp - 0x38]
mov r11, qword [rbp - 0x40]
movabs r9, 0x2aaaaaaaaaaaaaab
inc edi
add rbx, 0x30
mov rcx, r8
sub rcx, r11
mov rax, r9
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, edi
cmp rax, rdx
jb 0x18013f2e0
mov rbx, qword [rsp + 0x40]
test r14, r14
je 0x18013f3c6
mov rcx, r14
call qword [0x180257b60]
mov r11, qword [rbp - 0x40]
movabs r9, 0x2aaaaaaaaaaaaaab
test r11, r11
je 0x18013f41b
mov rcx, qword [rbp - 0x30]
sub rcx, r11
mov rax, r9
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r11
cmp rdx, 0x1000
jb 0x18013f413
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013fae3
mov rcx, r11
call fcn.1801a4700
mov rdi, qword [rsp + 0x28]
jmp 0x18013fa5c
mov eax, 8
mov esi, eax
mov edi, eax
mov ebx, eax
mov r12, qword [r12 + r15*8]
lea r15, [rax + r12]
mov r14d, eax
mov eax, dword [r15]
cmp dword [0x180257b4c], eax
jle 0x18013f47e
lea rcx, [0x180257b4c]
call fcn.1801a4820
mov r14d, esi
cmp dword [0x180257b4c], 0xffffffff
jne 0x18013f47e
mov rax, qword [0x180254720]
mov qword [0x180257b28], rax
lea rcx, [0x180257b4c]
call fcn.1801a47b4
mov r14d, 8
mov eax, dword [r15]
cmp dword [0x180257b14], eax
jle 0x18013f4be
lea rcx, [0x180257b14]
call fcn.1801a4820
mov rdi, r14
cmp dword [0x180257b14], 0xffffffff
jne 0x18013f4be
mov rax, qword [0x180254700]
mov qword [0x180257aa0], rax
lea rcx, [0x180257b14]
call fcn.1801a47b4
mov rbx, rsi
mov rsi, rbx
mov eax, dword [r15]
cmp dword [0x180257b6c], eax
jle 0x18013f4fe
lea rcx, [0x180257b6c]
call fcn.1801a4820
cmp dword [0x180257b6c], 0xffffffff
jne 0x18013f4fe
mov rax, qword [0x180254720]
mov qword [0x180257ad0], rax
lea rcx, [0x180257b6c]
call fcn.1801a47b4
mov rsi, rdi
mov eax, dword [rbx + r12]
cmp dword [0x180257af4], eax
jle 0x18013f53c
lea rcx, [0x180257af4]
call fcn.1801a4820
cmp dword [0x180257af4], 0xffffffff
jne 0x18013f53c
mov rax, qword [0x180254610]
mov qword [0x180257b08], rax
lea rcx, [0x180257af4]
call fcn.1801a47b4
mov rbx, rsi
mov rdi, qword [rbp - 0x20]
test rdi, rdi
jne 0x18013f6e1
mov eax, dword [rbx + r12]
cmp dword [0x180257cc0], eax
jle 0x18013f594
lea rcx, [0x180257cc0]
call fcn.1801a4820
cmp dword [0x180257cc0], 0xffffffff
jne 0x18013f594
mov rax, qword [0x180254530]
xor r9d, r9d
lea r8, str._Script_Engine.PlayerController
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x180257ce0], rax
lea rcx, [0x180257cc0]
call fcn.1801a47b4
mov rax, qword [r13 + 0x10]
test rax, rax
je 0x18013f5be
mov rcx, qword [0x180254200]
mov rdx, qword [0x180257ce0]
nop dword [rax + rax]
cmp rdx, rax
je 0x18013f634
mov rax, qword [rax + rcx]
test rax, rax
jne 0x18013f5b0
mov rdi, qword [rsp + 0x28]
cmp byte [rsp + 0x20], 0
je 0x18013f757
cmp dword [0x18025458c], 0x1a6
jl 0x18013f6b3
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x18], 6
mov dword [rbp - 0x14], 6
lea rax, str.Actor
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x18]
call fcn.18013baf0
mov r9d, 0xffffffff
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x18]
mov rcx, rdi
call qword [0x180257ad0]
mov rdi, rax
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
jmp 0x18013f6cc
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.1800c89a0
cmp r13, qword [rax]
je 0x18013f5c3
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x18013fa47
mov rcx, qword [rbp - 0x30]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x18013f6a6
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013faea
mov rcx, r8
call fcn.1801a4700
jmp 0x18013fa47
mov r9d, 0xffffffff
mov r8b, 1
lea edx, [r9 + 3]
mov rcx, rdi
call qword [0x180257b28]
mov rdi, rax
test rdi, rdi
je 0x18013f9e2
mov rdx, r13
mov rcx, rdi
call qword [0x180257b08]
mov rcx, rdi
call qword [0x180257aa0]
test rax, rax
je 0x18013f9e2
comisd xmm11, xmmword [0x180254220]
jbe 0x18013f9e2
mov rcx, qword [rsp + 0x58]
call fcn.1801386d0
movaps xmm7, xmm0
mov rcx, r13
call fcn.18007c850
movaps xmm6, xmm9
divss xmm6, dword [rax]
movss dword [rbp + 0x10], xmm6
mov rcx, r13
call fcn.18007c920
movaps xmm1, xmm9
divss xmm1, dword [rax]
comiss xmm1, xmm6
jbe 0x18013f98a
mov rcx, r13
call fcn.18007c920
movaps xmm3, xmm9
divss xmm3, dword [rax]
movss dword [rbp - 0x28], xmm3
jmp 0x18013f992
mov rcx, r13
call fcn.18007c850
comiss xmm9, dword [rax]
jbe 0x18013f9e2
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x13b4], 0xffffffff
mov dword [rbp + 0x34], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x18013f781
mov edx, 0x270
mov dword [rbp + 0x30], edx
movaps xmm1, xmm8
movaps xmm2, xmm12
mov r10d, 2
cmp edx, 0x270
jne 0x18013f811
lea r8, [rbp + 0x38]
mov r9d, edx
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
shr edx, 1
xor ecx, edx
xor ecx, dword [r8 + 0x630]
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x18013f7d0
mov edx, dword [rbp + 0x30]
jmp 0x18013f8f6
cmp edx, 0x4e0
jb 0x18013f8f6
xor r8d, r8d
lea r9, [rbp + 0x9f8]
lea r11, [rbp + 0x1028]
lea rbx, [rbp + 0x34]
mov eax, dword [rbp + r8*4 + 0x9f4]
mov edx, eax
xor edx, dword [r9 + r8*4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r11 + r8*4]
shr edx, 1
xor ecx, edx
mov dword [rbx + r8*4], ecx
inc r8
cmp r8, 0xe3
jb 0x18013f832
mov r8d, 0xe3
lea r9, [rbp + 0x9f4]
lea r11, [rbp + 0x34]
nop dword [rax]
mov edx, dword [r9 + r8*4]
xor edx, dword [rbp + r8*4 + 0x9f8]
btr edx, 0x1f
xor edx, dword [r9 + r8*4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x358]
shr edx, 1
xor ecx, edx
mov dword [r11 + r8*4], ecx
inc r8
cmp r8, 0x26f
jb 0x18013f880
mov edx, dword [rbp + 0x13b0]
and edx, 0x80000000
mov eax, dword [rbp + 0x34]
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x664]
mov dword [rbp + 0x9f0], ecx
xor edx, edx
mov dword [rbp + 0x30], edx
mov eax, edx
mov ecx, dword [rbp + rax*4 + 0x34]
inc edx
mov dword [rbp + 0x30], edx
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x13b4]
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 eax, ecx
shr eax, 0x12
xor eax, ecx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
subsd xmm0, xmm8
mulsd xmm0, xmm2
addsd xmm1, xmm0
mulsd xmm2, xmm10
sub r10, 1
jne 0x18013f7b6
divsd xmm1, xmm2
addsd xmm1, xmm8
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm1
call fcn.18013cba0
mov rcx, rax
call fcn.1801386d0
mulss xmm6, xmm13
addss xmm0, xmm6
cvtss2sd xmm0, xmm0
mov r8, qword [rsp + 0x48]
mov rax, qword [r8]
movsd qword [rax + 0x10], xmm0
jmp 0x18013f9e2
movss dword [rbp - 0x28], xmm6
movaps xmm3, xmm6
xorps xmm2, xmm2
cvtss2sd xmm2, xmm7
mov r8, qword [rsp + 0x48]
mov rdx, qword [r8]
movaps xmm0, xmm2
subsd xmm0, qword [rdx + 0x18]
cvtpd2ps xmm1, xmm0
mulss xmm1, xmm14
movss dword [rbp - 0x20], xmm1
comiss xmm6, xmm1
lea rcx, [rbp + 0x10]
lea rax, [rbp - 0x20]
cmovbe rcx, rax
comiss xmm1, xmm3
lea rax, [rbp - 0x28]
cmovbe rax, rcx
movss xmm0, dword [rax]
movss dword [rdx + 0x20], xmm0
mov rax, qword [r8]
movsd qword [rax + 0x18], xmm2
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x18013fa42
mov rcx, qword [rbp - 0x30]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x18013fa3a
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013faea
mov rcx, r8
call fcn.1801a4700
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
mov r12, qword gs:[0x58]
mov r15d, dword [0x180253490]
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
cmp rax, rbx
jne 0x18013f0e0
mov r14, qword [rbp - 0x10]
mov r13d, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
inc r13d
mov dword [rsp + 0x38], r13d
inc r14
mov qword [rbp - 0x10], r14
mov rcx, rsi
call fcn.1800a5dd0
cmp r13d, dword [rax + 8]
jl 0x18013f013
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x18013faf6
mov rdx, qword [rbp + 8]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x18013faf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013faf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1801a4700
xor eax, eax
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.1801a4610
lea r11, [rsp + 0x1560]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180064540
nop
int3