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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127350
mov eax, dword fs:[0]
push eax
mov eax, 0x13c4
call fcn.100c4bf0
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x13ad]
mov dword [ebp - 0x13d0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c0], eax
mov dword [ebp - 0x13c4], 0
call fcn.1005d2b0
push eax
lea ecx, [ebp - 0x24]
call fcn.100079a0
lea ecx, [ebp - 0x13ad]
mov dword [ebp - 4], 1
call fcn.1005d0f0
push eax
lea ecx, [ebp - 0x20]
call fcn.100079a0
lea ecx, [ebp - 0x13ad]
mov byte [ebp - 4], 2
call fcn.1005d790
push eax
lea ecx, [ebp - 0x1c]
call fcn.100079a0
lea ecx, [ebp - 0x13ad]
mov byte [ebp - 4], 3
call fcn.1005d470
push eax
lea ecx, [ebp - 0x18]
call fcn.100079a0
lea ecx, [ebp - 0x13ad]
mov byte [ebp - 4], 4
call fcn.1005d1d0
push eax
lea ecx, [ebp - 0x14]
call fcn.100079a0
mov dword [ebp - 4], 5
mov dword [ebp - 0x13cc], 1
mov dword [ebp - 0x13c8], 5
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x1005f7c5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x13b4], esi
push 0
mov byte [ebp - 4], 6
call fcn.100f831a
add esp, 4
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x13a8], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x13a8], eax
inc edx
cmp edx, 0x270
jl 0x1005f641
xor ebx, ebx
mov dword [ebp - 0x13ac], 0x270
lea edi, [ebx + 0x1a]
nop
lea ecx, [ebp - 0x13ac]
call fcn.10036340
mov ecx, eax
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
cmp edx, 0x9d89d89
jae 0x1005f670
xor edx, edx
mov eax, ecx
div edi
add edx, 0x80000061
cmp edx, 0x80000000
lea eax, [edx - 0x80000000]
lea ecx, [edx - 0x80000000]
cmovae ecx, eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x13b8], ecx
mov dword [ebp - 0x13bc], eax
lea edi, [eax + 1]
test edi, edi
js 0x1005f7bb
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1005f6ed
push edi
lea ecx, [ebp - 0x13b4]
call fcn.1000b310
mov esi, dword [ebp - 0x13b4]
mov ecx, dword [ebp - 0x13bc]
mov eax, dword [ebp - 0x13b8]
mov word [esi + ecx*2], ax
cmp edi, dword [esi - 8]
jg 0x1005f7bb
xor eax, eax
mov dword [esi - 0xc], edi
inc ebx
mov word [esi + edi*2], ax
lea edi, [eax + 0x1a]
cmp ebx, 5
jne 0x1005f670
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x1005f7cf
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp - 0x13c0]
add eax, 0x10
mov dword [edi], eax
push esi
lea eax, [ebp - 0x13ac]
mov dword [ebp - 0x13c4], 1
push eax
lea ecx, [ebp - 0x13cc]
call fcn.1005c6f0
mov eax, dword [ebp + eax*4 - 0x28]
push eax
push str._s__s
push edi
call fcn.100086f0
add esp, 0x10
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005f787
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push fcn.10007df0
push 5
push 4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0
push eax
call fcn.100c4d78
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c495f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
int3