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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov eax, 1
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [edi + 0x1390]
dec ecx
shl ax, cl
add ax, ax
dec ax
movzx esi, ax
mov dword [esp + 0x18], esi
cmp dword [edi + 0x1388], ebx
jbe 0x1007f799
mov edx, dword [edi]
cmp edx, 0x270
jne 0x1007f63e
lea edx, [edi + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x1007f600
mov edx, dword [edi]
jmp 0x1007f72a
cmp edx, 0x4e0
jb 0x1007f72e
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x1007f660
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x1007f6b0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
xor edx, edx
mov dword [edi + 0x9c0], eax
mov dword [edi], 0
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + edx*4 + 4]
mov eax, ecx
shr eax, 0xb
inc edx
and eax, dword [edi + 0x1384]
xor ecx, eax
mov dword [edi], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cmp eax, dword [edi + 0x1394]
ja 0x1007f5f0
mov ecx, dword [edi + 0x1390]
and eax, esi
shl bx, cl
mov ecx, dword [esp + 0x14]
or ax, bx
inc ecx
movzx ebx, ax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0x1388]
jb 0x1007f5f0
jmp 0x1007f79b
xor ecx, ecx
lea eax, [esi + esi]
or eax, 1
movzx ebp, ax
mov dword [esp + 0x18], ebp
cmp ecx, dword [edi + 0x138c]
jae 0x1007f958
mov edx, dword [edi]
cmp edx, 0x270
jne 0x1007f803
lea eax, [edi + 8]
mov esi, edx
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x1007f7c3
mov edx, dword [edi]
jmp 0x1007f8ee
cmp edx, 0x4e0
jb 0x1007f8ee
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x1007f820
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x1007f870
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov ebp, dword [esp + 0x18]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
xor edx, edx
mov dword [edi + 0x9c0], eax
mov dword [edi], 0
mov ecx, dword [edi + edx*4 + 4]
mov eax, ecx
shr eax, 0xb
inc edx
and eax, dword [edi + 0x1384]
xor ecx, eax
mov dword [edi], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov esi, ecx
shr esi, 0x12
xor esi, ecx
cmp esi, dword [edi + 0x1398]
ja 0x1007f7b6
mov ecx, dword [edi + 0x1390]
and esi, ebp
mov eax, dword [esp + 0x14]
inc ecx
shl bx, cl
inc eax
or bx, si
mov dword [esp + 0x14], eax
movzx ebx, bx
mov dword [esp + 0x10], ebx
cmp eax, dword [edi + 0x138c]
jb 0x1007f7b6
pop edi
pop esi
pop ebp
mov ax, bx
pop ebx
add esp, 0xc
ret