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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6571d4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x9e8
mov eax, dword [0x6d5ec0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov eax, dword [0x6ee87c]
mov dword [ebp - 0x1c], edi
cmp eax, dword [edi + 4]
jle 0x41373a
push 0x6ee87c
call fcn.0061eb97
add esp, 4
cmp dword [0x6ee87c], 0xffffffff
jne 0x41373a
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [0x6ee86c], xmm0
mov dword [0x6ee874], 0
call fcn.0060d76c
mov dword [ebp - 0x38], eax
call fcn.0060d76c
mov dword [ebp - 0x34], eax
call fcn.0060d76c
mov dword [ebp - 0x30], eax
call fcn.0060d76c
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x38]
xor eax, eax
mov dword [0x6ee86c], 0
xor edx, edx
mov dword [0x6ee870], eax
lea ecx, [ebp - 0x28]
mov dword [0x6ee874], edx
mov byte [ebp - 4], 2
cmp edi, ecx
je 0x413720
mov esi, ecx
nop
mov ecx, dword [edi]
mov dword [ebp - 0x18], ecx
cmp eax, edx
je 0x4136fa
mov dword [eax], ecx
mov eax, dword [0x6ee870]
add eax, 4
mov dword [0x6ee870], eax
jmp 0x41370e
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, 0x6ee86c
call fcn.00471fb0
mov eax, dword [0x6ee870]
add edi, 4
cmp edi, esi
je 0x41371d
mov edx, dword [0x6ee874]
jmp 0x4136e0
mov esi, dword [ebp - 0x20]
push 0x669bc0
call fcn.0061ef88
push 0x6ee87c
call fcn.0061eb46
mov edi, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [0x6ed488]
cmp eax, dword [edi + 4]
jle 0x41381b
push 0x6ed488
call fcn.0061eb97
add esp, 4
cmp dword [0x6ed488], 0xffffffff
jne 0x41381b
mov dword [0x6ee83c], 0xffffffff
mov edx, 0x1571
mov dword [0x6ed4bc], 0x1571
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ecx*4 + 0x6ed4bc], edx
inc ecx
cmp ecx, 0x270
jb 0x413783
lea eax, [ebp - 0x38]
mov dword [0x6ed4b8], 0x270
push eax
lea eax, [ebp - 0x9f8]
push eax
call fcn.0047cf20
xor eax, eax
lea edx, [ebp - 0x9f8]
xor ecx, ecx
nop word [eax + eax]
mov edi, dword [edx]
mov dword [ecx*4 + 0x6ed4bc], edi
test ecx, ecx
jne 0x4137e8
mov eax, edi
inc ecx
shr eax, 0x1f
add edx, 4
jmp 0x4137d0
inc ecx
or eax, edi
add edx, 4
cmp ecx, 0x270
jb 0x4137d0
test eax, eax
jne 0x413804
mov dword [0x6ed4bc], 0x80000000
push 0x6ed488
mov dword [0x6ed4b8], 0x270
call fcn.0061eb46
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov edi, 0x10
mov dword [ebp - 0x24], 1
mov ecx, 0x6ed4b8
call fcn.0044bca0
xor edx, edx
mov ecx, 0x3e
div ecx
mov ecx, dword [esi + 0x10]
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov edx, dword [esi + 0x14]
mov byte [ebp - 0x18], al
cmp ecx, edx
jae 0x413895
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x413888
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x18]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x4138a4
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x28]
push 1
call fcn.0045e220
sub edi, 1
jne 0x413853
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061eb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret