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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439597
mov eax, dword fs:[0]
push eax
mov eax, 0x145c
call fcn.004383e0
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc4]
push 0xb0
push 0
mov dword [ebp - 0x1468], edi
push eax
mov dword [ebp - 0x1450], 0
call fcn.0041c210
mov dword [ebp - 0xc4], 0x44a8dc
mov dword [ebp - 0xb4], 0x44a84c
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x5c], 0x44a858
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x1450], 2
lea ecx, [ebp - 0xc4]
push eax
call fcn.0040c360
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xb8], eax
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xc8], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xac]
call fcn.0040c140
mov dword [ebp - 0xac], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 5
call fcn.0041ae27
mov esi, eax
mov dword [ebp - 0x1460], edx
mov dword [ebp - 0xc8], 0xffffffff
mov eax, 1
mov dword [ebp - 0x1448], esi
nop dword [eax]
mov ecx, esi
shr ecx, 0x1e
xor ecx, esi
imul esi, ecx, 0x6c078965
add esi, eax
mov dword [ebp + eax*4 - 0x1448], esi
inc eax
cmp eax, 0x270
jb 0x409820
lea ecx, [ebp - 0x144c]
mov dword [ebp - 0x144c], 0x270
call fcn.0040cf70
push eax
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0xa0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea ecx, [ebp - 0xb4]
call fcn.0040a340
mov byte [ebp - 4], 6
xorps xmm0, xmm0
mov edx, dword [ebp - 0x70]
mov eax, edx
and al, 0x22
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 0x1450], 0x22
movq qword [ebp - 0x1464], xmm0
mov dword [ebp - 0x145c], 0
cmp al, 2
je 0x4098e2
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4098e2
mov eax, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x74]
cmovb ecx, dword [ebp - 0x74]
mov edx, dword [eax]
sub ecx, edx
jmp 0x409912
test dl, 4
jne 0x409906
mov eax, dword [ebp - 0x90]
mov esi, dword [eax]
test esi, esi
je 0x409906
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x409912
mov ecx, dword [ebp - 0x1460]
mov edx, dword [ebp - 0x1464]
test edx, edx
je 0x40991f
push ecx
push edx
mov ecx, edi
call fcn.00406fc0
lea ecx, [ebp - 0xc4]
call fcn.00409950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004192ef
mov esp, ebp
pop ebp
ret 4