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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1b0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x18021d4c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
movzx r12d, r9b
movaps xmm10, xmm2
movaps xmm12, xmm1
movss dword [rsp + 0x50], xmm12
movsxd r15, ecx
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], 8
mov qword [rbp - 0x58], 0xf
movabs r14, 0x4955476b63696c43
mov qword [rbp - 0x70], r14
mov byte [rbp - 0x68], 0
movabs rdi, 0xcbf29ce484222325
mov rcx, rdi
xor edx, edx
movabs r13, 0x100000001b3
movzx eax, byte [rbp + rdx - 0x70]
xor rcx, rax
imul rcx, r13
inc rdx
cmp rdx, 8
jb 0x18007d6f0
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.180123be0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x18007d729
lock inc dword [rax + 8]
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rbx, qword [rcx + 0x20]
mov qword [rsp + 0x78], rbx
lea rcx, [rax + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x1801f5980]
movdqu xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [str.colors_primary3]
movsd qword [rbp - 0x50], xmm0
mov eax, dword [0x1801e3588]
mov dword [rbp - 0x48], eax
movzx eax, word [0x1801e358c]
mov word [rbp - 0x44], ax
movzx eax, byte [0x1801e358e]
mov byte [rbp - 0x42], al
mov byte [rbp - 0x41], 0
lea rdx, [rbp - 0x50]
call fcn.180047110
lea rdx, [rax + 0x28]
lea rcx, [rbp - 0x80]
call fcn.1800868e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x18007d7ae
mov rcx, rbx
call fcn.1800037d0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 8
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x28], 0
mov rcx, rdi
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rdx - 0x30]
xor rcx, rax
imul rcx, r13
inc rdx
cmp rdx, 8
jb 0x18007d7e0
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x80]
call fcn.180123be0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x18007d818
lock inc dword [rax + 8]
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rbx, qword [rcx + 0x20]
mov qword [rsp + 0x78], rbx
lea rcx, [rax + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x1801f5980]
movdqu xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [str.colors_primary1]
movsd qword [rbp - 0x50], xmm0
mov eax, dword [0x1801e35b0]
mov dword [rbp - 0x48], eax
movzx eax, word [0x1801e35b4]
mov word [rbp - 0x44], ax
movzx eax, byte [0x1801e35b6]
mov byte [rbp - 0x42], al
mov byte [rbp - 0x41], 0
lea rdx, [rbp - 0x50]
call fcn.180047110
lea rdx, [rax + 0x28]
lea rcx, [rbp - 0x70]
call fcn.1800868e0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
test rbx, rbx
je 0x18007d89c
mov rcx, rbx
call fcn.1800037d0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 8
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x28], 0
mov rcx, rdi
xor edx, edx
movzx eax, byte [rbp + rdx - 0x30]
xor rcx, rax
imul rcx, r13
inc rdx
cmp rdx, 8
jb 0x18007d8c0
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x70]
call fcn.180123be0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x18007d8f8
lock inc dword [rax + 8]
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rbx, qword [rcx + 0x20]
mov qword [rsp + 0x78], rbx
lea rcx, [rax + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1801f5980]
movdqu xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [str.colors_primary2]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [0x1801e35e0]
mov dword [rbp - 0x68], eax
movzx eax, word [0x1801e35e4]
mov word [rbp - 0x64], ax
movzx eax, byte [0x1801e35e6]
mov byte [rbp - 0x62], al
mov byte [rbp - 0x61], 0
lea rdx, [rbp - 0x70]
call fcn.180047110
lea rdx, [rax + 0x28]
lea rcx, [rbp - 0x50]
call fcn.1800868e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
test rbx, rbx
je 0x18007d97d
mov rcx, rbx
call fcn.1800037d0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [reloc.d2d1.dll_Ordinal_8]
movdqu xmmword [rbp - 0x20], xmm1
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x28], 0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.18011e360
nop
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov r8d, 0x11
lea rdx, str.o_colors_primary3
lea rcx, [rbp - 0x50]
call fcn.18005a6f0
lea rdx, [rbp - 0x50]
lea rcx, [rbx + 0x70]
call fcn.180047110
movss xmm14, dword [rax + 0x28]
mov r8, qword [rbp - 0x38]
cmp r8, 0xf
jbe 0x18007d9fa
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.18005a910
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x18007da09
call fcn.1800037d0
nop
lea rcx, [rbp - 0x30]
call fcn.18005a950
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 8
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x28], 0
mov rcx, rdi
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rbp + rdx - 0x30]
xor rcx, rax
imul rcx, r13
inc rdx
cmp rdx, 8
jb 0x18007da40
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x50]
call fcn.180123be0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x18007da78
lock inc dword [rax + 8]
mov rbx, qword [rcx + 0x18]
mov qword [rbp - 0x70], rbx
mov r14, qword [rcx + 0x20]
mov qword [rbp - 0x68], r14
mov qword [rbp - 8], 0
mov ecx, 0x20
call fcn.18016efa4
mov r8, rax
mov qword [rbp - 0x10], rax
mov qword [rbp], 0x11
mov qword [rbp + 8], 0x1f
movups xmm0, xmmword [str.o_colors_primary1]
movups xmmword [rax], xmm0
movzx ecx, byte [0x1801e35a0]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], 0
mov rcx, rdi
xor edx, edx
nop
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r13
inc rdx
cmp rdx, 0x11
jb 0x18007dad0
mov rax, qword [rbx + 0xa0]
and rax, rcx
add rax, rax
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rcx + rax*8 + 8]
mov r10, qword [rbx + 0x78]
cmp rdx, r10
je 0x18007db4f
mov r9, qword [rcx + rax*8]
nop dword [rax + rax]
lea rcx, [rdx + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x18007db22
mov rcx, qword [rcx]
cmp rax, 0x11
jne 0x18007db44
mov rax, qword [r8]
cmp rax, qword [rcx]
jne 0x18007db44
mov rax, qword [r8 + 8]
cmp rax, qword [rcx + 8]
jne 0x18007db44
movzx eax, byte [r8 + 0x10]
cmp al, byte [rcx + 0x10]
je 0x18007db51
cmp rdx, r9
je 0x18007db4f
mov rdx, qword [rdx + 8]
jmp 0x18007db10
xor edx, edx
test rdx, rdx
je 0x18007db61
cmp rdx, r10
je 0x18007db61
mov rax, qword [rdx + 0x30]
jmp 0x18007db63
xor eax, eax
movss xmm8, dword [rax + 0x28]
mov edx, 0x20
mov rcx, r8
call fcn.18016ee40
nop
test r14, r14
je 0x18007dbaf
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x18007dbaf
mov rbx, qword [rbp - 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x18007dbaf
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.d2d1.dll_Ordinal_8]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 8
mov qword [rbp - 0x18], 0xf
movabs rax, 0x4955476b63696c43
mov qword [rbp - 0x30], rax
mov byte [rbp - 0x28], 0
mov rcx, rdi
xor edx, edx
nop dword [rax]
movzx eax, byte [rbp + rdx - 0x30]
xor rcx, rax
imul rcx, r13
inc rdx
cmp rdx, 8
jb 0x18007dbe0
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x50]
call fcn.180123be0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x18007dc18
lock inc dword [rax + 8]
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x70], rax
mov rsi, qword [rcx + 0x20]
mov qword [rbp - 0x68], rsi
lea r14, [rax + 0x70]
mov qword [rbp - 8], 0
mov ecx, 0x20
call fcn.18016efa4
mov rbx, rax
mov qword [rbp - 0x10], rax
mov qword [rbp], 0x11
mov qword [rbp + 8], 0x1f
movups xmm0, xmmword [str.o_colors_primary2]
movups xmmword [rax], xmm0
movzx ecx, byte [0x1801e3610]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], 0
xor ecx, ecx
nop
movzx eax, byte [rbx + rcx]
xor rdi, rax
imul rdi, r13
inc rcx
cmp rcx, 0x11
jb 0x18007dc70
mov r9, rdi
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.18004d780
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18007dcac
cmp rcx, qword [r14 + 8]
je 0x18007dcac
mov rax, qword [rcx + 0x30]
jmp 0x18007dcae
xor eax, eax
movss xmm0, dword [rax + 0x28]
movss dword [rsp + 0x48], xmm0
mov edx, 0x20
mov rcx, rbx
call fcn.18016ee40
nop
test rsi, rsi
je 0x18007dcd5
mov rcx, rsi
call fcn.1800037d0
nop
movzx esi, byte [0x18026fe5c]
test sil, sil
je 0x18007dd54
xor edx, edx
mov dword [rsp + 0x40], edx
mov r8d, dword [0x18026fe78]
lea eax, [r8 + 1]
test eax, eax
jle 0x18007dd54
xor ecx, ecx
xor r9d, r9d
lea rbx, [0x180233c88]
movsxd rax, ecx
imul rcx, rax, 0x68
cmp byte [rcx + rbx], 0
je 0x18007dd3a
cmp r9d, dword [0x18026fe60]
jg 0x18007dd3a
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x50]
call fcn.18005f6f0
mov rcx, qword [rax]
addss xmm10, dword [rcx + 0x14]
mov r8d, dword [0x18026fe78]
mov edx, dword [rsp + 0x40]
inc edx
mov ecx, edx
mov dword [rsp + 0x40], edx
mov r9d, edx
lea eax, [r8 + 1]
cmp edx, eax
jl 0x18007dd02
movzx esi, byte [0x18026fe5c]
mov qword [rbp], 6
mov qword [rbp + 8], 0xf
mov ecx, dword [str.height]
movzx eax, word [0x1801e2d50]
mov byte [rbp - 0xa], 0
movss xmm7, dword [0x180227fcc]
cmp ecx, 0x67696568
jne 0x18007dd9a
cmp ax, 0x7468
jne 0x18007dd9a
movaps xmm9, xmm7
mulss xmm9, dword [0x1801f53d4]
jmp 0x18007dda1
movss xmm9, dword [rsp + 0x50]
mov qword [rbp], 6
mov qword [rbp + 8], 0xf
mov byte [rbp - 0xa], 0
cmp ecx, 0x67696568
jne 0x18007ddd0
cmp ax, 0x7468
jne 0x18007ddd0
movaps xmm6, xmm7
mulss xmm6, dword [0x1801f539c]
jmp 0x18007ddd6
movss xmm6, dword [rsp + 0x50]
movaps xmm0, xmm6
mulss xmm0, dword [0x1801f54fc]
subss xmm10, xmm0
mulss xmm7, dword [0x1801f571c]
divss xmm7, dword [0x1801f57b4]
test sil, sil
je 0x18007de02
mov byte [0x18026fe5c], 0
mov rbx, r15
shl rbx, 4
movss xmm3, dword [0x18021e1c0]
movss xmm11, dword [0x1801f5400]
mov rax, qword [0x18027a260]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
mulss xmm3, xmm11
test r12b, r12b
je 0x18007de54
movss xmm0, dword [rbp - 0x80]
movss dword [rbp - 0x70], xmm0
movss xmm1, dword [rbp - 0x7c]
movss xmm0, dword [rbp - 0x78]
movss dword [rbp - 0x64], xmm8
jmp 0x18007de71
movss xmm0, dword [rsp + 0x60]
movss dword [rbp - 0x70], xmm0
movss xmm1, dword [rsp + 0x64]
movss xmm0, dword [rsp + 0x68]
movss dword [rbp - 0x64], xmm14
movss dword [rbp - 0x68], xmm0
movups xmm0, xmmword [rbx + rax]
movss dword [rbp - 0x6c], xmm1
movaps xmmword [rsp + 0x60], xmm0
call fcn.180086570
movups xmm1, xmmword [rax]
mov rax, qword [0x18027a260]
movups xmmword [rax + rbx], xmm1
cmp byte [rbp + 0x110], 0
je 0x18007dea9
lea rax, [0x18026fe68]
jmp 0x18007deb3
mov rax, qword [0x18027a260]
add rax, rbx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x38], 0xf0
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm6
movaps xmm3, xmm9
lea r8, [rsp + 0x60]
movaps xmm1, xmm10
movaps xmm0, xmm12
call fcn.180080ef0
movaps xmm8, xmm6
mulss xmm8, dword [0x1801f5530]
movaps xmm14, xmm8
mulss xmm14, dword [0x1801f5474]
movaps xmm15, xmm8
mulss xmm15, dword [0x1801f5430]
movss xmm12, dword [0x180227fcc]
mulss xmm12, dword [0x1801f5700]
divss xmm12, dword [0x1801f57b4]
movss xmm2, dword [0x18021e1c0]
mov rax, qword [0x18027a230]
lea rdx, [rsp + 0x40]
mulss xmm2, dword [0x1801f5494]
lea rcx, [rax + r15*4]
test r12b, r12b
je 0x18007df7a
movaps xmm7, xmm8
mulss xmm7, dword [0x1801f55d8]
movss dword [rsp + 0x40], xmm7
call fcn.18008e240
mov rax, qword [0x18027a230]
movss xmm2, dword [rax + r15*4]
comiss xmm2, xmm7
jbe 0x18007df9b
movaps xmm2, xmm7
jmp 0x18007df9b
movaps xmm0, xmm8
mulss xmm0, xmm11
movss dword [rsp + 0x40], xmm0
call fcn.18008e240
mov rax, qword [0x18027a230]
movss xmm2, dword [rax + r15*4]
movss xmm0, dword [rsp + 0x70]
movss dword [rbp - 0x70], xmm0
movss xmm1, dword [rsp + 0x74]
movss dword [rbp - 0x6c], xmm1
movss xmm0, dword [rsp + 0x78]
movss dword [rbp - 0x68], xmm0
movss xmm1, dword [rsp + 0x48]
movss dword [rbp - 0x64], xmm1
movaps xmm1, xmm10
addss xmm1, xmm14
movss xmm11, dword [rsp + 0x50]
movaps xmm0, xmm11
addss xmm0, xmm15
addss xmm0, xmm2
mov dword [rsp + 0x38], 0xf0
movss dword [rsp + 0x28], xmm12
movss dword [rsp + 0x20], xmm8
movaps xmm3, xmm8
lea r8, [rbp - 0x70]
call fcn.180080ef0
test sil, sil
je 0x18007e013
mov byte [0x18026fe5c], 1
cmp byte [0x18026fe55], 0
je 0x18007e025
addss xmm10, dword [0x18026fe58]
movss xmm0, dword [0x180227fc0]
comiss xmm0, xmm11
jb 0x18007e085
addss xmm11, xmm9
comiss xmm11, xmm0
jb 0x18007e085
movss xmm0, dword [0x180227fc4]
comiss xmm0, xmm10
jb 0x18007e085
addss xmm6, xmm10
comiss xmm6, xmm0
jb 0x18007e085
cmp dword [0x18026fe50], 1
jne 0x18007e085
cmp byte [0x18026fe54], 0
jne 0x18007e085
cmp dword [0x18026fe64], 0
je 0x18007e077
cmp r15d, 0x7b
jne 0x18007e085
mov dword [0x18026fe50], 0
mov al, 1
jmp 0x18007e087
xor al, al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.18016e810
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm14, xmmword [r11 - 0x80]
movaps xmm15, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret