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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005ea20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov edi, edx
mov byte [esp + 0x10], cl
je 0x10015d4d
test cl, cl
je 0x10015a52
push 0x2713
push 0x394b
push 0x4980
push 0x44b0
push 1
push 0x26d3
push 0x70a4
push ecx
push 0x6246
lea ecx, [esp + 0x31]
mov byte [esp + 0x31], 0
call fcn.10014d55
add esp, 0x24
jmp 0x10015d6a
push 0x496a
push 0x22d9
push ecx
xor ebx, ebx
mov dword [esp + 0x30], 7
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.10016373
mov eax, dword [0x1039cd58]
xor esi, esi
add esp, 0x14
inc esi
mov edi, 0x270
test al, 1
jne 0x10015ac2
or eax, esi
mov ecx, 0x1571
or dword [0x1039e0f4], 0xffffffff
mov edx, esi
mov dword [0x1039cd58], eax
mov dword [0x1039cd74], ecx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x1039cd74], ecx
inc edx
cmp edx, edi
jl 0x10015aa1
mov dword [0x1039cd70], edi
push 3
lea ecx, [esp + 0x40]
call fcn.1000e794
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x1c], 0x1366
cmp dword [esp + 0x1c], 0x1684
jle 0x10015b2e
mov esi, ebx
mov edi, ebx
mov eax, edi
lea ecx, [esp + 0x48]
and eax, esi
cdq
push edx
push eax
call fcn.10001a94
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10015b01
mov eax, dword [eax]
push eax
call fcn.10045eb3
pop ecx
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.1000efb0
inc edi
cmp edi, 0x1de3
jl 0x10015ae7
inc esi
cmp esi, 0x75eb
jl 0x10015ae5
xor esi, esi
mov edi, 0x270
inc esi
mov dword [esp + 0x20], 0xffffffff
cmp dword [esp + 0x1c], 0x1289
jge 0x10015b4b
push str.fbrwz_gzjgfjgnp_suv_nlf_wbg_pxip
call fcn.10045eb3
pop ecx
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x70], ebx
push eax
push 0x531a
push esi
push 0x57d
push 0x28c4
mov dword [esp + 0x44], 4
lea edx, [esp + 0x54]
mov dword [esp + 0x38], 3
xor cl, cl
push 0x3f5a
call fcn.10014848
add esp, 0x1c
mov dword [esp + 0x14], ebx
jmp 0x10015b9e
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x28], 0x8acc4b7c
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jl 0x10015b8e
push 0x188c
push ecx
push ecx
lea eax, [esp + 0x1a]
mov byte [esp + 0x1a], bl
push 0x2008
push eax
xor dl, dl
call fcn.10014cc0
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov dword [ecx], esi
mov dword [esp + 0x1c], ebx
jmp 0x10015bdf
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x30], 0x6d058a83
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
jl 0x10015bcf
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x20], eax
jne 0x10015c07
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov eax, esi
jmp 0x10015c09
mov eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
inc dword [eax]
cmp dword [eax], 0x14
jle 0x10015bc9
or dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.1000e817
mov dword [esp + 0x1c], ebx
jmp 0x10015c44
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x18], 2
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], esi
jl 0x10015c34
mov dword [esp + 0x18], 0x13
jmp 0x10015c80
push 0x28ba
push 0x319d
push esi
push esi
lea eax, [esp + 0x1f]
mov byte [esp + 0x1f], bl
push eax
push ebx
mov edx, 0x1ae8
mov ecx, 0xb5d
call fcn.1001450d
add esp, 0x18
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x15
jge 0x10015c54
push esi
push 0x74b5
push 0x6370
push ebx
push 0x1007a2a4
push 0x15e6
mov edx, 0x1039cd70
mov dword [esp + 0x30], ebx
mov ecx, 0x47dd
call fcn.10014ec9
mov eax, dword [0x1039cd70]
add esp, 0x18
cmp eax, edi
jne 0x10015cfc
mov edx, 0x1039cd78
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
add edx, 4
cmp edx, 0x1039d738
jl 0x10015cc1
jmp 0x10015d08
cmp eax, 0x4e0
jb 0x10015d0d
call fcn.10016944
mov eax, dword [0x1039cd70]
mov edx, dword [eax*4 + 0x1039cd74]
inc eax
mov dword [0x1039cd70], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x1039e0f4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
jmp 0x10015d6a
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x10015d65
push edi
push ecx
mov edx, esi
call fcn.100144b5
inc dword [esi]
pop ecx
pop ecx
cmp dword [esi], 0xa
jne 0x10015d58
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret