Function at 0x413590
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 0x657b54
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x9e8
mov eax, dword [0x6d6ec0]
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 [0x6ef87c]
mov dword [ebp - 0x1c], edi
cmp eax, dword [edi + 4]
jle 0x4136da
push 0x6ef87c
call fcn.0061f507
add esp, 4
cmp dword [0x6ef87c], 0xffffffff
jne 0x4136da
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [0x6ef86c], xmm0
mov dword [0x6ef874], 0
call fcn.0060e0dc
mov dword [ebp - 0x38], eax
call fcn.0060e0dc
mov dword [ebp - 0x34], eax
call fcn.0060e0dc
mov dword [ebp - 0x30], eax
call fcn.0060e0dc
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x38]
xor eax, eax
mov dword [0x6ef86c], 0
xor edx, edx
mov dword [0x6ef870], eax
lea ecx, [ebp - 0x28]
mov dword [0x6ef874], edx
mov byte [ebp - 4], 2
cmp edi, ecx
je 0x4136c0
mov esi, ecx
nop
mov ecx, dword [edi]
mov dword [ebp - 0x18], ecx
cmp eax, edx
je 0x41369a
mov dword [eax], ecx
mov eax, dword [0x6ef870]
add eax, 4
mov dword [0x6ef870], eax
jmp 0x4136ae
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, 0x6ef86c
call fcn.00472840
mov eax, dword [0x6ef870]
add edi, 4
cmp edi, esi
je 0x4136bd
mov edx, dword [0x6ef874]
jmp 0x413680
mov esi, dword [ebp - 0x20]
push 0x66a630
call fcn.0061f8f8
push 0x6ef87c
call fcn.0061f4b6
mov edi, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [0x6ee488]
cmp eax, dword [edi + 4]
jle 0x4137bb
push 0x6ee488
call fcn.0061f507
add esp, 4
cmp dword [0x6ee488], 0xffffffff
jne 0x4137bb
mov dword [0x6ef83c], 0xffffffff
mov edx, 0x1571
mov dword [0x6ee4bc], 0x1571
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ecx*4 + 0x6ee4bc], edx
inc ecx
cmp ecx, 0x270
jb 0x413723
lea eax, [ebp - 0x38]
mov dword [0x6ee4b8], 0x270
push eax
lea eax, [ebp - 0x9f8]
push eax
call fcn.0047d7a0
xor eax, eax
lea edx, [ebp - 0x9f8]
xor ecx, ecx
nop word [eax + eax]
mov edi, dword [edx]
mov dword [ecx*4 + 0x6ee4bc], edi
test ecx, ecx
jne 0x413788
mov eax, edi
inc ecx
shr eax, 0x1f
add edx, 4
jmp 0x413770
inc ecx
or eax, edi
add edx, 4
cmp ecx, 0x270
jb 0x413770
test eax, eax
jne 0x4137a4
mov dword [0x6ee4bc], 0x80000000
push 0x6ee488
mov dword [0x6ee4b8], 0x270
call fcn.0061f4b6
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, 0x6ee4b8
call fcn.0044c230
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 0x413835
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x413828
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x18]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x413844
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x28]
push 1
call fcn.0045e9c0
sub edi, 1
jne 0x4137f3
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.0061f478
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret