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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee286
mov eax, dword fs:[0]
push eax
mov eax, 0x13b4
call fcn.10006520
mov eax, dword [0x1013d0b0]
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 - 0x139c], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13a8], eax
mov dword [ebp - 0x13b4], 0
mov dword [ebp - 0x13a0], edi
mov dword [ebp - 0x13b0], edi
mov dword [ebp - 0x13ac], edi
mov dword [ebp - 4], edi
cmp dword [eax + 4], edi
je 0x10097ed0
mov edx, dword [eax + 8]
xor ecx, ecx
test edx, edx
je 0x10097dd6
mov eax, dword [eax]
mov esi, dword [eax]
test esi, esi
jne 0x10097de0
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10097dc8
xor esi, esi
test esi, esi
je 0x10097ed0
mov ebx, dword [ebp - 0x13a8]
mov edx, esi
mov dword [ebp - 0x13a8], edx
test esi, esi
je 0x10097e25
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x10097e23
mov eax, dword [esi + 0x18]
xor edx, edx
mov edi, dword [ebx + 8]
div edi
inc edx
cmp edx, edi
jae 0x10097e17
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x10097e04
mov edi, dword [ebp - 0x13a0]
mov edx, dword [ebp - 0x13a8]
mov esi, ecx
mov eax, dword [edx + 8]
cmp dword [eax - 0xc], 0
je 0x10097ec2
cmp dword [edx + 0x10], 2
je 0x10097ec2
lea eax, [edx + 4]
mov dword [ebp - 0x13a0], eax
cmp dword [ebp - 0x13ac], edi
je 0x10097ea9
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x13a4], edi
push eax
call fcn.10004440
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x13a0]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.10004440
mov ecx, dword [ebp - 0x13a0]
add eax, 0x10
mov dword [edi + 4], eax
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [ebp - 0x13b0]
add edi, 0x10
mov dword [ebp - 0x13b0], edi
jmp 0x10097ebc
push eax
push edi
lea ecx, [ebp - 0x13b4]
call fcn.10094650
mov edi, dword [ebp - 0x13b0]
mov dword [ebp - 0x13a0], edi
test esi, esi
jne 0x10097de6
mov ebx, dword [ebp - 0x139c]
call fcn.100bfa7b
mov dword [ebp - 0x14], 0xffffffff
mov edx, 1
mov dword [ebp - 0x1394], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x1394], eax
inc edx
cmp edx, 0x270
jl 0x10097ee7
lea eax, [ebp - 0x1398]
mov dword [ebp - 0x1398], 0x270
mov dword [ebp - 0x13c0], eax
lea eax, [ebp - 0x13c0]
push eax
push dword [ebp - 0x13b0]
mov dword [ebp - 0x13bc], 0x20
push dword [ebp - 0x13b4]
mov dword [ebp - 0x13b8], 0xffffffff
call fcn.100948e0
mov eax, dword [ebp - 0x13b0]
xor edx, edx
sub eax, dword [ebp - 0x13b4]
add esp, 0xc
mov dword [ebp - 0x139c], edx
test eax, 0xfffffff0
jle 0x1009812e
xor esi, esi
mov dword [ebp - 0x13a0], esi
mov ecx, dword [ebp - 0x13b4]
add ecx, esi
cmp dword [ecx + 8], 1
jne 0x1009803b
mov eax, dword [ebx]
mov dword [ebp - 0x13a8], eax
mov edx, dword [eax - 0xc]
test edx, edx
je 0x10097fb5
cmp dword [ebx + 4], 1
je 0x10098101
test edx, edx
je 0x10097fb5
cmp dword [ebx + 4], 0
jne 0x10098035
cmp dword [ecx + 0xc], 1
jne 0x10098035
mov ecx, dword [ecx + 4]
lea edi, [eax - 0x10]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x10098027
cmp dword [edi + 0xc], 0
jl 0x1009801c
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x1009801c
push edx
call fcn.10004440
add esp, 4
mov dword [ebp - 0x13a4], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10098015
mov edi, dword [edi]
mov ecx, dword [ebp - 0x13a8]
add ecx, 0xfffffff0
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x13a0]
mov eax, dword [ebp - 0x13a4]
add eax, 0x10
mov dword [ebx], eax
jmp 0x10098027
push dword [ecx - 0xc]
push ecx
mov ecx, ebx
call fcn.10003530
mov ecx, dword [ebp - 0x13b4]
add ecx, esi
mov eax, dword [ecx + 0xc]
mov dword [ebx + 4], eax
mov edx, dword [ebp - 0x139c]
cmp dword [ecx + 8], 0
jne 0x10098107
mov eax, dword [ebx + 8]
mov dword [ebp - 0x13a8], eax
cmp dword [eax - 0xc], 0
je 0x10098072
mov edi, dword [ebx + 0xc]
cmp edi, 1
je 0x10098101
test edi, edi
jne 0x10098101
cmp dword [ecx + 0xc], 1
jne 0x10098101
mov ecx, dword [ecx + 4]
lea edi, [ecx - 0x10]
mov dword [ebp - 0x13a4], edi
lea edi, [eax - 0x10]
lea eax, [ecx - 0x10]
cmp eax, edi
je 0x100980f4
cmp dword [edi + 0xc], 0
jl 0x100980e8
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x100980e8
push dword [ebp - 0x13a4]
call fcn.10004440
mov dword [ebp - 0x13a4], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100980da
mov edi, dword [edi]
mov ecx, dword [ebp - 0x13a8]
add ecx, 0xfffffff0
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x13a0]
mov eax, dword [ebp - 0x13a4]
add eax, 0x10
mov dword [ebx + 8], eax
jmp 0x100980f4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebx + 8]
call fcn.10003530
mov eax, dword [ebp - 0x13b4]
mov eax, dword [esi + eax + 0xc]
mov dword [ebx + 0xc], eax
mov edx, dword [ebp - 0x139c]
mov eax, dword [ebp - 0x13b0]
inc edx
sub eax, dword [ebp - 0x13b4]
add esi, 0x10
sar eax, 4
mov dword [ebp - 0x139c], edx
mov dword [ebp - 0x13a0], esi
cmp edx, eax
jl 0x10097f72
lea ecx, [ebp - 0x13b4]
call fcn.10094c90
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.100055f3
mov esp, ebp
pop ebp
ret 4