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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
test eax, eax
jne 0x4151ca
lea eax, [edi + 4]
mov edx, 0x68
nop
mov esi, dword [eax]
mov ecx, dword [eax - 4]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, dword [eax - 4]
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
shr ecx, 1
and edi, 0x9908b0df
xor edi, ecx
xor edi, dword [eax + 0x630]
mov ecx, esi
mov dword [eax + 0x9bc], edi
mov edi, dword [eax + 4]
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
shr ecx, 1
and esi, 0x9908b0df
xor esi, dword [eax + 0x634]
xor esi, ecx
mov dword [eax + 0x9c0], esi
mov esi, dword [eax + 8]
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
shr ecx, 1
and edi, 0x9908b0df
xor edi, dword [eax + 0x638]
xor edi, ecx
mov dword [eax + 0x9c4], edi
mov edi, dword [eax + 0xc]
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
shr ecx, 1
and esi, 0x9908b0df
xor esi, dword [eax + 0x63c]
xor esi, ecx
mov dword [eax + 0x9c8], esi
mov esi, dword [eax + 0x10]
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
and edi, 0x9908b0df
xor edi, dword [eax + 0x640]
shr ecx, 1
xor edi, ecx
mov ecx, dword [eax + 0x14]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
mov dword [eax + 0x9cc], edi
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x644]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x9d0], esi
add eax, 0x18
sub edx, 1
jne 0x415090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x41538f
lea edx, [edi + 0x9c0]
mov esi, 0xe3
mov edi, edi
mov eax, dword [edx + 4]
xor eax, dword [edx]
and eax, 0x7fffffff
xor eax, dword [edx]
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [edx + 0x634]
shr eax, 1
xor ecx, eax
mov dword [edx - 0x9c0], ecx
add edx, 4
sub esi, 1
jne 0x4151e0
lea eax, [edi + 0xd50]
lea ebx, [esi + 0x42]
nop
mov esi, dword [eax]
mov edx, dword [eax - 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, dword [eax - 4]
mov edi, dword [eax + 4]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [eax - 0xd50]
mov edx, edi
mov dword [eax - 0x9c4], ecx
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
mov esi, dword [eax + 8]
and ecx, 0x9908b0df
xor ecx, dword [eax - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [eax - 0x9c0], ecx
mov edx, esi
xor edx, edi
and edx, 0x7fffffff
xor edx, edi
mov edi, dword [eax + 0xc]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [eax - 0xd48]
shr edx, 1
xor ecx, edx
mov dword [eax - 0x9bc], ecx
mov edx, edi
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, dword [eax + 0x10]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [eax - 0xd44]
shr edx, 1
xor ecx, edx
mov dword [eax - 0x9b8], ecx
mov edx, esi
xor edx, edi
and edx, 0x7fffffff
xor edx, edi
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [eax - 0xd40]
shr edx, 1
xor ecx, edx
mov edx, dword [eax + 0x14]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov dword [eax - 0x9b4], ecx
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [eax - 0xd3c]
shr edx, 1
xor ecx, edx
mov dword [eax - 0x9b0], ecx
add eax, 0x18
sub ebx, 1
jne 0x415220
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x137c]
xor eax, dword [ecx]
mov dword [ecx + 0x1380], ebx
and eax, 0x7fffffff
xor eax, dword [ecx + 0x137c]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x630]
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4