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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x100ba008]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [0x100c4b7c]
push esi
push edi
test ecx, ecx
je 0x10087e9d
cmp byte [0x100cbbc8], 0
je 0x10087cdf
cmp dword [0x100c4b78], 0x1f
jne 0x100878d7
cmp dword [0x100c4b80], 0
je 0x10087cdf
mov eax, dword [0x100fb028]
mov edx, dword [0x100c4520]
add eax, 0xffffffb3
xor eax, 0x61d6df4e
cmp byte [eax + edx], 0
jbe 0x100878fa
movss xmm4, dword [ecx + 0x130]
jmp 0x10087902
movss xmm4, dword [ecx + 0x12c]
mov eax, dword [0x100faf90]
mulss xmm4, dword [0x100af508]
add eax, 0xffffffd9
xor eax, 0x61d6df28
movss xmm1, dword [eax + edx + 4]
movss xmm0, dword [eax + edx]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10016ed0
comiss xmm4, xmm0
jbe 0x10087a1f
mov eax, dword [0x100c4bcc]
or dword [eax + 0x30], 0x20000
mov ecx, dword [0x100c4bcc]
movss xmm5, dword [ecx + 0x28]
movss xmm6, dword [ecx + 0x24]
movaps xmm0, xmm5
movaps xmm1, xmm6
mulss xmm0, xmm5
mulss xmm1, xmm6
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
comiss xmm0, xmm4
jbe 0x10087e9d
mov eax, dword [0x100faf90]
movss xmm3, dword [0x100af56c]
add eax, 0xffffffd9
xor eax, 0x61d6df28
add eax, dword [0x100c4520]
divss xmm3, xmm0
movss xmm2, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm2, xmm2
cvtps2pd xmm1, xmm4
addss xmm0, xmm2
addsd xmm1, qword [0x100af5a0]
call fcn.10016ed0
cvtss2sd xmm0, xmm0
comisd xmm0, xmm1
jb 0x100879ec
mov dword [ecx + 0x24], 0
mov eax, dword [0x100c4bcc]
mov dword [eax + 0x28], 0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1009c0b6
mov esp, ebp
pop ebp
ret
movaps xmm0, xmm3
mulss xmm3, xmm5
mulss xmm0, xmm6
mulss xmm3, xmm4
mulss xmm0, xmm4
movss dword [ecx + 0x24], xmm0
mov eax, dword [0x100c4bcc]
movss dword [eax + 0x28], xmm3
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1009c0b6
mov esp, ebp
pop ebp
ret
movq xmm0, qword [eax + edx]
mov eax, dword [eax + edx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [0x100c4bcc]
movq qword [esp + 0x20], xmm0
movss xmm1, dword [esp + 0x24]
mulss xmm1, xmm1
movq xmm0, qword [eax + 0xc]
movq qword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
mulss xmm0, xmm0
mov dword [esp + 0x38], eax
addss xmm0, xmm1
call fcn.10016ed0
xorps xmm1, xmm1
movss dword [esp + 0x18], xmm0
comiss xmm0, xmm1
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x14], xmm1
jbe 0x10087ad3
xorps xmm0, xmmword [0x100af850]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fpatan
fstp dword [esp + 0x14]
fld dword [esp + 0x24]
fld dword [esp + 0x20]
fpatan
movss xmm1, dword [esp + 0x14]
mulss xmm1, dword [0x100af670]
fstp dword [esp + 0x14]
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esp + 0x14]
mulss xmm1, dword [0x100af670]
movss dword [esp + 0x14], xmm1
jmp 0x10087af0
comiss xmm0, xmm1
jbe 0x10087ae2
movss xmm0, dword [0x100af784]
jmp 0x10087aea
movss xmm0, dword [0x100af690]
movss dword [esp + 0x18], xmm0
mov ecx, dword [0x100fada8]
lea edx, [esp + 0x30]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
call eax
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x100af4b8]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss xmm1, dword [esp + 0x34]
subss xmm1, dword [esp + 0x14]
movss dword [esp + 0x18], xmm0
mulss xmm1, dword [0x100af4b8]
movaps xmm0, xmm1
call fcn.1009d160
mov ecx, dword [0x10100734]
movaps xmm2, xmm0
shufps xmm2, xmm0, 1
mulss xmm2, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x18]
movaps xmmword [esp + 0x20], xmm2
movss dword [esp + 0x1c], xmm0
test cl, 1
jne 0x10087be8
or ecx, 1
mov dword [0x10100734], ecx
mov eax, dword [0x100fada4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10087bce
nop dword [eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10087b90
xor edx, edx
test ecx, ecx
je 0x10087bbd
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10087ba0
mov eax, dword [esp + 0x18]
cmp esi, 0x7939b3a7
je 0x10087bdb
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10087b80
mov ecx, dword [0x10100734]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [0x1010074c], eax
jmp 0x10087bf1
mov ecx, dword [0x10100734]
mov dword [0x1010074c], eax
jmp 0x10087bf1
mov eax, dword [0x1010074c]
mov dword [esp + 0x18], eax
test cl, 2
jne 0x10087c5f
or ecx, 2
mov dword [0x10100734], ecx
mov eax, dword [0x100fada4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10087c58
nop
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10087c20
xor edx, edx
test ecx, ecx
je 0x10087c4d
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10087c30
mov eax, dword [esp + 0x14]
cmp esi, 0xda6a172f
je 0x10087c5a
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10087c10
xor eax, eax
mov dword [0x10100744], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
mov ecx, dword [0x10100744]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
xorps xmm0, xmmword [0x100af850]
mov eax, dword [ecx]
movss dword [esp + 0x18], xmm0
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
movaps xmm1, xmmword [esp + 0x20]
mov eax, dword [0x100c4bcc]
fmul dword [esp + 0x1c]
mulss xmm1, dword [esp + 0x18]
movss dword [eax + 0x24], xmm1
mov eax, dword [0x100c4bcc]
fstp dword [esp + 0x1c]
movss xmm0, dword [esp + 0x1c]
xorps xmm0, xmmword [0x100af850]
movss dword [eax + 0x28], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1009c0b6
mov esp, ebp
pop ebp
ret
cmp byte [0x100f93ba], 0
je 0x10087e96
mov eax, dword [0x100faf90]
mov ecx, dword [0x100c4520]
add eax, 0xffffffd9
xor eax, 0x61d6df28
movss xmm2, dword [eax + ecx + 4]
movss xmm0, dword [eax + ecx]
movss xmm1, dword [eax + ecx + 8]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10016ed0
comiss xmm0, dword [0x100af62c]
jbe 0x10087e6d
movq xmm0, qword [eax + ecx]
mov esi, dword [0x100c4bcc]
mov eax, dword [eax + ecx + 8]
movq qword [esp + 0x20], xmm0
movss xmm1, dword [esp + 0x24]
movq xmm0, qword [esi + 0xc]
movq qword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x20]
mulss xmm0, xmm0
mov dword [esp + 0x28], eax
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10016ed0
xorps xmm1, xmm1
movss dword [esp + 0x18], xmm0
comiss xmm0, xmm1
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x14], xmm1
jbe 0x10087dde
xorps xmm0, xmmword [0x100af850]
movss dword [esp + 0x1c], xmm0
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fpatan
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fld dword [esp + 0x20]
fpatan
movss xmm1, dword [esp + 0x1c]
mulss xmm1, dword [0x100af670]
fstp dword [esp + 0x1c]
movss xmm2, dword [esp + 0x1c]
mulss xmm2, dword [0x100af670]
movss dword [esp + 0x14], xmm2
jmp 0x10087df5
comiss xmm0, xmm1
jbe 0x10087ded
movss xmm1, dword [0x100af784]
jmp 0x10087df5
movss xmm1, dword [0x100af690]
mulss xmm1, dword [0x100af4b8]
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss xmm1, dword [esp + 0x34]
subss xmm1, dword [esp + 0x14]
movss dword [esp + 0x1c], xmm0
mulss xmm1, dword [0x100af4b8]
movaps xmm0, xmm1
call fcn.1009d160
movaps xmm2, xmm0
movaps xmm1, xmm2
shufps xmm1, xmm2, 1
mulss xmm1, dword [esp + 0x1c]
mulss xmm2, dword [esp + 0x1c]
mulss xmm1, dword [0x100af794]
mulss xmm2, dword [0x100af794]
movss dword [esi + 0x24], xmm1
mov eax, dword [0x100c4bcc]
movss dword [eax + 0x28], xmm2
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1009c0b6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100c4bcc]
mov dword [eax + 0x24], 0
mov eax, dword [0x100c4bcc]
mov dword [eax + 0x28], 0
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1009c0b6
mov esp, ebp
pop ebp
ret
mov byte [0x100f93ba], 0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1009c0b6
mov esp, ebp
pop ebp
ret