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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042433
mov eax, dword fs:[0]
push eax
mov eax, 0x1490
call fcn.1003f530
mov eax, dword [0x1005b034]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x13b0], ebx
mov dword [ebp - 0x13b4], eax
xor edi, edi
mov eax, 0x1004df8f
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x13bc], 0xf
mov dword [ebp - 0x13c0], ebx
mov byte [ebp - 0x13d0], bl
call fcn.10002d20
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.MSVCP100.dll_unsigned_int___cdecl_std::tr1::_Random_device_void_]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x13bc], 0x10
jb 0x1001ffd7
mov ecx, dword [ebp - 0x13d0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x13bc], 0xf
mov dword [ebp - 0x13c0], ebx
mov byte [ebp - 0x13d0], 0
call esi
mov dword [ebp - 0x1398], eax
mov ecx, eax
mov dword [ebp - 0x18], 0xffffffff
mov eax, 1
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul ecx, ecx, 0x6c078965
add ecx, eax
mov dword [ebp + eax*4 - 0x1398], ecx
inc eax
cmp eax, 0x270
jl 0x10020004
lea eax, [ebp - 0x148c]
push eax
mov dword [ebp - 0x139c], 0x270
call fcn.10019010
mov dword [ebp - 4], 2
fld qword [0x10050a68]
fsub qword [0x10050a60]
mov edi, dword [sym.imp.MSVCP100.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov ebx, 4
fadd qword [0x10050a38]
fstp qword [ebp - 0x13ac]
fld1
sub esp, 8
xor eax, eax
fstp qword [esp]
lea ecx, [ebp - 0x139c]
call fcn.10027cb0
fmul qword [ebp - 0x13ac]
add esp, 8
fadd qword [0x10050a60]
fcom qword [0x10050a68]
fnstsw ax
test ah, 1
jne 0x1002009c
fstp st(0)
mov esi, 0xf
jmp 0x100200a3
call fcn.1003f560
mov esi, eax
push 0
lea ecx, [ebp - 0x13e4]
push 2
push ecx
call edi
mov edx, dword [ebp - 0x147c]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xc]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x147c]
push edx
push ecx
call eax
mov ecx, dword [ebp - 0x147c]
mov eax, dword [ecx + 4]
add esp, 0xc
push esi
push 0x1000fca0
lea eax, [ebp + eax - 0x147c]
push 0x1002f160
lea ecx, [ebp - 0x147c]
mov byte [eax + 0x40], 0x30
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
dec ebx
jne 0x10020062
lea edx, [ebp - 0x147c]
push 0x1004feec
push edx
call fcn.10002ad0
fld qword [0x10050a28]
fsub qword [0x10050a60]
mov esi, dword [ebp - 0x139c]
add esp, 8
mov dword [ebp - 0x13a0], 4
fadd qword [0x10050a38]
fstp qword [ebp - 0x13dc]
cmp esi, 0x270
jne 0x10020166
lea eax, [ebp - 0x139c]
call fcn.100291f0
jmp 0x10020179
cmp esi, 0x4e0
jb 0x1002017f
lea esi, [ebp - 0x139c]
call fcn.10029130
mov esi, dword [ebp - 0x139c]
mov eax, dword [ebp + esi*4 - 0x1398]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [ebp - 0x18]
inc esi
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor eax, edx
mov dword [ebp - 0x13a4], eax
fild dword [ebp - 0x13a4]
mov dword [ebp - 0x139c], esi
jns 0x100201cc
fadd qword [0x10050a30]
fdiv qword [ebp - 0x13dc]
fmul qword [ebp - 0x13ac]
fadd qword [0x10050a60]
fcom qword [0x10050a68]
fnstsw ax
test ah, 1
jne 0x100201f4
fstp st(0)
mov ebx, 0xf
jmp 0x100201fb
call fcn.1003f560
mov ebx, eax
push 0
lea eax, [ebp - 0x149c]
push 2
push eax
call edi
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x147c]
mov ecx, dword [ecx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x147c]
push edx
push ecx
call eax
mov ecx, dword [ebp - 0x147c]
mov eax, dword [ecx + 4]
add esp, 0xc
push ebx
push 0x1000fca0
lea eax, [ebp + eax - 0x147c]
push 0x1002f160
lea ecx, [ebp - 0x147c]
mov byte [eax + 0x40], 0x30
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
dec dword [ebp - 0x13a0]
jne 0x10020151
lea edx, [ebp - 0x147c]
push 0x1004feec
push edx
call fcn.10002ad0
add esp, 8
mov dword [ebp - 0x13a0], 4
cmp esi, 0x270
jne 0x100202a5
lea eax, [ebp - 0x139c]
call fcn.100291f0
jmp 0x100202b8
cmp esi, 0x4e0
jb 0x100202be
lea esi, [ebp - 0x139c]
call fcn.10029130
mov esi, dword [ebp - 0x139c]
mov eax, dword [ebp + esi*4 - 0x1398]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [ebp - 0x18]
inc esi
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor eax, edx
mov dword [ebp - 0x13a4], eax
fild dword [ebp - 0x13a4]
mov dword [ebp - 0x139c], esi
jns 0x1002030b
fadd qword [0x10050a30]
fdiv qword [ebp - 0x13dc]
fmul qword [ebp - 0x13ac]
fadd qword [0x10050a60]
fcom qword [0x10050a68]
fnstsw ax
test ah, 1
jne 0x10020333
fstp st(0)
mov ebx, 0xf
jmp 0x1002033a
call fcn.1003f560
mov ebx, eax
push 0
lea eax, [ebp - 0x149c]
push 2
push eax
call edi
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x147c]
mov ecx, dword [ecx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x147c]
push edx
push ecx
call eax
mov ecx, dword [ebp - 0x147c]
mov eax, dword [ecx + 4]
add esp, 0xc
push ebx
push 0x1000fca0
lea eax, [ebp + eax - 0x147c]
push 0x1002f160
lea ecx, [ebp - 0x147c]
mov byte [eax + 0x40], 0x30
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
dec dword [ebp - 0x13a0]
jne 0x10020290
lea edx, [ebp - 0x147c]
push 0x1004feec
push edx
call fcn.10002ad0
add esp, 8
mov dword [ebp - 0x13a0], 4
cmp esi, 0x270
jne 0x100203e4
lea eax, [ebp - 0x139c]
call fcn.100291f0
jmp 0x100203f7
cmp esi, 0x4e0
jb 0x100203fd
lea esi, [ebp - 0x139c]
call fcn.10029130
mov esi, dword [ebp - 0x139c]
mov eax, dword [ebp + esi*4 - 0x1398]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [ebp - 0x18]
inc esi
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor eax, edx
mov dword [ebp - 0x13a4], eax
fild dword [ebp - 0x13a4]
mov dword [ebp - 0x139c], esi
jns 0x1002044a
fadd qword [0x10050a30]
fdiv qword [ebp - 0x13dc]
fmul qword [ebp - 0x13ac]
fadd qword [0x10050a60]
fcom qword [0x10050a68]
fnstsw ax
test ah, 1
jne 0x10020472
fstp st(0)
mov ebx, 0xf
jmp 0x10020479
call fcn.1003f560
mov ebx, eax
push 0
lea eax, [ebp - 0x149c]
push 2
push eax
call edi
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x147c]
mov ecx, dword [ecx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x147c]
push edx
push ecx
call eax
mov ecx, dword [ebp - 0x147c]
mov eax, dword [ecx + 4]
add esp, 0xc
push ebx
push 0x1000fca0
lea eax, [ebp + eax - 0x147c]
push 0x1002f160
lea ecx, [ebp - 0x147c]
mov byte [eax + 0x40], 0x30
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
dec dword [ebp - 0x13a0]
jne 0x100203cf
mov esi, dword [ebp - 0x13b4]
mov ecx, esi
lea eax, [ebp - 0x148c]
call fcn.100190b0
mov eax, dword [ebp - 0x148c]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x142c]
mov dword [ebp - 0x13b0], 1
mov dword [ebp - 0x13a4], edx
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ebx, 3
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x1474]
mov dword [ebp - 0x13a0], edx
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [ebp - 4], 4
test byte [ebp - 0x1434], 1
je 0x1002056a
mov eax, dword [ebp - 0x1464]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x1474]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov ecx, dword [ebp - 0x1460]
mov dword [ecx], 0
mov edx, dword [ebp - 0x1450]
mov dword [edx], 0
mov eax, dword [ebp - 0x1440]
mov dword [eax], 0
and dword [ebp - 0x1434], 0xfffffffe
lea ecx, [ebp - 0x1474]
mov dword [ebp - 0x1438], 0
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1474]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x142c]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, esi
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.1003e6b0
mov esp, ebp
pop ebp
ret