Function at 0x18015bfc0
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 - 0x1470]
mov eax, 0x1570
call fcn.1801c11a0
sub rsp, rax
movaps xmmword [rsp + 0x1560], xmm6
movaps xmmword [rsp + 0x1550], xmm7
movaps xmmword [rsp + 0x1540], xmm8
movaps xmmword [rsp + 0x1530], xmm9
movaps xmmword [rsp + 0x1520], xmm10
movaps xmmword [rsp + 0x1510], xmm11
movaps xmmword [rsp + 0x1500], xmm12
movaps xmmword [rsp + 0x14f0], xmm13
movaps xmmword [rsp + 0x14e0], xmm14
mov rax, qword [0x18026c300]
xor rax, rsp
mov qword [rbp + 0x13d0], rax
mov r15, rcx
mov qword [rsp + 0x20], rcx
xor esi, esi
mov rax, qword [0x1802787b0]
inc dword [rcx + rax]
call fcn.18015a730
movsxd rbx, eax
test eax, eax
je 0x18015cb89
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov qword [rbp], rsi
movsd xmm11, qword [0x18023c4d0]
comisd xmm11, xmmword [0x1802783d8]
jbe 0x18015c0ce
mov rax, qword [0x180278798]
mov rcx, qword [rax + r15]
mov eax, dword [rcx + 0x58]
sub eax, dword [rcx + 0x84]
movsxd rcx, eax
mov qword [rbp - 0x20], rcx
je 0x18015c0ce
movabs rax, 0x1fffffffffffffff
cmp rcx, rax
ja 0x18015cbeb
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.18015cc80
call fcn.18015a200
mov qword [rsp + 0x30], rax
movss xmm2, dword [0x18023c15c]
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.18015a980
mov edi, dword [0x180277690]
mov rax, qword gs:[0x58]
mov r12d, 8
mov r14, qword [rax + rdi*8]
mov qword [rsp + 0x40], r14
mov eax, dword [r12 + r14]
cmp dword [0x18027bdb0], eax
jle 0x18015c145
lea rcx, [0x18027bdb0]
call fcn.1801c0510
cmp dword [0x18027bdb0], 0xffffffff
jne 0x18015c145
mov rax, qword [0x1802788e8]
mov qword [0x18027be10], rax
lea rcx, [0x18027bdb0]
call fcn.1801c04a4
mov eax, dword [r12 + r14]
cmp dword [0x18027be34], eax
jle 0x18015c180
lea rcx, [0x18027be34]
call fcn.1801c0510
cmp dword [0x18027be34], 0xffffffff
jne 0x18015c180
mov rax, qword [0x1802788c8]
mov qword [0x18027bda8], rax
lea rcx, [0x18027be34]
call fcn.1801c04a4
mov eax, dword [r12 + r14]
cmp dword [0x18027be84], eax
jle 0x18015c1bb
lea rcx, [0x18027be84]
call fcn.1801c0510
cmp dword [0x18027be84], 0xffffffff
jne 0x18015c1bb
mov rax, qword [0x1802788e8]
mov qword [0x18027bd80], rax
lea rcx, [0x18027be84]
call fcn.1801c04a4
mov eax, dword [r12 + r14]
cmp dword [0x18027bdec], eax
jle 0x18015c1f6
lea rcx, [0x18027bdec]
call fcn.1801c0510
cmp dword [0x18027bdec], 0xffffffff
jne 0x18015c1f6
mov rax, qword [0x1802787d0]
mov qword [0x18027bdc0], rax
lea rcx, [0x18027bdec]
call fcn.1801c04a4
mov eax, dword [r12 + r14]
cmp dword [0x18027bde4], eax
jle 0x18015c231
lea rcx, [0x18027bde4]
call fcn.1801c0510
cmp dword [0x18027bde4], 0xffffffff
jne 0x18015c231
mov rax, qword [0x1802787d0]
mov qword [0x18027bdd8], rax
lea rcx, [0x18027bde4]
call fcn.1801c04a4
mov r13d, esi
mov dword [rsp + 0x28], esi
mov rcx, r15
call fcn.1800ad820
cmp dword [rax + 8], esi
jle 0x18015cb3a
mov qword [rsp + 0x48], rbx
mov qword [rbp - 0x20], rsi
movss xmm9, dword [0x18023c1fc]
xorps xmm8, xmm8
movsd xmm12, qword [0x18023c230]
movsd xmm10, qword [0x18023c538]
movss xmm13, dword [0x18023c198]
movss xmm14, dword [0x18023c1d4]
mov rcx, r15
call fcn.1800ad820
mov rcx, qword [rax]
mov r12, qword [rcx + rsi*8]
test r12, r12
je 0x18015cb19
cmp rsi, rbx
jge 0x18015cb19
mov rcx, r12
call fcn.18015a130
cmp qword [rax], 0
je 0x18015cb19
cmp qword [0x180278948], 0
je 0x18015c322
mov rcx, r12
call fcn.1800dab10
cmp qword [rax], 0
je 0x18015c322
mov eax, 8
mov eax, dword [rax + r14]
cmp dword [0x18027bd8c], eax
jle 0x18015c30e
lea rcx, [0x18027bd8c]
call fcn.1801c0510
cmp dword [0x18027bd8c], 0xffffffff
jne 0x18015c30e
mov rax, qword [0x180278948]
mov qword [0x18027be20], rax
lea rcx, [0x18027bd8c]
call fcn.1801c04a4
mov rbx, qword [0x18027be20]
mov rcx, r12
call fcn.1800dab10
mov rcx, qword [rax]
call rbx
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov qword [rbp + 0x20], rax
mov r13, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x38], rax
cmp r13, rax
je 0x18015cb0f
nop word [rax + rax]
mov rax, qword [r13]
test rax, rax
je 0x18015caf1
mov rsi, qword [rax]
test rsi, rsi
je 0x18015caf1
mov rdx, r12
mov rcx, rsi
call fcn.18015b7c0
mov r14, rax
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x40], rax
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.18015ba20
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rsp + 0x70], xmm2
mov rdx, qword [rbp - 0x48]
cmp rdx, qword [rbp - 0x40]
je 0x18015c3c7
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx + 0x20], xmm2
add qword [rbp - 0x48], 0x30
jmp 0x18015c3d5
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.18015cd80
mov r8, r12
mov rdx, rsi
mov rcx, r15
call fcn.18015bc90
movzx r15d, al
test r14, r14
jne 0x18015c3f4
test al, al
je 0x18015ca8c
mov rbx, qword gs:[0x58]
cmp qword [0x180278968], 0
je 0x18015c64c
cmp qword [0x180278790], 0
je 0x18015c64c
mov rax, qword [rbx + rdi*8]
mov ecx, 8
mov ecx, dword [rcx + rax]
cmp dword [0x18027be40], ecx
jle 0x18015c45c
lea rcx, [0x18027be40]
call fcn.1801c0510
cmp dword [0x18027be40], 0xffffffff
jne 0x18015c45c
mov rax, qword [0x180278968]
mov qword [0x18027be48], rax
lea rcx, [0x18027be40]
call fcn.1801c04a4
mov rcx, rsi
call fcn.180081e20
test al, al
jne 0x18015c64c
mov rcx, rsi
call fcn.180081fc0
test al, al
jne 0x18015c64c
mov rcx, rsi
call fcn.180082160
test al, al
jne 0x18015c64c
mov rcx, r12
call fcn.18015a130
cmp qword [rax], 0
je 0x18015c64c
mov rcx, r12
call fcn.18015a130
lea rdx, [rbp + 0x28]
mov rcx, qword [rax]
call fcn.180080d20
xor edi, edi
mov r8, qword [rbp - 0x48]
mov rcx, r8
mov r11, qword [rbp - 0x50]
sub rcx, r11
movabs r9, 0x2aaaaaaaaaaaaaab
mov rax, r9
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18015c5c8
xor ebx, ebx
nop dword [rax + rax]
cmp qword [rbx + r11 + 0x10], 0
je 0x18015c59c
mov eax, dword [0x180277690]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov ecx, 8
mov ecx, dword [rcx + rax]
cmp dword [0x18027bde0], ecx
jle 0x18015c552
lea rcx, [0x18027bde0]
call fcn.1801c0510
cmp dword [0x18027bde0], 0xffffffff
jne 0x18015c54e
mov rax, qword [0x180278790]
mov qword [0x18027be68], rax
lea rcx, [0x18027bde0]
call fcn.1801c04a4
mov r11, qword [rbp - 0x50]
mov rcx, qword [rsi]
mov rax, qword [0x18027be68]
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, rsi
call r10
test al, al
jne 0x18015c63d
mov r8, qword [rbp - 0x48]
mov r11, qword [rbp - 0x50]
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 0x18015c4f0
test r14, r14
je 0x18015c5e4
mov rcx, r14
call qword [0x18027be48]
mov r11, qword [rbp - 0x50]
movabs r9, 0x2aaaaaaaaaaaaaab
test r11, r11
je 0x18015caec
mov rcx, qword [rbp - 0x40]
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 0x18015c635
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015cb76
mov rcx, r11
jmp 0x18015cae7
mov edi, dword [0x180277690]
mov rbx, qword gs:[0x58]
test r14, r14
jne 0x18015c783
mov rax, qword [rbx + rdi*8]
mov ecx, 8
mov ecx, dword [rcx + rax]
cmp dword [0x18027bfa0], ecx
jle 0x18015c6a8
lea rcx, [0x18027bfa0]
call fcn.1801c0510
cmp dword [0x18027bfa0], 0xffffffff
jne 0x18015c6a8
mov rax, qword [0x1802786f0]
xor r9d, r9d
lea r8, str._Script_Engine.PlayerController
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18027bfb8], rax
lea rcx, [0x18027bfa0]
call fcn.1801c04a4
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18015c6e1
mov rcx, qword [0x1802783b8]
mov rdx, qword [0x18027bfb8]
nop
cmp rdx, rax
je 0x18015c6d0
mov rax, qword [rax + rcx]
test rax, rax
jne 0x18015c6c0
jmp 0x18015c6e1
mov rcx, r12
call fcn.1800dab10
cmp rsi, qword [rax]
jne 0x18015ca8c
test r15b, r15b
je 0x18015c807
cmp dword [0x18027874c], 0x1a6
jl 0x18015c749
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x28], 6
mov dword [rbp - 0x24], 6
lea rax, str.Actor
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 8]
call fcn.180159090
mov r9d, 0xffffffff
lea r8d, [r9 + 3]
lea rdx, [rbp + 8]
mov rcx, r12
call qword [0x18027bd80]
mov r14, rax
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
jmp 0x18015c762
mov r9d, 0xffffffff
mov r8b, 1
lea edx, [r9 + 3]
mov rcx, r12
call qword [0x18027be10]
mov r14, rax
test r14, r14
je 0x18015ca8c
mov rdx, rsi
mov rcx, r14
cmp dword [0x18027874c], 0x1f4
jl 0x18015c7f9
call qword [0x18027bdc0]
mov rcx, r14
call qword [0x18027bda8]
test rax, rax
je 0x18015ca8c
comisd xmm11, xmmword [0x1802783d8]
jbe 0x18015ca8c
mov rcx, qword [rsp + 0x30]
call fcn.180155c70
movaps xmm7, xmm0
mov rcx, rsi
call fcn.180081a50
movaps xmm6, xmm9
divss xmm6, dword [rax]
movss dword [rbp - 0x18], xmm6
mov rcx, rsi
call fcn.180081b20
movaps xmm1, xmm9
divss xmm1, dword [rax]
comiss xmm1, xmm6
jbe 0x18015ca2b
mov rcx, rsi
call fcn.180081b20
movaps xmm3, xmm9
divss xmm3, dword [rax]
movss dword [rbp - 0x38], xmm3
jmp 0x18015ca33
xor r8d, r8d
call qword [0x18027bdd8]
jmp 0x18015c783
mov rcx, rsi
call fcn.180081a50
comiss xmm9, dword [rax]
jbe 0x18015ca8c
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x13c4], 0xffffffff
mov dword [rbp + 0x44], 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 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x18015c831
mov edx, 0x270
mov dword [rbp + 0x40], edx
movaps xmm1, xmm8
movaps xmm2, xmm12
mov r10d, 2
cmp edx, 0x270
jne 0x18015c8c1
lea r8, [rbp + 0x48]
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
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x18015c880
mov edx, dword [rbp + 0x40]
jmp 0x18015c99b
cmp edx, 0x4e0
jb 0x18015c99b
xor r8d, r8d
mov eax, dword [rbp + r8*4 + 0xa04]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0xa08]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0x1038]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 + 0x44], ecx
inc r8
cmp r8, 0xe3
jb 0x18015c8d0
mov r8d, 0xe3
nop dword [rax]
mov eax, dword [rbp + r8*4 + 0xa04]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0xa08]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x348]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 + 0x44], ecx
inc r8
cmp r8, 0x26f
jb 0x18015c920
mov edx, dword [rbp + 0x13c0]
and edx, 0x80000000
mov eax, dword [rbp + 0x44]
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 + 0x674]
mov dword [rbp + 0xa00], ecx
xor edx, edx
mov dword [rbp + 0x40], edx
mov eax, edx
mov ecx, dword [rbp + rax*4 + 0x44]
inc edx
mov dword [rbp + 0x40], edx
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x13c4]
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 0x18015c866
divsd xmm1, xmm2
addsd xmm1, xmm8
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm1
call fcn.18015a200
mov rcx, rax
call fcn.180155c70
mulss xmm6, xmm13
addss xmm0, xmm6
cvtss2sd xmm0, xmm0
mov rax, qword [r13]
movsd qword [rax + 0x10], xmm0
jmp 0x18015ca8c
movss dword [rbp - 0x38], xmm6
movaps xmm3, xmm6
xorps xmm2, xmm2
cvtss2sd xmm2, xmm7
mov r8, qword [r13]
movaps xmm0, xmm2
subsd xmm0, qword [r8 + 0x18]
cvtpd2ps xmm1, xmm0
mulss xmm1, xmm14
movss dword [rbp - 0x30], xmm1
comiss xmm6, xmm1
seta al
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
test al, al
cmove rdx, rcx
comiss xmm1, xmm3
seta al
lea rcx, [rbp - 0x38]
test al, al
cmove rcx, rdx
movss xmm0, dword [rcx]
movss dword [r8 + 0x20], xmm0
mov rax, qword [r13]
movsd qword [rax + 0x18], xmm2
mov r8, qword [rbp - 0x50]
test r8, r8
je 0x18015caec
mov rcx, qword [rbp - 0x40]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, r8
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 0x18015cae4
mov r8, qword [r8 - 8]
sub rax, r8
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015cb7d
mov rcx, r8
call fcn.1801c03f0
mov r15, qword [rsp + 0x20]
add r13, 8
cmp r13, qword [rsp + 0x38]
mov edi, dword [0x180277690]
jne 0x18015c350
mov rsi, qword [rbp - 0x20]
mov r14, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x48]
inc r13d
mov dword [rsp + 0x28], r13d
inc rsi
mov qword [rbp - 0x20], rsi
mov rcx, r15
call fcn.1800ad820
cmp r13d, dword [rax + 8]
jl 0x18015c283
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18015cb89
mov rdx, qword [rbp]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015cb84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015cb84
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.1801c03f0
xor eax, eax
mov rcx, qword [rbp + 0x13d0]
xor rcx, rsp
call fcn.1801c0300
lea r11, [rsp + 0x1570]
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.1800696f0
nop
int3