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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1390]
mov eax, 0x1490
call fcn.140069450
sub rsp, rax
movaps xmmword [rsp + 0x1480], xmm6
movaps xmmword [rsp + 0x1470], xmm7
movaps xmmword [rsp + 0x1460], xmm8
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov dword [rsp + 0x20], edx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], rcx
movups xmm0, xmmword [0x14007b420]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x14007b430]
movups xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [0x14007b440]
movups xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [0x14007b450]
movsd qword [rbp - 0x70], xmm0
movzx eax, word [0x14007b458]
mov word [rbp - 0x68], ax
xor r8d, r8d
cmp dword [0x140087018], 2
jl 0x140053b27
movdqa xmm5, xmmword [0x14007bb40]
movdqa xmm4, xmmword [0x14007c710]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x14007bb60]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x14007bc50]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14007bb80]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14007bb80]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x38
jl 0x140053a20
cmp r8d, 0x3a
jge 0x140053b70
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x3a
jl 0x140053b40
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
lea rax, [rsp + 0x60]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140053b90
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140053620
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov edi, 0xffffffff
mov dword [rbp + 0x1344], edi
mov dword [rbp - 0x3c], eax
mov r15d, 1
mov ecx, r15d
nop dword [rax + 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 0x140053bd0
mov r8d, 0x270
mov dword [rbp - 0x40], r8d
lea rdx, [rbp - 0x60]
mov r9, qword [rbp - 0x60]
mov r10, qword [rbp - 0x48]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, qword [rbp - 0x50]
add rdx, rcx
mov qword [rsp + 0x50], rdx
lea r11, [rbp - 0x60]
cmp r10, 0x10
cmovae r11, r9
mov qword [rsp + 0x28], r11
mov r13d, 0x40
lea r13, [r13 - 1]
shr rsi, 1
cmp rsi, rdi
ja 0x140053c30
cmp r11, rdx
je 0x140053ea7
lea rax, [r11 + 1]
cmp rax, rdx
je 0x140053ea7
mov rcx, r15
sub rcx, r11
mov qword [rsp + 0x30], rcx
nop dword [rax]
lea rax, [r15 + r11]
mov qword [rsp + 0x48], rax
lea r12, [rax + rcx]
nop dword [rax]
xor edi, edi
xor ebx, ebx
test r15, r15
je 0x140053e2f
nop dword [rax]
lea rcx, [r13 - 1]
shl rdi, cl
add rdi, rdi
nop word [rax + rax]
cmp r8d, 0x270
jne 0x140053ce5
lea rax, [rbp - 0x38]
mov r9d, r8d
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
btr r8d, 0x1f
xor r8d, dword [rax - 4]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
and edx, 0x9908b0df
shr r8d, 1
xor edx, r8d
xor edx, dword [rax + 0x630]
mov dword [rax + 0x9bc], edx
lea rax, [rax + 4]
sub r9, 1
jne 0x140053ca0
mov r8d, dword [rbp - 0x40]
jmp 0x140053dd3
cmp r8d, 0x4e0
jb 0x140053dd3
lea r10, [rbp + 0x984]
mov r11d, 0xe3
mov eax, dword [rbp + 0x984]
nop word [rax + rax]
lea r8, [r10 + 4]
mov edx, eax
xor edx, dword [r8]
btr edx, 0x1f
xor 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 [r10 + 0x634]
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
mov eax, dword [r8]
jne 0x140053d10
lea r10, [rbp + 0xd10]
mov r11d, 0x18c
mov eax, dword [rbp + 0xd10]
nop
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
mov eax, dword [r8]
jne 0x140053d60
mov edx, dword [rbp + 0x1340]
xor edx, dword [rbp - 0x3c]
btr edx, 0x1f
xor edx, dword [rbp + 0x1340]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x5f4]
mov dword [rbp + 0x980], ecx
xor r8d, r8d
mov dword [rbp - 0x40], r8d
mov eax, r8d
mov ecx, dword [rbp + rax*4 - 0x3c]
inc r8d
mov dword [rbp - 0x40], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x1344]
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
cmp rax, rsi
ja 0x140053c90
or rdi, rax
lea rcx, [r13 - 1]
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x140053c80
xor edx, edx
mov rax, rbx
div r12
mov rcx, rax
xor edx, edx
mov rax, rdi
div r12
cmp rax, rcx
jb 0x140053e58
xor edx, edx
mov rax, rbx
div r12
cmp rdx, r15
jne 0x140053c70
xor edx, edx
mov rax, rdi
div r12
mov r11, qword [rsp + 0x28]
cmp rdx, r15
je 0x140053e7f
mov r9, qword [rsp + 0x48]
movzx ecx, byte [r9]
movzx eax, byte [rdx + r11]
mov byte [r9], al
mov byte [rdx + r11], cl
inc r15
lea rax, [r15 + r11]
cmp rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
jne 0x140053c60
mov r10, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
movsxd r8, dword [rsp + 0x20]
cmp rcx, r8
cmovb r8, rcx
lea rdx, [rbp - 0x60]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, rbx
call fcn.140053620
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140053f1c
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053f17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053f17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400682a0
mov rax, rbx
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.1400681b0
lea r11, [rsp + 0x1490]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret