Function at 0x18013b3f0
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.1801a0940
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 [0x180244340]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov rax, qword [0x180250778]
inc dword [rcx + rax]
call fcn.180139cd0
movsxd rbx, eax
test eax, eax
je 0x18013bf03
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov qword [rbp + 0x10], rax
movsd xmm11, qword [0x1802188f0]
comisd xmm11, xmmword [0x180250448]
jbe 0x18013b4fe
mov rax, qword [0x180250760]
mov rcx, qword [rax + rsi]
mov eax, dword [rcx + 0x58]
sub eax, dword [rcx + 0x84]
movsxd rcx, eax
mov qword [rbp - 0x10], rcx
je 0x18013b4fe
movabs rax, 0x1fffffffffffffff
cmp rcx, rax
ja 0x18013bf65
lea rdx, [rbp - 0x10]
lea rcx, [rbp]
call fcn.18013c510
call fcn.180139260
mov qword [rsp + 0x58], rax
movss xmm2, dword [0x180218608]
lea rdx, [rbp]
mov rcx, rsi
call fcn.180139f20
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov rcx, rsi
call fcn.1800a6fb0
cmp dword [rax + 8], r13d
jle 0x18013beb4
mov r15d, dword [0x18024f6b4]
mov r12, qword gs:[0x58]
mov qword [rsp + 0x50], rbx
xor r14d, r14d
mov qword [rbp - 0x10], r14
movss xmm10, dword [0x1802186ac]
xorps xmm8, xmm8
movsd xmm12, qword [0x1802186e0]
movsd xmm9, qword [0x180218960]
movss xmm13, dword [0x180218644]
movss xmm14, dword [0x180218684]
mov rcx, rsi
call fcn.1800a6fb0
mov rcx, qword [rax]
mov rdi, qword [rcx + r14*8]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x18013be93
cmp r14, rbx
jge 0x18013be93
mov rcx, rdi
call fcn.180139190
cmp qword [rax], 0
je 0x18013be93
cmp qword [0x180250908], 0
je 0x18013b62a
mov rcx, rdi
call fcn.1800c9010
cmp qword [rax], 0
je 0x18013b62a
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [r12 + r15*8]
mov ecx, dword [rcx + rax]
cmp dword [0x180253ec0], ecx
jle 0x18013b616
lea rcx, [0x180253ec0]
call fcn.18019f9f0
cmp dword [0x180253ec0], 0xffffffff
jne 0x18013b616
mov rax, qword [0x180250908]
mov qword [0x180253f38], rax
lea rcx, [0x180253ec0]
call fcn.18019f984
mov rbx, qword [0x180253f38]
mov rcx, rdi
call fcn.1800c9010
mov rcx, qword [rax]
call rbx
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
mov rbx, qword [rbp + 8]
mov qword [rsp + 0x40], rbx
cmp rax, rbx
je 0x18013be8e
nop word [rax + rax]
mov rax, qword [rax]
test rax, rax
je 0x18013be6e
mov r13, qword [rax]
test r13, r13
je 0x18013be6e
mov rdx, rdi
mov rcx, r13
call fcn.18013abf0
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.18013ae50
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 0x18013b6c9
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx + 0x20], xmm2
add qword [rbp - 0x38], 0x30
jmp 0x18013b6d7
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.18013c970
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call fcn.18013b0c0
mov byte [rsp + 0x20], al
test r14, r14
jne 0x18013b75b
test al, al
jne 0x18013b75b
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x18013be6e
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 0x18013b74e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013bef7
mov rcx, r8
call fcn.18019f8d0
jmp 0x18013be6e
cmp qword [0x180250928], 0
je 0x18013b995
cmp qword [0x180250758], 0
je 0x18013b995
mov esi, reloc.WS2_32.dll_recv
mov rax, qword [r12 + r15*8]
mov ecx, dword [rsi + rax]
cmp dword [0x180253f48], ecx
jle 0x18013b7ba
lea rcx, [0x180253f48]
call fcn.18019f9f0
cmp dword [0x180253f48], 0xffffffff
jne 0x18013b7ba
mov rax, qword [0x180250928]
mov qword [0x180253f60], rax
lea rcx, [0x180253f48]
call fcn.18019f984
mov rcx, r13
call fcn.180080a40
test al, al
jne 0x18013b995
mov rcx, r13
call fcn.180080be0
test al, al
jne 0x18013b995
mov rcx, r13
call fcn.180080d80
test al, al
jne 0x18013b995
mov rcx, rdi
call fcn.180139190
cmp qword [rax], 0
je 0x18013b995
mov rcx, rdi
call fcn.180139190
lea rdx, [rbp + 0x20]
mov rcx, qword [rax]
call fcn.18007f940
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 0x18013b91a
xor ebx, ebx
nop word [rax + rax]
cmp qword [rbx + r11 + 0x10], 0
je 0x18013b8e9
mov rax, qword [r12 + r15*8]
mov ecx, dword [rsi + rax]
cmp dword [0x180253ef8], ecx
jle 0x18013b89e
lea rcx, [0x180253ef8]
call fcn.18019f9f0
cmp dword [0x180253ef8], 0xffffffff
jne 0x18013b89a
mov rax, qword [0x180250758]
mov qword [0x180253f80], rax
lea rcx, [0x180253ef8]
call fcn.18019f984
mov r11, qword [rbp - 0x40]
mov rcx, qword [r13]
mov rax, qword [0x180253f80]
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 [rbx + r11 + 0x10]
mov rdx, qword [rbx + r11 + 8]
mov rcx, r13
call r10
test al, al
jne 0x18013b995
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 0x18013b850
mov rbx, qword [rsp + 0x40]
test r14, r14
je 0x18013b936
mov rcx, r14
call qword [0x180253f60]
mov r11, qword [rbp - 0x40]
movabs r9, 0x2aaaaaaaaaaaaaab
test r11, r11
je 0x18013b98b
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 0x18013b983
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013bef0
mov rcx, r11
call fcn.18019f8d0
mov rdi, qword [rsp + 0x28]
jmp 0x18013be69
mov eax, reloc.WS2_32.dll_recv
mov esi, eax
mov edi, eax
mov ebx, eax
mov r12, qword [r12 + r15*8]
lea r15, [r12 + rax]
mov r14d, eax
mov eax, dword [r15]
cmp dword [0x180253f4c], eax
jle 0x18013b9ee
lea rcx, [0x180253f4c]
call fcn.18019f9f0
mov r14d, esi
cmp dword [0x180253f4c], 0xffffffff
jne 0x18013b9ee
mov rax, qword [0x1802508a8]
mov qword [0x180253f28], rax
lea rcx, [0x180253f4c]
call fcn.18019f984
mov r14d, reloc.WS2_32.dll_recv
mov eax, dword [r15]
cmp dword [0x180253f14], eax
jle 0x18013ba2e
lea rcx, [0x180253f14]
call fcn.18019f9f0
mov rdi, r14
cmp dword [0x180253f14], 0xffffffff
jne 0x18013ba2e
mov rax, qword [0x180250888]
mov qword [0x180253ea0], rax
lea rcx, [0x180253f14]
call fcn.18019f984
mov rbx, rsi
mov rsi, rbx
mov eax, dword [r15]
cmp dword [0x180253f6c], eax
jle 0x18013ba6e
lea rcx, [0x180253f6c]
call fcn.18019f9f0
cmp dword [0x180253f6c], 0xffffffff
jne 0x18013ba6e
mov rax, qword [0x1802508a8]
mov qword [0x180253ed0], rax
lea rcx, [0x180253f6c]
call fcn.18019f984
mov rsi, rdi
mov eax, dword [r12 + rbx]
cmp dword [0x180253ef4], eax
jle 0x18013baac
lea rcx, [0x180253ef4]
call fcn.18019f9f0
cmp dword [0x180253ef4], 0xffffffff
jne 0x18013baac
mov rax, qword [0x180250798]
mov qword [0x180253f08], rax
lea rcx, [0x180253ef4]
call fcn.18019f984
mov rbx, rsi
mov rdi, qword [rbp - 0x20]
mov r15d, dword [0x18024f6b4]
mov r12, qword gs:[0x58]
test rdi, rdi
jne 0x18013bc68
mov rax, qword [r12 + r15*8]
mov ecx, dword [rbx + rax]
cmp dword [0x1802540c0], ecx
jle 0x18013bb17
lea rcx, [0x1802540c0]
call fcn.18019f9f0
cmp dword [0x1802540c0], 0xffffffff
jne 0x18013bb17
mov rax, qword [0x1802506b0]
xor r9d, r9d
lea r8, str._Script_Engine.PlayerController
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x1802540e0], rax
lea rcx, [0x1802540c0]
call fcn.18019f984
mov rax, qword [r13 + 0x10]
test rax, rax
je 0x18013bb42
mov rcx, qword [0x180250428]
mov rdx, qword [0x1802540e0]
nop
cmp rdx, rax
je 0x18013bbba
mov rax, qword [rax + rcx]
test rax, rax
jne 0x18013bb30
mov rdi, qword [rsp + 0x28]
cmp byte [rsp + 0x20], 0
je 0x18013bcde
cmp dword [0x180250714], 0x1a6
jl 0x18013bc39
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.180138230
mov r9d, 0xffffffff
mov r8d, 2
lea rdx, [rbp + 0x18]
mov rcx, rdi
call qword [0x180253ed0]
mov rdi, rax
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
jmp 0x18013bc53
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.1800c9010
cmp r13, qword [rax]
je 0x18013bb47
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x18013be64
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 0x18013bc2c
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013bef7
mov rcx, r8
call fcn.18019f8d0
jmp 0x18013be64
mov r9d, 0xffffffff
mov r8b, 1
mov edx, 2
mov rcx, rdi
call qword [0x180253f28]
mov rdi, rax
test rdi, rdi
je 0x18013bdff
mov rdx, r13
mov rcx, rdi
call qword [0x180253f08]
mov rcx, rdi
call qword [0x180253ea0]
test rax, rax
je 0x18013bdff
comisd xmm11, xmmword [0x180250448]
jbe 0x18013bdff
mov rcx, qword [rsp + 0x58]
call fcn.1801350c0
movaps xmm7, xmm0
mov rcx, r13
call fcn.180080670
movaps xmm6, xmm10
divss xmm6, dword [rax]
movss dword [rbp - 8], xmm6
mov rcx, r13
call fcn.180080740
movaps xmm1, xmm10
divss xmm1, dword [rax]
comiss xmm1, xmm6
jbe 0x18013bda7
mov rcx, r13
call fcn.180080740
movaps xmm3, xmm10
divss xmm3, dword [rax]
movss dword [rbp - 0x28], xmm3
jmp 0x18013bdaf
mov rcx, r13
call fcn.180080670
comiss xmm10, dword [rax]
jbe 0x18013bdff
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
nop dword [rax + rax]
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 0x18013bd10
mov dword [rbp + 0x30], 0x270
movaps xmm7, xmm8
movaps xmm6, xmm12
mov ebx, 2
lea rcx, [rbp + 0x30]
call fcn.1800e3c10
mov eax, eax
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
subsd xmm0, xmm8
mulsd xmm0, xmm6
addsd xmm7, xmm0
mulsd xmm6, xmm9
sub rbx, 1
jne 0x18013bd43
call fcn.180139260
mov rcx, rax
call fcn.1801350c0
divsd xmm7, xmm6
addsd xmm7, xmm8
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm7
mulss xmm1, xmm13
addss xmm0, xmm1
cvtss2sd xmm0, xmm0
mov r8, qword [rsp + 0x48]
mov rax, qword [r8]
movsd qword [rax + 0x10], xmm0
jmp 0x18013bdff
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
lea rcx, [rbp - 8]
lea rax, [rbp - 0x20]
comiss xmm6, xmm1
cmovbe rcx, rax
lea rax, [rbp - 0x28]
comiss xmm1, xmm3
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 0x18013be5f
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 0x18013be57
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013bef7
mov rcx, r8
call fcn.18019f8d0
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
cmp rax, rbx
jne 0x18013b650
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.1800a6fb0
cmp r13d, dword [rax + 8]
jl 0x18013b583
mov rcx, qword [rbp]
test rcx, rcx
je 0x18013bf03
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x18013befe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013befe
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.18019f8d0
xor eax, eax
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.18019f7e0
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.180067730
nop
int3