Function at 0x1013cb90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10169ab7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x198
push esi
push edi
mov dword [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [0x1033f488]
sub eax, ecx
cmp eax, 0xa
jb 0x1013d395
cmp dword [0x1033f48c], 0xf
mov eax, 0x1033f478
push 0xa
cmova eax, dword [0x1033f478]
push str.Materials
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0xf4]
call fcn.100dc600
push 1
push 0x10275550
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x7c]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebx + 8]
mov byte [ebp - 4], 3
cmp dword [ebx + 0x1c], 0xf
push dword [ebx + 0x18]
cmova eax, dword [ebx + 8]
push eax
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x50], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x64]
mov dword [eax + 0x14], 0xf
push 4
mov byte [eax], 0
push str..vmt
mov byte [ebp - 4], 4
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
lea edx, [ebp - 0x4c]
mov dword [eax + 0x14], 0xf
lea ecx, [ebp - 0xdc]
mov byte [eax], 0
mov byte [ebp - 4], 5
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
call fcn.100f1df0
add esp, 4
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 6
call fcn.100e6500
lea ecx, [ebp - 0xdc]
mov byte [ebp - 0x11], al
call fcn.100ee280
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x1013cd66
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013cd5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013ce38
push ecx
push edx
call fcn.10160098
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x1013cdb0
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013cda6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013ce38
push ecx
push edx
call fcn.10160098
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 0xf
jbe 0x1013cdf6
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013cdec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013ce38
push ecx
push edx
call fcn.10160098
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1013ce48
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013ce3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013ce3e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
cmp byte [ebp - 0x11], 0
mov edi, dword [ebx + 0x1c]
je 0x1013d30b
cmp edi, 0xf
lea esi, [ebx + 8]
mov edx, 0x811c9dc5
cmova esi, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
jbe 0x1013ce82
nop dword [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebx + 0x18]
jb 0x1013ce70
push edx
lea eax, [ebx + 8]
mov ecx, 0x1033f080
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100966f0
mov esi, dword [0x1033f084]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x1033f084]
je 0x1013d30b
cmp byte [esi + 0x3c], 0
jne 0x1013d30b
lea ecx, [esi + 0x24]
lea eax, [ebx + 0x20]
cmp ecx, eax
je 0x1013ced4
cmp dword [ebx + 0x34], 0xf
push dword [ebx + 0x30]
cmova eax, dword [ebx + 0x20]
push eax
call fcn.100938b0
mov ecx, dword [0x1033eea4]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1013cf05
cmp dword [ebx + 0x1c], 0xf
lea ecx, [ebx + 8]
cmova ecx, dword [ebx + 8]
push ecx
mov ecx, eax
call fcn.1015e2e0
mov edi, eax
jmp 0x1013cf07
xor edi, edi
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x20]
cmp dword [ebx + 0x34], 0xf
lea eax, [ebx + 8]
cmova ecx, dword [ebx + 0x20]
cmp dword [ebx + 0x1c], 0xf
cmova eax, dword [ebx + 8]
sub esp, 8
push ecx
push eax
push edi
call fcn.1015e230
push 8
push str.m_pMat_s
lea edx, [ebx + 8]
lea ecx, [ebp - 0xdc]
call fcn.100e3fd0
add esp, 8
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0xf
jbe 0x1013cf52
mov edx, dword [edx]
mov ecx, dword [0x1033eaa8]
push edi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edx, dword [edi]
call dword [edx + 0x30]
mov eax, dword [0x1033f0c4]
cmp eax, dword [0x1033f0c8]
je 0x1013cf88
mov dword [eax], edi
add dword [0x1033f0c4], 4
jmp 0x1013cf9a
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, 0x1033f0c0
call fcn.1013e260
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc8]
mov dword [esi + 0x20], edi
cmp ecx, 0xf
jbe 0x1013cfdd
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013cfd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013cfd3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
mov ecx, dword [0x1033f488]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xa
jb 0x1013d39a
cmp dword [0x1033f48c], 0xf
mov eax, 0x1033f478
push 0xa
cmova eax, dword [0x1033f478]
push str.Materials
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0xc4]
call fcn.100dc600
push 1
push 0x10275550
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 9
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x9c], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xac]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebx + 8]
mov byte [ebp - 4], 0xa
cmp dword [ebx + 0x1c], 0xf
push dword [ebx + 0x18]
cmova eax, dword [ebx + 8]
push eax
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x80], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x94], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x84], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x94]
mov dword [eax + 0x14], 0xf
push 4
mov byte [eax], 0
push str..vmt
mov byte [ebp - 4], 0xb
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x1a8]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x20], 0xf
cmova eax, dword [ebp - 0x34]
sub esp, 0xc
push eax
call fcn.100f08b0
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1ac], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x1013d1a5
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d19b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013d28f
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x1013d1f2
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d1e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013d28f
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x98]
cmp ecx, 0xf
jbe 0x1013d244
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d23a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013d28f
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xb0]
cmp ecx, 0xf
jbe 0x1013d29f
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d295
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013d295
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
cmp dword [ebx + 0x34], 0xf
lea edx, [ebx + 0x20]
push dword [ebx + 0x30]
cmova edx, dword [ebx + 0x20]
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
call fcn.100f1900
add esp, 4
lea ecx, [ebp - 0x1a4]
call fcn.100f0b30
test eax, eax
jne 0x1013d2fd
push eax
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1a8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1a8]
call fcn.100efc20
mov edi, dword [ebx + 0x1c]
cmp edi, 0xf
jbe 0x1013d338
mov ecx, dword [ebx + 8]
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x1013d32e
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013d370
push edi
push ecx
call fcn.10160098
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0xf
jbe 0x1013d380
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013d376
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013d376
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.1006d780
call fcn.1006d780
int3