Function at 0x10031970
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 0x101026e5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x101210c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov ecx, dword [0x101cf7cc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x7c], eax
test cl, 1
jne 0x10031a37
or ecx, 1
mov dword [0x101cf7cc], ecx
mov eax, dword [0x101cc800]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10031a30
nop dword [eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x100319f0
xor edx, edx
test ecx, ecx
je 0x10031a20
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10031a00
mov eax, dword [ebp - 0x50]
cmp esi, 0x8cd79213
je 0x10031c9c
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x100319e0
mov ecx, dword [0x101cf7cc]
xor eax, eax
mov dword [0x101cf7c4], eax
test cl, 2
jne 0x10031a9d
or ecx, 2
mov dword [0x101cf7cc], ecx
mov eax, dword [0x101cc800]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10031a96
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop
inc ecx
cmp byte [edi + ecx], 0
jne 0x10031a60
xor edx, edx
test ecx, ecx
je 0x10031a8c
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10031a70
mov eax, dword [ebp - 0x50]
cmp esi, 0x93050cfd
je 0x10031a98
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x10031a54
xor eax, eax
mov dword [0x101cf7c8], eax
mov edi, dword [ebp - 0x7c]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x100324f3
mov ecx, dword [0x101cc83c]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
mov esi, eax
test esi, esi
je 0x100324f3
mov ecx, dword [0x101cca80]
mov eax, dword [esi + 0xb0]
add ecx, 0xffffffc5
xor ecx, 0x5910726a
mov ecx, dword [ecx + edi]
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4]
add edx, esi
je 0x100324f3
mov edi, dword [ebp - 0x58]
mov eax, dword [edi + 0x64848]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
add eax, edx
je 0x100324f3
mov eax, dword [0x101ccadc]
mov esi, dword [ebx + 0xc]
add eax, 0xffffffae
xor eax, 0x59107281
add eax, dword [0x10140e2c]
cmp byte [0x10144e3c], 0
movss xmm0, dword [eax + 4]
movss xmm1, dword [eax]
addss xmm0, xmm0
addss xmm1, xmm1
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, xmm0
je 0x10031ca7
addss xmm1, dword [esi]
addss xmm0, dword [esi + 8]
mulss xmm1, dword [0x10114da0]
movss dword [ebp - 0x68], xmm0
movaps xmm0, xmm1
movss dword [ebp - 0x58], xmm1
call fcn.1002bd40
movss dword [ebp - 0x74], xmm0
movss xmm0, dword [ebp - 0x58]
call fcn.1002bd70
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x50]
addss xmm0, dword [esi + 4]
mulss xmm0, dword [0x10114da0]
movss dword [ebp - 0x50], xmm0
call fcn.1002bd40
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [ebp - 0x50]
call fcn.1002bd70
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x68]
mulss xmm0, dword [0x10114da0]
movss dword [ebp - 0x68], xmm0
call fcn.1002bd40
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x68]
call fcn.1002bd70
movss xmm4, dword [ebp - 0x74]
movaps xmm7, xmm0
movss xmm3, dword [ebp - 0x58]
movaps xmm0, xmm4
movss xmm5, dword [ebp - 0x6c]
movss xmm1, dword [ebp - 0x5c]
movaps xmm6, xmm5
movss xmm2, dword [ebp - 0x70]
mulss xmm0, xmm3
mulss xmm1, xmm7
movss dword [ebp - 0x98], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm4
mulss xmm6, xmm2
movss dword [ebp - 0x9c], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
subss xmm6, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0x5c]
mulss xmm1, xmm2
movss dword [ebp - 0x70], xmm6
movaps xmm6, xmm2
mulss xmm6, xmm3
xorps xmm6, xmmword [0x10116460]
subss xmm6, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
mulss xmm3, xmm7
movss dword [ebp - 0x68], xmm6
movaps xmm6, xmm5
mulss xmm6, xmm7
mulss xmm5, xmm1
addss xmm6, xmm0
mulss xmm7, xmm4
movaps xmm0, xmm4
subss xmm5, xmm3
mulss xmm0, xmm2
movss dword [ebp - 0x74], xmm6
movss dword [ebp - 0x58], xmm7
movss dword [ebp - 0x6c], xmm5
movss dword [ebp - 0x50], xmm0
jmp 0x10031dde
mov ecx, dword [0x101cf7cc]
jmp 0x10031a32
movss xmm0, dword [esi]
mulss xmm0, dword [0x10114da0]
movss dword [ebp - 0x58], xmm0
call fcn.1002bd40
movss dword [ebp - 0x78], xmm0
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0x58]
call fcn.1002bd70
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, dword [0x10114da0]
movss dword [ebp - 0x58], xmm0
call fcn.1002bd40
movss dword [ebp - 0x74], xmm0
movss xmm0, dword [ebp - 0x58]
call fcn.1002bd70
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [esi + 8]
mulss xmm0, dword [0x10114da0]
movss dword [ebp - 0x58], xmm0
call fcn.1002bd40
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x58]
call fcn.1002bd70
movss xmm3, dword [ebp - 0x74]
movaps xmm6, xmm0
movss xmm7, dword [ebp - 0x50]
movaps xmm0, xmm3
movss xmm4, dword [ebp - 0x6c]
movss xmm1, dword [ebp - 0x5c]
movaps xmm5, xmm4
movss xmm2, dword [ebp - 0x70]
mulss xmm0, xmm7
mulss xmm1, xmm6
movss dword [ebp - 0x98], xmm0
movaps xmm0, xmm4
mulss xmm0, xmm7
mulss xmm5, xmm2
movss dword [ebp - 0x9c], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
mulss xmm7, xmm2
subss xmm5, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0x5c]
mulss xmm1, xmm2
movss dword [ebp - 0x70], xmm5
movaps xmm5, xmm2
mulss xmm5, xmm3
movss dword [ebp - 0x50], xmm7
xorps xmm5, xmmword [0x10116460]
subss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm3, xmm6
mulss xmm0, xmm1
movss dword [ebp - 0x68], xmm5
movaps xmm5, xmm4
mulss xmm5, xmm6
mulss xmm6, dword [ebp - 0x78]
mulss xmm4, xmm1
addss xmm5, xmm0
movss dword [ebp - 0x58], xmm6
subss xmm4, xmm3
movss dword [ebp - 0x74], xmm5
movss dword [ebp - 0x6c], xmm4
mov ecx, dword [0x101ccb4c]
mov eax, dword [0x10141158]
add ecx, 0xffffff92
mov dword [ebp - 0x8c], eax
xor ecx, 0x5910729d
mov eax, dword [0x10141154]
movss xmm0, dword [ecx + eax]
xor eax, eax
mov ecx, dword [0x101cf7c4]
mov dword [ebp - 0x80], eax
movss dword [ebp - 0x90], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [0x101cf7c8]
mov dword [ebp - 0x94], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
call edx
mov ecx, dword [0x101cca74]
add ecx, 0xffffffc8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x7c]
xor ecx, 0x59107267
movd xmm1, dword [ecx + eax]
mov ecx, edi
cvtdq2ps xmm1, xmm1
call fcn.1002deb0
mov ecx, edi
movss dword [ebp - 0xa4], xmm0
call fcn.1002df40
movss dword [ebp - 0xa0], xmm0
xor esi, esi
nop dword [eax]
push esi
call dword [0x101cc92c]
mov eax, dword [0x101cc934]
mov dword [esp], 0x3f800000
push ecx
mov dword [ebp - 0x60], eax
mov dword [esp], 0
call dword [ebp - 0x60]
add esp, 8
cmp dword [ebp - 0x8c], 0x1c
fstp dword [ebp - 0x54]
jne 0x10031ee5
movss xmm2, dword [ebp - 0x90]
movss xmm0, dword [0x10114f5c]
comiss xmm0, xmm2
jbe 0x10031ee5
movss xmm1, dword [ebp - 0x54]
mov eax, 3
nop
dec eax
movaps xmm0, xmm1
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm2
ja 0x10031ec0
movss xmm0, dword [0x10114e70]
subss xmm0, xmm1
movss dword [ebp - 0x54], xmm0
cmp dword [ebp - 0x94], 0
je 0x10031ef5
mov dword [ebp - 0x54], 0x3f800000
mov eax, dword [0x101cc934]
sub esp, 8
mov dword [ebp - 0x60], eax
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [ebp - 0x60]
add esp, 8
cmp dword [ebp - 0x78], 0
fstp dword [ebp - 0x60]
je 0x10031f28
movss xmm0, dword [0x10114ed0]
jmp 0x10031f2d
movss xmm0, dword [ebp - 0x60]
mov ecx, dword [0x10141154]
movss dword [ebp - 0x60], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x754]
mov dword [ebp - 0x64], eax
call dword [ebp - 0x64]
fmul dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x60]
fstp dword [ebp - 0x54]
call fcn.1002bd40
mulss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x84], xmm0
movss xmm0, dword [ebp - 0x60]
call fcn.1002bd70
mulss xmm0, dword [ebp - 0x54]
sub esp, 8
mov eax, dword [0x101cc934]
mov dword [ebp - 0x64], eax
mov dword [esp + 4], 0x3f800000
movss dword [ebp - 0x88], xmm0
mov dword [esp], 0
call dword [ebp - 0x64]
add esp, 8
cmp dword [ebp - 0x8c], 0x1c
fstp dword [ebp - 0x54]
jne 0x10031fea
movss xmm2, dword [ebp - 0x90]
movss xmm0, dword [0x10114f5c]
comiss xmm0, xmm2
jbe 0x10031fea
movss xmm1, dword [ebp - 0x54]
mov eax, 3
dec eax
movaps xmm0, xmm1
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm2
ja 0x10031fc5
movss xmm0, dword [0x10114e70]
subss xmm0, xmm1
movss dword [ebp - 0x54], xmm0
cmp dword [ebp - 0x94], 0
je 0x10031ffa
mov dword [ebp - 0x54], 0x3f800000
mov eax, dword [0x101cc934]
sub esp, 8
mov dword [ebp - 0x64], eax
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [ebp - 0x64]
add esp, 8
cmp dword [ebp - 0x78], 0
fstp dword [ebp - 0x64]
je 0x1003202d
movss xmm0, dword [0x10114ed0]
jmp 0x10032032
movss xmm0, dword [ebp - 0x64]
mov ecx, dword [0x10141154]
movss dword [ebp - 0x60], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6dc]
mov dword [ebp - 0x64], eax
call dword [ebp - 0x64]
fmul dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x60]
fstp dword [ebp - 0x54]
call fcn.1002bd40
mulss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x64], xmm0
movss xmm0, dword [ebp - 0x60]
call fcn.1002bd70
movss xmm4, dword [ebp - 0x64]
movaps xmm3, xmm0
addss xmm4, dword [ebp - 0x84]
movss xmm0, dword [ebp - 0x70]
mulss xmm3, dword [ebp - 0x54]
movss xmm1, dword [ebp - 0x68]
movss xmm2, dword [ebp - 0x98]
addss xmm3, dword [ebp - 0x88]
movss xmm7, dword [ebp - 0x74]
mulss xmm0, xmm4
mulss xmm1, xmm4
mulss xmm4, dword [ebp - 0x58]
addss xmm2, xmm0
movss xmm0, dword [ebp - 0x9c]
addss xmm0, xmm1
mulss xmm7, xmm3
movss xmm1, dword [ebp - 0x6c]
addss xmm4, dword [ebp - 0x5c]
mulss xmm1, xmm3
addss xmm7, xmm2
movss xmm2, dword [ebp - 0x50]
mulss xmm2, xmm3
addss xmm1, xmm0
subss xmm2, xmm4
movaps xmm0, xmm1
movss dword [ebp - 0x88], xmm1
mulss xmm0, xmm1
movaps xmm1, xmm7
mulss xmm1, xmm7
movss dword [ebp - 0x84], xmm2
addss xmm0, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.1002bd80
addss xmm0, dword [0x10114d64]
movss xmm6, dword [0x10114e70]
movss xmm1, dword [edi + 0x64834]
subss xmm1, dword [0x10140e38]
movss xmm2, dword [edi + 0x64838]
subss xmm2, dword [0x10140e3c]
divss xmm6, xmm0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
mov eax, dword [0x10140e2c]
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x4c], eax
movss xmm0, dword [ebp - 0xa4]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [ebp - 0xa0]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [edi + 0x6483c]
subss xmm0, dword [0x10140e40]
mulss xmm1, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm0
addss xmm2, xmm1
movaps xmm1, xmm6
mulss xmm1, xmm7
addss xmm0, dword [0x10115050]
movss xmm7, dword [ebp - 0x84]
mulss xmm7, xmm6
addss xmm2, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x88]
mulss xmm1, xmm2
mulss xmm0, xmm2
addss xmm1, dword [0x10140e38]
addss xmm0, dword [0x10140e3c]
mulss xmm7, xmm2
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
movss dword [ebp - 0x44], xmm1
addss xmm7, dword [0x10140e40]
movss dword [ebp - 0x40], xmm0
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 0x18], 0
movss dword [ebp - 0x3c], xmm7
call fcn.100e5640
test al, al
je 0x1003222e
movss xmm0, dword [ebp - 0x20]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1003222e
inc dword [ebp - 0x80]
movss xmm1, dword [0x10115088]
inc esi
mov eax, esi
shr eax, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10115a40]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x10031e70
test byte [0x10140e34], 1
mov edx, dword [0x10141158]
jne 0x10032386
cmp edx, 0x1f
je 0x1003238b
movaps xmm0, xmmword [0x101157e0]
mov eax, 0x10
movss xmm1, dword [0x10145678]
xorps xmm0, xmmword [0x10116140]
movss dword [ebp - 0x5c], xmm1
mov dword [ebp - 0x3c], 0x3474640
mov dword [ebp - 0x38], 0x42034d4a
mov dword [ebp - 0x34], 0x7e03514a
mov byte [ebp - 0x30], 0x23
movups xmmword [ebp - 0x4c], xmm0
xor byte [ebp + eax - 0x4c], 0x23
inc eax
cmp eax, 0x1d
jb 0x100322b3
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100322e0
sub ecx, edx
lea eax, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10035cc0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x6481c]
cmp eax, dword [edi + 0x64820]
je 0x1003232e
movups xmm0, xmmword [ebp - 0x2c]
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
add dword [edi + 0x6481c], 0x18
jmp 0x10032341
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea ecx, [edi + 0x64818]
call fcn.100368a0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x10032379
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003236f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100324c4
push ecx
push edx
call fcn.1010120b
add esp, 8
mov edx, dword [0x10141158]
movss xmm0, dword [ebp - 0x5c]
jmp 0x100323a2
cmp edx, 0x1f
jne 0x10032395
movss xmm0, dword [0x1011502c]
jmp 0x1003239d
movss xmm0, dword [0x101455bc]
movss dword [ebp - 0x5c], xmm0
mov ecx, dword [0x101ccab8]
mov eax, dword [0x10140e2c]
add ecx, 0xffffffb7
xor ecx, 0x59107278
cmp byte [ecx + eax], 0
jne 0x100323ca
test byte [0x10140e34], 1
je 0x100323ca
cmp edx, 0xb
je 0x100323d8
cmp edx, 0x26
je 0x100323d8
cmp edx, 0x28
jne 0x100324d4
mulss xmm0, dword [0x10114e34]
mov eax, 0x10
mov dword [ebp - 0x3c], 0x346534c
mov dword [ebp - 0x38], 0x46575742
mov dword [ebp - 0x34], 0x357534e
movss dword [ebp - 0x5c], xmm0
movaps xmm0, xmmword [0x101157e0]
xorps xmm0, xmmword [0x10115a00]
mov word [ebp - 0x30], 0x237e
movups xmmword [ebp - 0x4c], xmm0
xor byte [ebp + eax - 0x4c], 0x23
inc eax
cmp eax, 0x1e
jb 0x10032417
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032440
sub ecx, edx
lea eax, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10035cc0
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x6481c]
cmp eax, dword [edi + 0x64820]
je 0x1003248e
movups xmm0, xmmword [ebp - 0x2c]
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
add dword [edi + 0x6481c], 0x18
jmp 0x100324a1
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea ecx, [edi + 0x64818]
call fcn.100368a0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x100324d4
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100324ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100324ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010120b
add esp, 8
movd xmm0, dword [ebp - 0x80]
xor eax, eax
movss xmm1, dword [ebp - 0x5c]
mulss xmm1, dword [0x10114f38]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
setae al
jmp 0x100324f6
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10100d90
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8