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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d451
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x1023eaa4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 4]
mov ecx, 0xd6
lea edi, [ebp - 0x368]
rep movsd dword es:[edi], dword [esi]
cvttss2si esi, dword [0x1030ef2c]
mov ecx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
push 0
mov dword [ebp - 0x398], ecx
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x36c], edi
push dword [0x1030efe0]
mov dword [ebp - 0x380], esi
lea edx, [esi + ecx]
mov ecx, dword [ebp - 0x4c]
sub ecx, esi
mov dword [ebp - 0x388], edx
mov esi, dword [0x1030ef90]
push ecx
push edi
push edx
mov dword [ebp - 0x3a0], esi
mov esi, dword [0x1030ef94]
push eax
mov dword [ebp - 0x378], ecx
mov dword [ebp - 0x39c], esi
call fcn.10033dd0
add esp, 0x18
cmp byte [0x1030ef1c], 0
jne 0x100305f5
mov ecx, dword [0x103101e4]
mov esi, 0x1030eee0
mov eax, dword fs:[0x2c]
mov byte [0x1030ef1c], 1
mov edi, dword [eax + ecx*4]
nop word [eax + eax]
mov eax, dword [0x102f9410]
cmp eax, dword [edi + 4]
jg 0x1003095b
push 0x102f8088
call fcn.1000ac00
fldz
add esp, 4
faddp st(1)
fstp dword [esi]
add esi, 4
cmp esi, 0x1030ef1c
jne 0x100305c0
mov edi, dword [ebp - 0x36c]
mov word [ebp - 0x374], 0xc8c8
mov byte [ebp - 0x372], 0xc8
mov dword [ebp - 0x37c], 0x1030eee0
nop
movd xmm0, dword [ebp - 0x58]
lea eax, [ebp - 0x3a8]
mov esi, dword [ebp - 0x378]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebp - 0x370], xmm0
call fcn.10033fa0
movss xmm1, dword [ebp - 0x370]
add esp, 4
movd xmm0, dword [eax]
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x37c]
divss xmm1, xmm0
addss xmm1, dword [eax]
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x390], xmm0
fld qword [ebp - 0x390]
fld1
call fcn.1006d7f0
push 1
fstp dword [ebp - 0x370]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
movss xmm1, dword [ebp - 0x370]
mulss xmm1, dword [0x10118738]
push 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addss xmm1, dword [0x10118728]
addsd xmm0, qword [eax*8 + 0x101187f0]
movss dword [ebp - 0x384], xmm1
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x101189c8]
mulss xmm1, xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x370]
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [ebp - 0x38c], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
push 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101187f0]
cvtpd2ps xmm1, xmm0
movd xmm0, esi
mulss xmm1, dword [0x101189c8]
cvtdq2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x384]
mulss xmm0, dword [ebp - 0x370]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x370]
mulss xmm0, dword [0x101188f8]
cvttss2si esi, xmm0
cvttss2si edi, xmm1
mov dword [ebp - 0x384], esi
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
movss xmm1, dword [ebp - 0x370]
mulss xmm1, dword [0x101189e4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101187f0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x101189c8]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call fcn.1006aa00
cvtsd2ss xmm0, xmm0
neg esi
andps xmm0, xmmword [0x10118760]
mulss xmm0, dword [0x101189e4]
cvttss2si ecx, xmm0
mov byte [ebp - 0x371], cl
mov ecx, dword [ebp - 0x378]
lea ecx, [esi + ecx]
mov eax, edi
cdq
idiv ecx
mov ecx, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x38c]
mov edi, edx
cdq
add edi, dword [ebp - 0x388]
lea ecx, [esi + ecx]
mov esi, dword [ebp - 0x394]
idiv ecx
push 1
push 0x32
push dword [ebp - 0x384]
add edx, esi
push dword [ebp - 0x374]
push edi
push edx
call fcn.10033ce0
mov eax, dword [ebp - 0x37c]
add esp, 0x18
mov edi, dword [ebp - 0x36c]
add eax, 4
mov dword [ebp - 0x37c], eax
cmp eax, 0x1030ef1c
jl 0x10030610
push 1
push dword [0x1030efe4]
push dword [ebp - 0x378]
push edi
push dword [ebp - 0x388]
push esi
call fcn.10033dd0
push 0
push dword [0x1030efe8]
push dword [ebp - 0x380]
push edi
mov edi, dword [ebp - 0x398]
push edi
push esi
call fcn.10033dd0
mov eax, dword [ebp - 0x36c]
push 1
push dword [0x1030eff0]
push dword [ebp - 0x380]
push eax
push edi
push esi
call fcn.10033dd0
mov eax, dword [ebp - 0x36c]
add esp, 0x48
add eax, 0xfffffffe
push 0
push dword [0x1030efec]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
sub esp, 8
mov ecx, esp
sub esp, 8
cvttss2si eax, xmm0
mov dword [ecx + 4], 2
mov dword [ecx], eax
lea eax, [edi + 0x1e]
movd xmm1, eax
mov ecx, esp
lea eax, [esi + 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
mov dword [ecx], eax
cvttss2si eax, xmm1
mov dword [ecx + 4], eax
call fcn.10033dd0
movd xmm0, dword [ebp - 0x36c]
add esp, 0x18
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x101187e0]
cvttss2si eax, xmm0
movd xmm0, dword [ebp - 0x380]
cvtdq2ps xmm0, xmm0
sub esi, eax
mulss xmm0, dword [0x101187e0]
cvttss2si eax, xmm0
sub edi, eax
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x1003091f
lea ecx, [ebp - 0x268]
push ecx
push dword [0x1030eff4]
push 1
push 1
push eax
push edi
push esi
call fcn.10033e40
add esp, 0x1c
lea eax, [ebp - 0x268]
push eax
push dword [0x1030efec]
push 1
push 1
push dword [ebp - 0x3a0]
push edi
push esi
call fcn.10033e40
add esp, 0x1c
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.1005c76e
mov esp, ebp
pop ebp
ret
push 0x102f9410
call fcn.1005c70a
add esp, 4
cmp dword [0x102f9410], 0xffffffff
jne 0x100305d1
mov dword [ebp - 4], 0
call fcn.1005ba8a
mov dword [0x102f940c], 0xffffffff
mov edx, 1
mov dword [0x102f808c], eax
jmp 0x10030997
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x102f808c], eax
inc edx
cmp edx, 0x270
jb 0x10030997
push 0x102f9410
mov dword [0x102f8088], 0x270
mov dword [ebp - 4], 0xffffffff
call fcn.1005c6b9
add esp, 4
jmp 0x100305d1