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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d76b
mov eax, dword fs:[0]
push eax
mov eax, 0x1568
call fcn.10126b60
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x188]
xor esi, esi
mov dword [ebp - 0x1520], edi
push 0xb0
push esi
push eax
mov dword [ebp - 0x1540], edi
mov dword [ebp - 0x1518], esi
call fcn.1014de30
add esp, 0xc
lea ecx, [ebp - 0x188]
push 1
push 3
call fcn.1008eed0
mov dword [ebp - 4], esi
mov dword [ebp - 0x1524], esi
cmp dword [ebp + 0xc], esi
jbe 0x100938ca
nop
call fcn.100a6d8c
mov edx, eax
mov dword [ebp - 0x18c], 0xffffffff
mov dword [ebp - 0x150c], edx
mov eax, 1
nop dword [eax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x150c], edx
inc eax
cmp eax, 0x270
jl 0x10093280
lea ecx, [ebp - 0x1510]
mov dword [ebp - 0x1510], 0x270
call fcn.1008f510
movzx eax, al
push 0xb0
mov dword [ebp - 0x151c], eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.1014de30
add esp, 0xc
mov dword [ebp - 0xd8], 0x101a0d54
mov dword [ebp - 0xc8], 0x101a0d5c
or esi, 8
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x1518], esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1514], esi
mov dword [ebp - 0x70], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x74], 0x50
movlpd qword [ebp - 0xd0], xmm0
call fcn.1006d930
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x34], 0
push 0x20
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x38], eax
call fcn.10093950
cmp dword [ebp - 0x38], 0
mov byte [ebp - 0x30], al
jne 0x10093354
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
and eax, 0x13
or eax, 4
mov dword [ebp - 0x64], eax
and ecx, eax
jne 0x100938fe
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x1520], eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xcc], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xdc], eax
mov eax, dword [ebp - 0xd8]
push 8
mov dword [ebp - 4], 6
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
mov dword [ebp - 0xc0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1012656a
mov edi, eax
add esp, 4
test edi, edi
je 0x10093410
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov byte [ebp - 4], 7
call fcn.100a3c06
add esp, 4
mov dword [edi + 4], eax
jmp 0x10093412
xor edi, edi
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xc0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xb4]
push dword [ebp - 0x151c]
mov byte [ebp - 4], 8
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea ecx, [ebp - 0xc8]
call fcn.1008f150
mov al, byte [ebp - 0x84]
xor edi, edi
or esi, 0x100
mov byte [ebp - 4], 9
mov dword [ebp - 0x18], edi
mov ecx, 0xf
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x1518], esi
test al, 2
jne 0x10093544
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
test edx, edx
je 0x1009353e
mov eax, dword [ebp - 0xb0]
cmp edx, dword [ebp - 0x88]
cmovb edx, dword [ebp - 0x88]
mov ecx, dword [eax]
sub edx, ecx
jmp 0x10093566
mov al, byte [ebp - 0x84]
test al, 4
jne 0x10093576
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax]
test edx, edx
je 0x10093576
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
sub edx, ecx
mov eax, dword [ebp - 0x94]
add edx, dword [eax]
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.10044b60
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1514]
and eax, 0xfffffeff
mov dword [ebp - 4], 8
or eax, 0x80
mov dword [ebp - 0x1514], eax
mov dword [ebp - 0x1518], eax
mov byte [ebp - 4], 0xa
cmp edi, 2
jae 0x100935da
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1560]
push 0x30
push eax
call fcn.1008e7f0
add esp, 0xc
mov ecx, eax
mov esi, dword [ebp - 0x1514]
or esi, 1
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x1514], esi
mov dword [ebp - 0x1518], esi
mov esi, dword [ebp - 0x28]
jmp 0x100936d1
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmp ecx, 0x10
mov dword [ebp - 0x152c], 0
mov dword [ebp - 0x1528], 0
cmovae edx, esi
mov dword [ebp - 0x151c], edx
cmp edi, 0x10
jae 0x1009361e
movups xmm0, xmmword [edx]
mov dword [ebp - 0x1528], 0xf
movups xmmword [ebp - 0x153c], xmm0
jmp 0x100936af
mov eax, edi
mov ecx, SysReAllocString
or eax, 0xf
cmp eax, 0x7fffffff
cmova eax, ecx
mov dword [ebp - 0x1520], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x10093670
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1012656a
add esp, 4
test eax, eax
je 0x10093949
mov edx, dword [ebp - 0x151c]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x10093689
test ecx, ecx
je 0x10093687
push ecx
call fcn.1012656a
mov edx, dword [ebp - 0x151c]
add esp, 4
mov ecx, eax
jmp 0x10093689
xor ecx, ecx
lea eax, [edi + 1]
mov dword [ebp - 0x153c], ecx
push eax
push edx
push ecx
call fcn.1014d330
mov eax, dword [ebp - 0x1520]
add esp, 0xc
mov dword [ebp - 0x1528], eax
mov eax, dword [ebp - 0x1514]
mov dword [ebp - 0x152c], edi
or eax, 2
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x153c]
mov dword [ebp - 0x1514], eax
mov dword [ebp - 0x1518], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x100936dc
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.1008ea90
mov eax, dword [ebp - 0x1514]
add esp, 0xc
mov dword [ebp - 4], 0xb
test al, 2
je 0x10093762
mov edx, dword [ebp - 0x1528]
and eax, 0xfffffffd
mov dword [ebp - 0x1514], eax
cmp edx, 0x10
jb 0x10093747
mov ecx, dword [ebp - 0x153c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10093737
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10093949
push edx
push ecx
call fcn.1012659a
mov eax, dword [ebp - 0x1514]
add esp, 8
mov dword [ebp - 0x152c], 0
mov dword [ebp - 0x1528], 0xf
mov byte [ebp - 0x153c], 0
mov dword [ebp - 4], 0xa
test al, 1
je 0x100937b0
mov edx, dword [ebp - 0x154c]
and eax, 0xfffffffe
mov dword [ebp - 0x1514], eax
cmp edx, 0x10
jb 0x100937b0
mov ecx, dword [ebp - 0x1560]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100937a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10093949
push edx
push ecx
call fcn.1012659a
add esp, 8
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp ecx, 0x10
jb 0x100937e5
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x100937db
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10093949
push ecx
push esi
call fcn.1012659a
add esp, 8
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call fcn.100641a0
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xdc], eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xcc], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xdc], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.100a4443
mov eax, dword [ebp - 0x1524]
add esp, 4
inc eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x1524], eax
cmp eax, dword [ebp + 0xc]
jae 0x100938c4
mov esi, dword [ebp - 0x1514]
jmp 0x10093260
mov edi, dword [ebp - 0x1540]
push edi
lea ecx, [ebp - 0x188]
call fcn.1006fd70
lea ecx, [ebp - 0x188]
call fcn.10065a10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x1009390a
mov esi, str.ios_base::badbit_set
jmp 0x1009391a
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1548]
push 1
push eax
call fcn.1004b000
add esp, 8
lea ecx, [ebp - 0x1574]
push eax
push esi
call fcn.100468a0
push 0x101ce780
lea eax, [ebp - 0x1574]
push eax
call fcn.1014cf09
call fcn.101513dc
int3