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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x58]
lea rsi, [0x1400496a0]
mov ebx, edx
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14004aa28], eax
jle 0x140035ca9
lea rcx, [0x14004aa28]
call fcn.140037840
cmp dword [0x14004aa28], 0xffffffff
jne 0x140035ca9
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x140035c2f
imul rax, rax, 0x64
jmp 0x140035c4d
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov rcx, rax
mov dword [0x14004aa24], 0xffffffff
mov dword [0x1400496a4], eax
mov r8d, 1
nop word [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul edx, eax, 0x6c078965
add edx, r8d
mov dword [rsi + r8*4 + 4], edx
mov ecx, edx
inc r8
cmp r8, 0x270
jb 0x140035c70
lea rcx, [0x14004aa28]
mov dword [0x1400496a0], 0x270
call fcn.1400377e0
cmp ebx, 0xffffffff
jne 0x140035cc4
xor edi, edi
mov rcx, rsi
call 0x140035d70
add rdi, 0x20
cmp rdi, 0x20
jb 0x140035cb0
jmp 0x140035cf8
lea edi, [rbx + 1]
xor ecx, ecx
xor eax, eax
test ebx, ebx
je 0x140035cde
mov rcx, rsi
call 0x140035d70
mov ecx, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov r8d, eax
mov r9d, edx
xor edx, edx
mov eax, ecx
div edi
cmp eax, r8d
jb 0x140035cf8
cmp r9d, ebx
jne 0x140035cc7
cmp ebx, 0xffffffff
jne 0x140035d14
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140035d70
lea edi, [rbx + 1]
xor r8d, r8d
xor eax, eax
test ebx, ebx
je 0x140035d30
mov rcx, rsi
call 0x140035d70
mov r8d, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov ecx, eax
mov r9d, edx
xor edx, edx
mov eax, r8d
div edi
cmp eax, ecx
jb 0x140035d49
cmp r9d, ebx
jne 0x140035d17
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov rsi, qword [rsp + 0x38]
mov eax, r8d
div edi
mov eax, edx
add rsp, 0x20
pop rdi
ret
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140035dd1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140035d90
mov ecx, dword [r10]
jmp 0x140035eba
cmp ecx, 0x4e0
jb 0x140035eba
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140035df0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140035e40
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret