Function at 0x140031be0
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 - 0x1410]
mov eax, 0x1510
call fcn.14003e6b0
sub rsp, rax
mov rax, qword [0x140087048]
xor rax, rsp
mov qword [rbp + 0x1400], rax
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
lea r8d, [rdi + 0x3e]
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x48]
call fcn.140007670
nop
call fcn.14003c728
mov edx, eax
mov dword [rbp + 0x13f4], 0xffffffff
mov dword [rbp + 0x74], eax
lea ecx, [rdi + 1]
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 + 0x74], edx
inc rcx
cmp rcx, 0x270
jb 0x140031c70
mov ebx, 0x270
mov dword [rbp + 0x70], ebx
mov r15d, dword [rsp + 0x58]
dec r15d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call fcn.14003fdf0
lea rcx, [rsp + 0x70]
call fcn.140032560
nop
mov r12d, 8
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x48]
nop dword [rax]
cmp r15d, 0xffffffff
jne 0x140031e44
cmp ebx, 0x270
jne 0x140031d31
lea r8, [rbp + 0x78]
mov r9d, ebx
nop dword [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 0x140031cf0
mov ebx, dword [rbp + 0x70]
jmp 0x140031e0b
cmp ebx, 0x4e0
jb 0x140031e0b
mov r8, rdi
mov eax, dword [rbp + r8*4 + 0xa34]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0xa38]
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 + 0x1068]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 + 0x74], ecx
inc r8
cmp r8, 0xe3
jb 0x140031d40
mov r8d, 0xe3
nop dword [rax]
mov eax, dword [rbp + r8*4 + 0xa34]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0xa38]
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 - 0x318]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 + 0x74], ecx
inc r8
cmp r8, 0x26f
jb 0x140031d90
mov edx, dword [rbp + 0x13f0]
and edx, 0x80000000
mov eax, dword [rbp + 0x74]
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 + 0x6a4]
mov dword [rbp + 0xa30], ecx
mov ebx, edi
mov dword [rbp + 0x70], ebx
mov eax, ebx
mov edx, dword [rbp + rax*4 + 0x74]
inc ebx
mov dword [rbp + 0x70], ebx
mov eax, edx
shr eax, 0xb
and eax, dword [rbp + 0x13f4]
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 ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x140031e8c
lea ebx, [r15 + 1]
lea rcx, [rbp + 0x70]
call fcn.140032d00
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x140031e83
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140031e83
nop dword [rax + rax]
lea rcx, [rbp + 0x70]
call fcn.140032d00
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140031e70
shr rcx, 0x20
mov ebx, dword [rbp + 0x70]
xor edi, edi
lea rax, [rsp + 0x48]
cmp r13, 0x10
cmovae rax, r14
movsxd rdx, ecx
movzx edx, byte [rdx + rax]
lea rcx, [rbp - 0x80]
call fcn.1400329d0
sub r12, 1
jne 0x140031cd0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r12b
mov dword [rsp + 0x20], 4
movups xmmword [rsp + 0x28], xmm0
mov rcx, qword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140031f02
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140031f02
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140031f33
test cl, 4
jne 0x140031f29
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140031f29
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140031f33
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140031f41
mov rcx, rsi
call fcn.140007110
nop
lea rcx, [rsp + 0x70]
call fcn.140031fc0
nop
cmp r13, 0x10
jb 0x140031f7f
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140031f77
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031fb2
mov rcx, r14
call fcn.14003dd70
mov rax, rsi
mov rcx, qword [rbp + 0x1400]
xor rcx, rsp
call fcn.14003dd50
lea r11, [rsp + 0x1510]
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
call fcn.1400447b4
int3