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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.100d30e0
mov eax, dword [0x100f8040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1844], ecx
mov ecx, dword [0x104517b8]
mov dword [ebp - 0x1848], eax
push esi
push edi
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x183c], edx
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [ebp - 0x1840], edi
test edi, edi
je 0x10040766
mov ecx, dword [edi]
mov edx, dword [ecx + 0x260]
mov ecx, edi
call edx
test al, al
je 0x10040766
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
cmp eax, 0x40
jg 0x10040766
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
test eax, eax
jle 0x10040766
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10040766
mov eax, dword [0x1045940c]
add eax, 0xffffffd0
xor eax, 0x1f2af58
cmp byte [eax + edi], 0
jne 0x10040766
mov eax, dword [0x1045942c]
add eax, 0xffffffc8
xor eax, 0x1f2af60
cmp dword [eax + edi], 0
jle 0x10040766
mov eax, dword [0x104519f4]
cmp byte [eax + edi], 0
jne 0x10040766
mov edx, dword [0x104593dc]
mov eax, dword [0x1033aeec]
add edx, 0xffffffdc
xor edx, 0x1f2af4c
mov ecx, dword [edx + edi]
cmp ecx, dword [eax + edx]
jne 0x1004004b
mov ecx, dword [0x104518b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x10040766
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x10040766
mov eax, dword [0x1045945c]
add eax, 0xffffffbc
xor eax, 0x1f2af6c
vmovss xmm0, dword [eax + edi]
vucomiss xmm0, dword [0x100ec1d4]
lahf
test ah, 0x44
jp 0x10040766
imul eax, dword [ebp - 0x183c], 0x5990
lea esi, [eax + 0x100f2924]
mov dword [ebp - 0x1834], esi
test esi, esi
je 0x10040766
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10040766
cmp eax, 2
jb 0x10040766
mov edx, dword [esi + 0xc]
mov ecx, edx
mov eax, dword [esi + 8]
and edx, 1
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*8]
cmp byte [eax + 0x3410], 0
jne 0x10040766
mov ecx, dword [0x104517b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov esi, eax
mov dword [ebp - 0x1808], esi
test esi, esi
je 0x10040766
mov ecx, dword [0x104596f4]
test cl, 1
jne 0x10040190
or ecx, 1
mov dword [0x104596f4], ecx
mov eax, dword [0x104517b0]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1828], eax
test eax, eax
je 0x10040172
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop
inc ecx
cmp byte [ecx + edi], 0
jne 0x10040130
xor edx, edx
test ecx, ecx
je 0x1004015f
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10040140
cmp esi, 0x8c8dc452
je 0x1004017c
mov eax, dword [ebp - 0x1828]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1828], eax
test eax, eax
jne 0x10040124
mov esi, dword [ebp - 0x1808]
xor ecx, ecx
mov dword [0x104596f8], ecx
jmp 0x10040196
mov ecx, dword [ebp - 0x1828]
mov esi, dword [ebp - 0x1808]
mov dword [0x104596f8], ecx
jmp 0x10040196
mov ecx, dword [0x104596f8]
test ecx, ecx
je 0x100401a3
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
fstp st(0)
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x28]
call eax
mov eax, dword [esi]
fstp st(0)
push 1
mov ecx, esi
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [ebp - 0x1834]
fstp st(0)
mov edi, dword [edx + 0xc]
mov ecx, dword [edx]
mov dword [ebp - 0x1830], ecx
lea esi, [edi + 1]
mov eax, dword [edx + 0xc]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x182c], edi
cmp esi, eax
je 0x10040766
test ecx, ecx
je 0x100401ed
mov ecx, dword [ecx]
jmp 0x100401ef
xor ecx, ecx
mov edx, dword [ecx + 8]
mov eax, esi
shr eax, 1
dec edx
and edx, eax
mov eax, dword [ecx + 4]
mov ecx, esi
and ecx, 1
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx*8]
mov ecx, dword [ebp - 0x1830]
mov dword [ebp - 0x1828], eax
test ecx, ecx
je 0x1004021b
mov ecx, dword [ecx]
jmp 0x1004021d
xor ecx, ecx
mov eax, dword [ecx + 8]
mov edx, edi
dec eax
shr edx, 1
and edx, eax
and edi, 1
cmp dword [0x10451820], 0
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx*4]
mov edi, dword [eax + edi*8]
mov dword [ebp - 0x183c], edi
je 0x10040473
mov ecx, dword [0x104517b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1820], eax
test eax, eax
je 0x10040473
mov ecx, dword [eax]
push 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x1808], ecx
mov ecx, eax
call dword [ebp - 0x1808]
mov ecx, dword [ebp - 0x1820]
fstp dword [ebp - 0x1808]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1820], eax
call dword [ebp - 0x1820]
fadd dword [ebp - 0x1808]
mov ecx, dword [0x10451878]
mov eax, dword [ecx]
fstp dword [ebp - 0x1820]
vmovss xmm0, dword [ebp - 0x1820]
vaddss xmm0, xmm0, dword [0x100ec1d4]
vaddss xmm0, xmm0, dword [0x1033c974]
mov eax, dword [eax + 0x30]
vmovss dword [ebp - 0x1808], xmm0
call eax
vmovss xmm1, dword [ebp - 0x1808]
vxorps xmm2, xmm2, xmm2
vcomiss xmm2, xmm1
fstp dword [ebp - 0x1820]
vmovss xmm0, dword [ebp - 0x1820]
lea ecx, [ebp - 0x1808]
lea eax, [ebp - 0x1820]
cmovbe eax, ecx
lea ecx, [ebp - 0x181c]
vcomiss xmm1, xmm0
vmovss dword [ebp - 0x181c], xmm0
cmovbe ecx, eax
mov eax, dword [0x10451814]
vmovss dword [ebp - 0x1820], xmm2
vmovss xmm0, dword [eax + 0x10]
mov eax, dword [ebp - 0x1828]
vsubss xmm1, xmm0, dword [eax + 0x24]
vmovss xmm0, dword [ecx]
vsubss xmm0, xmm0, xmm1
call fcn.1002e220
vcomiss xmm0, dword [0x100ec228]
ja 0x10040473
cmp dword [0x10451820], 0
je 0x10040473
mov ecx, dword [0x104517b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov dword [ebp - 0x1820], eax
test eax, eax
je 0x10040473
mov ecx, dword [eax]
push 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x181c], ecx
mov ecx, eax
call dword [ebp - 0x181c]
mov ecx, dword [ebp - 0x1820]
fstp dword [ebp - 0x1808]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x181c], eax
call dword [ebp - 0x181c]
fadd dword [ebp - 0x1808]
mov ecx, dword [0x10451878]
mov eax, dword [ecx]
fstp dword [ebp - 0x181c]
vmovss xmm0, dword [ebp - 0x181c]
vaddss xmm0, xmm0, dword [0x100ec1d4]
vaddss xmm0, xmm0, dword [0x1033c974]
mov eax, dword [eax + 0x30]
vmovss dword [ebp - 0x1808], xmm0
call eax
vmovss xmm1, dword [ebp - 0x1808]
vmovss xmm3, dword [edi + 0x24]
vxorps xmm2, xmm2, xmm2
vcomiss xmm2, xmm1
lea eax, [ebp - 0x1808]
lea ecx, [ebp - 0x181c]
cmovbe ecx, eax
mov eax, dword [0x10451814]
fstp dword [ebp - 0x181c]
vmovss xmm0, dword [ebp - 0x181c]
vcomiss xmm1, xmm0
vmovss dword [ebp - 0x181c], xmm2
vmovss xmm2, dword [eax + 0x10]
lea eax, [ebp - 0x1820]
cmovbe eax, ecx
vmovss dword [ebp - 0x1820], xmm0
vsubss xmm1, xmm2, xmm3
vmovss dword [ebp - 0x180c], xmm2
vmovss xmm0, dword [eax]
vsubss xmm0, xmm0, xmm1
vmovss dword [ebp - 0x1838], xmm3
call fcn.1002e220
vcomiss xmm0, dword [0x100ec228]
ja 0x10040473
mov ecx, dword [ebp - 0x1828]
cmp byte [ecx + 0x14], 0
je 0x1004048c
mov edi, dword [ebp - 0x182c]
inc esi
mov ecx, dword [ebp - 0x1830]
inc edi
mov edx, dword [ebp - 0x1834]
jmp 0x100401d1
vmovq xmm0, qword [ecx + 0x34]
vmovss xmm5, dword [edi + 0x406c]
vmovss xmm3, dword [ebp - 0x180c]
vmovss xmm6, dword [ebp - 0x1838]
mov eax, dword [ecx + 0x3c]
vmovss xmm4, dword [0x100ec2a8]
vmovq qword [ebp - 0x1854], xmm0
vmovss xmm0, dword [ecx + 0x24]
vsubss xmm1, xmm3, xmm5
vsubss xmm0, xmm0, xmm6
vdivss xmm0, xmm1, xmm0
vxorps xmm2, xmm2, xmm2
vcomiss xmm2, xmm0
mov dword [ebp - 0x184c], eax
ja 0x100404e3
vcomiss xmm0, xmm4
jbe 0x100404ef
vmovss dword [edi + 0x406c], xmm3
vmovaps xmm5, xmm3
vmovss xmm0, dword [ecx + 0x24]
vsubss xmm0, xmm0, xmm6
vsubss xmm1, xmm3, xmm5
vdivss xmm0, xmm1, xmm0
vcomiss xmm2, xmm0
lea eax, [ebp - 0x180c]
lea ecx, [ebp - 0x1838]
cmovbe ecx, eax
lea eax, [ebp - 0x181c]
vcomiss xmm0, xmm4
vmovss dword [ebp - 0x180c], xmm0
vmovq xmm0, qword [edi + 0x34]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1840]
vmovq qword [ebp - 0x1818], xmm0
vmovss dword [ebp - 0x181c], xmm4
vmovss dword [ebp - 0x1838], xmm2
vmovss xmm3, dword [eax]
vmulss xmm0, xmm3, dword [ebp - 0x1854]
mov eax, dword [edi + 0x3c]
vsubss xmm2, xmm4, xmm3
vmulss xmm1, xmm2, dword [ebp - 0x1818]
vaddss xmm0, xmm1, xmm0
vmulss xmm1, xmm2, dword [ebp - 0x1814]
vmovss dword [ebp - 0x1834], xmm0
vmulss xmm0, xmm3, dword [ebp - 0x1850]
vaddss xmm0, xmm1, xmm0
mov dword [ebp - 0x1810], eax
mov eax, dword [ecx]
vmulss xmm1, xmm2, dword [ebp - 0x1810]
vmovss dword [ebp - 0x1830], xmm0
vmulss xmm0, xmm3, dword [ebp - 0x184c]
mov eax, dword [eax + 0x28]
vaddss xmm0, xmm1, xmm0
vmovss dword [ebp - 0x181c], xmm0
call eax
vmovss xmm0, dword [ebp - 0x1834]
vsubss xmm2, xmm0, dword [eax]
vmovss xmm0, dword [ebp - 0x1830]
vsubss xmm0, xmm0, dword [eax + 4]
vmulss xmm1, xmm0, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
call fcn.1002e260
vmovaps xmm3, xmm0
vmovss xmm0, dword [0x100ec36c]
vcomiss xmm0, xmm3
jb 0x10040646
vmovss xmm2, dword [0x100ec2a8]
vdivss xmm0, xmm3, xmm0
vxorps xmm1, xmm1, xmm1
vcomiss xmm1, xmm0
lea eax, [ebp - 0x1838]
lea ecx, [ebp - 0x1840]
cmovbe ecx, eax
lea eax, [ebp - 0x180c]
vcomiss xmm0, xmm2
vmovss dword [ebp - 0x180c], xmm2
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1844]
vmovss dword [ebp - 0x1840], xmm1
vmovss dword [ebp - 0x1838], xmm0
mov eax, dword [eax]
mov dword [ecx + 0x10], eax
vmovss xmm0, dword [0x100ec334]
vcomiss xmm0, xmm3
jae 0x10040766
push 0x1800
lea eax, [edi + 0x410]
push eax
lea eax, [ebp - 0x1804]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dl, byte [0x102c542c]
lea eax, [ebp - 0x17e8]
vmovss xmm6, dword [ebp - 0x1834]
vmovss xmm7, dword [ebp - 0x1830]
add esp, 0xc
mov dword [ebp - 0x182c], 0x80
lea ecx, [edi + 0x42c]
mov byte [ebp - 0x1821], dl
nop word [eax + eax]
vmovss xmm0, dword [ecx - 0x10]
vmovss xmm1, dword [edi + 0x34]
vmovss xmm2, dword [edi + 0x38]
vmovss xmm3, dword [edi + 0x3c]
vsubss xmm4, xmm0, xmm1
vmovss xmm0, dword [ecx]
vsubss xmm5, xmm0, xmm2
vmovss xmm0, dword [ecx + 0x10]
test dl, dl
mov esi, eax
vsubss xmm0, xmm0, xmm3
mov edx, eax
je 0x100406f3
vaddss xmm0, xmm0, dword [ebp - 0x181c]
vaddss xmm4, xmm4, xmm6
vaddss xmm1, xmm5, xmm7
jmp 0x100406ff
vaddss xmm4, xmm4, xmm1
vaddss xmm1, xmm5, xmm2
vaddss xmm0, xmm0, xmm3
mov edi, 0xfffffff0
add ecx, 0x30
vmovss dword [edi + esi], xmm4
mov edi, dword [ebp - 0x183c]
mov esi, 0x10
vmovss dword [edx], xmm1
mov edx, eax
add eax, 0x30
sub dword [ebp - 0x182c], 1
vmovss dword [edx + esi], xmm0
mov dl, byte [ebp - 0x1821]
jne 0x100406b0
push 0x1800
lea eax, [ebp - 0x1804]
push eax
push dword [ebp - 0x1848]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d1e89
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.100d1e89
mov esp, ebp
pop ebp
ret 8