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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7250d7
mov eax, dword fs:[0]
push eax
mov eax, 0x13c0
call fcn.0051e700
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13bc], esi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c4], edi
mov dword [ebp - 0x13b0], eax
mov dword [ebp - 0x13c8], 0
call fcn.0051c5c4
mov edx, eax
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x13a4], edx
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x13a4], edx
inc eax
cmp eax, 0x270
jb 0x4b96d5
mov eax, dword [ebp - 0x13b0]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x13a8], 0x270
mov edx, dword [eax + 4]
sub edx, dword [eax]
lea eax, [esi + 0x18]
mov dword [ebp - 0x13cc], eax
mov eax, dword [eax]
imul eax, edx
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea esi, [eax + ecx*2]
mov dword [ebp - 0x13b4], esi
test esi, esi
je 0x4b9783
push esi
mov ecx, edi
call fcn.00491100
push dword [ebp - 0x13b4]
mov eax, dword [edi]
add esi, eax
push 0
push eax
call fcn.00520480
add esp, 0xc
mov dword [edi + 4], esi
lea ecx, [ebp - 0x13c0]
mov dword [ebp - 0x13c0], 0
call fcn.00491170
mov esi, dword [ebp - 0x13b4]
push ecx
lea eax, [ebp - 0x13a9]
mov dword [ebp - 4], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x13c8], 1
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x13a9], 0
movups xmmword [ebp - 0x20], xmm0
call fcn.004b9a70
mov ecx, dword [ebp - 0x13bc]
lea eax, [ebp - 0x13b8]
push eax
push edi
lea eax, [ebp - 0x13a8]
mov dword [ebp - 0x13b8], 0
push eax
call fcn.004b9900
mov ecx, dword [ebp - 0x13bc]
mov dword [ebp - 0x13c0], eax
lea eax, [ebp - 0x13b8]
push eax
push edi
lea eax, [ebp - 0x13a8]
push eax
call fcn.004b9900
mov esi, dword [ebp - 0x13b8]
mov edx, eax
mov dword [ebp - 0x13b4], eax
mov eax, dword [ebp - 0x13b0]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x13c4], ecx
mov dword [ebp - 0x13b0], eax
cmp eax, ecx
je 0x4b98a3
mov ecx, dword [ebp - 0x13bc]
add ecx, 0x20
mov dword [ebp - 0x13bc], ecx
mov eax, dword [ebp - 0x13c0]
add eax, edx
cdq
idiv dword [ecx]
mov eax, dword [ebp - 0x13b4]
mov ecx, dword [ebp - 0x13cc]
mov dword [ebp - 0x13c0], eax
mov eax, edx
mov dword [ebp - 0x13b4], edx
cdq
idiv dword [ecx]
mov eax, dword [ebp - 0x13b0]
mov ecx, dword [edi]
add esi, edx
mov al, byte [eax]
mov byte [esi + ecx], al
mov ecx, esi
mov eax, dword [ebp - 0x20]
shr ecx, 5
lea edx, [eax + ecx*4]
mov ecx, esi
mov eax, dword [edx]
and ecx, 0x1f
bts eax, ecx
inc esi
mov ecx, dword [ebp - 0x13bc]
mov dword [edx], eax
mov eax, dword [ebp - 0x13b0]
mov edx, dword [ebp - 0x13b4]
inc eax
mov dword [ebp - 0x13b0], eax
cmp eax, dword [ebp - 0x13c4]
jne 0x4b9833
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add eax, esi
cmp eax, ecx
je 0x4b98bc
push eax
push ecx
push ecx
call fcn.00491010
add esp, 0xc
mov dword [edi + 4], eax
push dword [ebp - 0x13b8]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x13a8]
push eax
call fcn.004b99e0
lea ecx, [ebp - 0x20]
call fcn.004b61f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret 8