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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fd5bd
mov eax, dword fs:[0]
push eax
mov eax, 0x13b8
call fcn.100ce850
mov eax, dword [0x1019d128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c0], edx
mov esi, ecx
cmp dword [esi], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13bc], eax
je 0x10034492
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
call fcn.100b8045
mov dword [ebp - 0x28], 0xffffffff
mov edx, 1
mov dword [ebp - 0x13a8], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x13a8], eax
inc edx
cmp edx, 0x270
jb 0x10034260
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x13ac], 0x270
mov esi, dword [eax + 4]
mov ebx, dword [eax]
test ecx, ecx
jle 0x10034362
sub esi, ebx
sar esi, 2
cmp ecx, esi
mov eax, esi
cmovle eax, ecx
mov dword [ebp - 0x13b0], eax
test esi, esi
jle 0x10034362
mov edi, dword [ebp - 0x1c]
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x13b8], 0
lea ecx, [esi - 1]
mov dword [ebp - 0x13b4], eax
test ecx, ecx
je 0x100342f3
lea ecx, [ebp - 0x13ac]
call fcn.100344b0
mov dword [ebp - 0x13b8], eax
or eax, 0xffffffff
mov dword [ebp - 0x13b4], eax
xor edx, edx
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 0x13b8]
div esi
cmp eax, ecx
jb 0x10034318
mov eax, dword [ebp - 0x13b4]
xor edx, edx
div esi
lea eax, [esi - 1]
cmp edx, eax
jne 0x100342c0
mov eax, dword [ebp - 0x13b8]
xor edx, edx
div esi
mov eax, dword [ebp - 0x13b0]
cmp edx, eax
jge 0x10034354
dec eax
mov dword [ebp - 0x13b0], eax
cmp edi, dword [ebp - 0x18]
je 0x10034347
mov eax, dword [ebx]
mov dword [edi], eax
mov edi, dword [ebp - 0x1c]
add edi, 4
mov dword [ebp - 0x1c], edi
jmp 0x10034354
push ebx
push edi
lea ecx, [ebp - 0x20]
call fcn.10034640
mov edi, dword [ebp - 0x1c]
dec esi
add ebx, 4
test esi, esi
jg 0x100342c0
jmp 0x10034365
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp ebx, edi
je 0x1003448a
mov edx, dword [ebx]
mov dword [ebp - 0x13b4], edx
test edx, edx
je 0x1003448a
mov eax, dword [ebp - 0x13bc]
add edx, 0x28
mov dword [ebp - 0x13b0], edx
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, esi
sub eax, ecx
push eax
movzx eax, byte [edx]
push eax
push ecx
call fcn.100cfa00
add esp, 0xc
mov ecx, esi
test eax, eax
cmovne ecx, eax
cmp ecx, esi
jne 0x1003447f
mov esi, dword [ebp - 0x13c0]
cmp esi, 0x64
jge 0x10034445
call fcn.100b8045
mov dword [ebp - 0x28], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x13a8], eax
nop dword [eax + eax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [ebp + ecx*4 - 0x13a8], eax
inc ecx
cmp ecx, 0x270
jb 0x100343e0
mov dword [ebp - 0x13ac], 0x270
nop dword [eax]
lea ecx, [ebp - 0x13ac]
call fcn.100344b0
mov ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
cmp edx, 0x28f5c28
jae 0x10034410
mov eax, ecx
xor edx, edx
mov ecx, 0x64
div ecx
mov eax, 0x63
sub eax, edx
cmp eax, esi
jbe 0x1003447f
push 0
push dword [ebp + 8]
push dword [ebp - 0x13b4]
call dword [0x101a1718]
mov edx, dword [ebp - 0x13bc]
add esp, 0xc
mov eax, dword [ebp - 0x13b0]
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 8]
je 0x10034476
mov al, byte [eax]
mov byte [ecx], al
inc dword [edx + 4]
jmp 0x1003447f
push eax
push ecx
mov ecx, edx
call fcn.1002add0
add ebx, 4
cmp ebx, edi
jne 0x10034370
lea ecx, [ebp - 0x20]
call fcn.10007f50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret