Function at 0x140004540
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 - 0x1370]
mov eax, 0x1470
call fcn.140013ee0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1368], rax
mov rsi, rcx
mov qword [rbp - 0x70], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0x70]
call fcn.1400043f0
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400045a5
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
call fcn.1400124dc
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.140008850
mov dword [rsp + 0x20], 0xe
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14000461f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000461a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000461a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012fcc
movdqa xmm0, xmmword [0x140016330]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r13w
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x3c], edx
inc rcx
cmp rcx, 0x270
jb 0x140004650
mov dword [rbp - 0x40], 0x270
lea rcx, [rbp - 0x40]
call fcn.14000b1f0
mov ecx, eax
imul r8, rcx, 0x15f90
cmp r8d, 0x12def
ja 0x1400046ac
lea rcx, [rbp - 0x40]
call fcn.14000b1f0
mov ecx, eax
imul r8, rcx, 0x15f90
cmp r8d, 0x12df0
jb 0x140004691
shr r8, 0x20
add r8d, 0x80002710
btc r8d, 0x1f
lea r9, [rbp + 0x1365]
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400046d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rbp + 0x1365]
cmp r9, rax
jne 0x14000472b
movdqa xmm0, xmmword [0x140016340]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], dl
jmp 0x140004742
lea r8, [rbp + 0x1365]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.140009740
mov dword [rsp + 0x20], 0x3e
mov r14, qword [rbp - 0x58]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0xf
jb 0x140004a3c
lea r12, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova r12, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r15, [r14 + 0xf]
mov ebx, 0xf
lea rdi, [rsp + 0x30]
cmp r15, rbx
jbe 0x140004815
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400047d6
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140012f90
test rax, rax
je 0x1400048ba
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140004810
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400047f0
mov rdi, r13
jmp 0x140004810
cmp rcx, 0x1000
jb 0x140004808
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004a36
jmp 0x1400047b7
call fcn.140012f90
mov rdi, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
mov r8, r14
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._temp_datapack_]
movsd qword [rdi + r14], xmm0
mov eax, dword [0x140015928]
mov dword [rdi + r14 + 8], eax
movzx eax, word [0x14001592c]
mov word [rdi + r14 + 0xc], ax
movzx eax, byte [0x14001592e]
mov byte [rdi + r14 + 0xe], al
mov byte [rdi + r15], 0
mov dword [rsp + 0x20], 0x7e
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.14000a070
mov dword [rsp + 0x20], 0xff
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400048c7
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012fcc
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140004907
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004902
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004902
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012fcc
mov rcx, qword [rsi + 0x10]
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140004918
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
call fcn.1400124dc
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140002a90
mov dword [rsp + 0x20], 0x3ff
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.14001273c
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140004a27
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400049b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012fcc
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x1400049f4
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012fcc
mov rax, rsi
mov rcx, qword [rbp + 0x1368]
xor rcx, rsp
call fcn.140012f70
lea r11, [rsp + 0x1470]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
shr rdx, 0x20
lea r8, [rsp + 0x50]
call fcn.140003980
nop
call fcn.140001110
int3
call fcn.1400011b0
int3