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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rdi, r8
mov rbx, rdx
xor r13d, r13d
mov rcx, qword [0x1802983b0]
movabs r12, 0x7fffffffffffffff
mov rax, r12
sub rax, rcx
cmp rax, 0xa
jb 0x18016fbb1
lea r15, [0x1802983a0]
mov r9, r15
cmp qword [0x1802983b8], 0xf
cmova r9, qword [0x1802983a0]
mov qword [rsp + 0x30], 0xa
lea rax, str.Materials
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.180103fd0
nop
mov r8d, 1
lea rdx, [0x1802579f0]
lea rcx, [rbp - 0x80]
call fcn.1800ae730
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], r13b
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18016f4cb
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1800ae730
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 4
lea rdx, str..vmt
lea rcx, [rbp - 0x60]
call fcn.1800ae730
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.180101820
nop
lea rcx, [rbp - 0x40]
call fcn.1800f1470
movzx esi, al
lea rcx, [rbp - 0x40]
call fcn.1800ffdb0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x18016f5b0
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016f5ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18016fbb7
call fcn.180199c38
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x18016f5fe
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016f5f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18016fbbd
call fcn.180199c38
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18016f64b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016f646
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18016fbc3
call fcn.180199c38
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x80]
call fcn.18009a190
test sil, sil
je 0x18016fb30
mov r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18016f681
mov rdx, qword [rbx]
movabs r9, 0xcbf29ce484222325
mov rcx, r13
test r8, r8
je 0x18016f6b3
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x18016f6a0
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [0x180297a70]
call fcn.18009dcd0
mov rcx, qword [rax + 8]
mov rsi, qword [0x180297a78]
test rcx, rcx
cmovne rsi, rcx
cmp rsi, qword [0x180297a78]
je 0x18016fb30
cmp byte [rsi + 0x58], 0
jne 0x18016fb30
lea rcx, [rsi + 0x38]
cmp rcx, rdi
je 0x18016f70e
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18016f705
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
call fcn.18009a1f0
mov ecx, 0x40
call fcn.180199d60
mov r14, rax
mov qword [rbp + 0x1e0], rax
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18016f72f
mov r8, qword [rbx]
mov edx, 0x80
lea rcx, [rbp + 0x120]
call fcn.1800df350
lea rdx, [rbp + 0x120]
mov rcx, r14
call qword [0x1802925c0]
nop
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18016f75e
mov r8, qword [rdi]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18016f76b
mov rdx, qword [rbx]
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rcx, r14
call qword [0x1802925e8]
lea rax, str.m_pMat_s
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 8
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18016f79e
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rax
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x68], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x80], 1
lea rax, [rsp + 0x60]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.1800b2950
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov rcx, qword [0x180297148]
mov rax, qword [rcx]
mov r8, r14
call qword [rax + 0x240]
mov qword [rbp + 0x1e0], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
lea r8, [rbp + 0x1e0]
lea rdx, [rsp + 0x40]
lea rcx, [0x180297af0]
call fcn.1801704d0
mov rcx, qword [rax]
mov byte [rcx + 0x18], 1
mov rax, qword [rbp + 0x1e0]
mov qword [rsi + 0x30], rax
lea rcx, [rbp - 0x40]
call fcn.18009a190
mov rax, qword [0x1802983b0]
sub r12, rax
cmp r12, 0xa
jb 0x18016fbc9
cmp qword [0x1802983b8], 0xf
cmova r15, qword [0x1802983a0]
mov qword [rsp + 0x30], 0xa
lea rcx, str.Materials
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, r15
lea rcx, [rbp - 0x40]
call fcn.180103fd0
nop
mov r8d, 1
lea rdx, [0x1802579f0]
lea rcx, [rbp - 0x40]
call fcn.1800ae730
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18016f8fe
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1800ae730
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 4
lea rdx, str..vmt
lea rcx, [rsp + 0x60]
call fcn.1800ae730
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x20]
call fcn.1801039a0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rsi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x80]
call fcn.18009a190
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x18016fa06
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016fa01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18016fbcf
call fcn.180199c38
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18016fa56
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016fa51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18016fbd5
call fcn.180199c38
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x40]
call fcn.18009a190
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18016fa7f
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x20]
call fcn.180105230
lea rcx, [rbp - 0x18]
call fcn.180104370
test rax, rax
jne 0x18016faca
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x28], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x10]
and eax, 0x17
mov dword [rbp + rcx - 0x10], eax
and eax, dword [rbp + rcx - 0xc]
jne 0x18016fb5c
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], rsi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.1801038f0
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x24], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x88]
call fcn.18019cdb0
nop
mov rcx, rbx
call fcn.18009a190
nop
mov rcx, rdi
call fcn.18009a190
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x18016fb69
lea rbx, str.ios_base::badbit_set
jmp 0x18016fb7d
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.1800f0580
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xf0]
call fcn.1800f0bc0
lea rdx, [0x18028ae68]
lea rcx, [rbp + 0xf0]
call fcn.18019f12c
nop
call fcn.180072ac0
nop
call fcn.1801afdbc
nop
call fcn.1801afdbc
nop
call fcn.1801afdbc
nop
call fcn.180072ac0
nop
call fcn.1801afdbc
nop
call fcn.1801afdbc
int3