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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7106
mov eax, dword fs:[0]
push eax
mov eax, 0x13dc
call fcn.100bc390
mov eax, dword [0x10112200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x13a4], ebx
cmp dword [ebx + 0x94], 4
jne 0x10022aee
push 0
push dword [ebx + 0x50]
call fcn.100714f0
push dword [ebx + 0x4c]
call fcn.10071020
add esp, 0xc
mov dword [ebx + 0x94], 5
mov dword [ebx + 0x50], 0
jmp 0x10022df2
lea esi, [ebx + 0x2cc]
push esi
call fcn.100baadf
add esp, 4
test eax, eax
jne 0x10022f54
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x10022f5b
mov edi, dword [ebx + 0x308]
mov eax, dword [ebx + 0x30c]
mov dword [ebp - 0x13a0], edi
cmp edi, eax
je 0x10022bbd
mov esi, eax
nop
cmp dword [ebx + 0x98], 0
mov eax, dword [edi]
je 0x10022b61
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 8]
test edi, edi
je 0x10022b5b
mov ecx, edx
inc edx
movzx eax, byte [ecx]
mov al, byte [eax + ebx + 0x9c]
mov byte [ecx], al
sub edi, 1
jne 0x10022b47
mov edi, dword [ebp - 0x13a0]
mov eax, dword [edi]
push dword [eax]
movzx eax, byte [eax + 0xc]
push eax
push dword [ebx + 0x50]
call fcn.100720f0
mov ecx, dword [edi]
add esp, 0xc
mov dword [ebp - 0x139c], ecx
test ecx, ecx
je 0x10022ba6
mov eax, dword [ecx]
dec dword [eax]
mov eax, dword [ecx]
cmp dword [eax], 0
jne 0x10022b9b
push eax
call fcn.10070370
mov ecx, dword [ebp - 0x139c]
add esp, 4
push 0x10
push ecx
call fcn.100bb2c5
add esp, 8
add edi, 4
mov dword [ebp - 0x13a0], edi
cmp edi, esi
jne 0x10022b30
lea esi, [ebx + 0x2cc]
mov eax, dword [ebx + 0x308]
cmp eax, dword [ebx + 0x30c]
je 0x10022bd1
mov dword [ebx + 0x30c], eax
push esi
call fcn.100baaf0
add esp, 4
lea eax, [ebp - 0x13e4]
push 0xa
push eax
push dword [ebx + 0x4c]
call fcn.10071040
add esp, 0xc
test eax, eax
jle 0x10022df2
mov eax, dword [ebp - 0x13e4]
sub eax, 2
je 0x10022f31
sub eax, 1
je 0x10022c23
sub eax, 1
jne 0x10022df2
push 8
mov ecx, ebx
call fcn.10022f70
xor al, al
jmp 0x10022df4
cmp dword [ebx + 0x94], 2
mov eax, dword [ebp - 0x13d4]
jne 0x10022e10
inc dword [eax]
mov dword [ebp - 0x13c0], eax
mov dword [ebp - 0x13bc], 0xffffffff
mov dword [ebp - 0x13b8], 0
lea eax, [ebp - 0x13a0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x13c0]
mov dword [ebp - 0x13a0], 0xffffffff
call fcn.1001c9a0
cmp dword [ebp - 0x13a0], 0
jne 0x10022dde
lea eax, [ebp - 0x139c]
mov dword [ebp - 0x139c], 0
push eax
lea ecx, [ebp - 0x13c0]
mov dword [ebp - 0x13ac], 0
mov dword [ebp - 0x13a8], 0
mov dword [ebp - 0x13a0], 0
mov dword [ebp - 0x13b0], 0
call fcn.1001c9a0
push ebx
lea ecx, [ebp - 0x13c0]
call fcn.100237b0
lea eax, [ebp - 0x13ac]
push eax
lea ecx, [ebp - 0x13c0]
call fcn.1001c9a0
lea eax, [ebp - 0x13a8]
push eax
lea ecx, [ebp - 0x13c0]
call fcn.1001c9a0
lea eax, [ebp - 0x13a0]
push eax
lea ecx, [ebp - 0x13c0]
call fcn.1001c9a0
lea eax, [ebp - 0x13b0]
push eax
lea ecx, [ebp - 0x13c0]
call fcn.1001c9a0
push dword [ebp - 0x13a0]
push dword [ebp - 0x13a8]
push dword [ebp - 0x13ac]
push dword [ebp - 0x13e0]
call fcn.100724a0
push dword [ebp - 0x13b0]
push dword [ebp - 0x13e0]
call fcn.100718c0
mov edx, dword [ebp - 0x139c]
lea edi, [ebx + 0x19c]
add esp, 0x18
mov dword [ebx + 0x98], edx
lea esi, [ebx + 0x9c]
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1394], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x1394], edx
inc ecx
cmp ecx, 0x270
jb 0x10022d75
mov dword [ebp - 0x1398], 0x270
xor ebx, ebx
lea ecx, [ebp - 0x1398]
call fcn.10023550
xor ecx, ecx
test ebx, ebx
jle 0x10022dbb
cmp byte [ecx + esi], al
je 0x10022da0
inc ecx
cmp ecx, ebx
jl 0x10022db1
mov byte [ebx + esi], al
test edi, edi
je 0x10022dc8
movzx eax, al
mov byte [eax + edi], bl
inc ebx
cmp ebx, 0x100
jl 0x10022da0
mov ecx, dword [ebp - 0x13a4]
push 3
call fcn.10022f70
mov eax, dword [ebp - 0x13c0]
add dword [eax], 0xffffffff
jne 0x10022df2
push eax
call fcn.10070370
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bb287
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x13d0], eax
mov dword [ebp - 0x13cc], 0xffffffff
mov dword [ebp - 0x13c8], 0
inc dword [eax]
mov dword [ebp - 4], 1
cmp dword [ebx + 0x98], 0
mov dword [ebp - 0x139c], 0xffffffff
je 0x10022e6a
mov eax, dword [ebp - 0x13d0]
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 8]
test esi, esi
je 0x10022e6a
mov ecx, edx
inc edx
movzx eax, byte [ecx]
mov al, byte [eax + ebx + 0x19c]
mov byte [ecx], al
sub esi, 1
jne 0x10022e56
lea eax, [ebp - 0x139c]
push eax
lea ecx, [ebp - 0x13d0]
call fcn.1001c9a0
mov ecx, dword [ebp - 0x139c]
mov dword [ebp - 0x13c8], 0
lea eax, [ecx - 0x50]
cmp eax, 6
ja 0x10022eab
push dword [ebx + 0x90]
lea eax, [ebp - 0x13d0]
push eax
mov eax, dword [ebx + 0x58]
call eax
add esp, 8
jmp 0x10022f17
cmp ecx, 0xff
je 0x10022f17
push 0x10
call fcn.100bb295
mov dword [ebp - 0x13a4], eax
add esp, 4
mov ecx, dword [ebp - 0x13d4]
mov dword [ebp - 0x13a4], eax
mov dword [eax], ecx
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0
lea eax, [ebx + 0x29c]
inc dword [ecx]
lea ecx, [ebp - 0x139c]
push eax
call fcn.10023220
lea eax, [ebp - 0x13a4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x2fc]
call fcn.100231e0
push dword [ebp - 0x139c]
call fcn.100baaf0
add esp, 4
mov eax, dword [ebp - 0x13d0]
add dword [eax], 0xffffffff
jne 0x10022df2
push dword [ebp - 0x13d0]
jmp 0x10022dea
cmp dword [ebp - 0x13d8], 1
mov ecx, 9
mov eax, 6
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.10022f70
xor al, al
jmp 0x10022df4
push 5
call fcn.100baa81
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.100baa81
int3