Function at 0x85ba10
Capabilities:
Encode data using xor

Disassembly:
test dword [0xbadc88], 0xfffe0000
jne 0x85ef50
test dword [0xbadc88], 0xfffff800
jne 0x85f220
test dword [0xbadc88], 0xfffffe00
jne 0x85f4b0
test dword [0xbadc88], 0xffffffff
jne 0x85f5f0
call fcn.0085a300
jmp fcn.0085ba10
vmovdqa xmm4, xmmword [0xb5ce20]
vmovdqa xmm3, xmmword [0xb5ce30]
vmovdqa xmm2, xmmword [0xb5ce40]
vmovaps xmm6, xmm0
vpand xmm4, xmm4, xmm0
vmovaps xmm5, xmmword [0xb5ce50]
vmovaps xmm7, xmmword [0xb5ce50]
vpaddd xmm2, xmm2, xmm4
vmovdqa xmm1, xmm0
vpand xmm2, xmm2, xmmword [0xb5ce60]
vpxor xmm5, xmm5, xmm2
vpsrad xmm2, xmm2, 0x17
vpor xmm4, xmm4, xmm5
vpsrad xmm0, xmm0, 0x17
vaddps xmm7, xmm7, xmm4
vsubps xmm4, xmm4, xmmword [0xb5ce50]
vpsubd xmm0, xmm0, xmmword [0xb5ce70]
vmovaps xmm5, xmmword [0xb5ce80]
vmulps xmm5, xmm5, xmm4
vdivps xmm4, xmm4, xmm7
vpaddd xmm0, xmm0, xmm2
vpcmpgtd xmm3, xmm3, xmm1
vpcmpgtd xmm1, xmm1, xmmword [0xb5ce20]
vcvtdq2ps xmm0, xmm0
vmovaps xmm7, xmm4
vmulps xmm4, xmm4, xmm4
vpand xmm3, xmm3, xmm1
vmovaps xmm1, xmm4
vmulps xmm4, xmm4, xmm4
vpmovmskb edx, xmm3
vmovaps xmm3, xmmword [0xb5cea0]
vmovaps xmm2, xmmword [0xb5ceb0]
vmulps xmm3, xmm3, xmm4
vmulps xmm2, xmm2, xmm4
vaddps xmm3, xmm3, xmmword [0xb5cec0]
vmulps xmm3, xmm3, xmm1
vmulps xmm0, xmm0, xmmword [0xb5ce90]
cmp edx, 0xffff
vaddps xmm3, xmm3, xmm2
jne 0x85f03b
vsubps xmm3, xmm3, xmm5
vmulps xmm3, xmm3, xmm7
vaddps xmm3, xmm3, xmm5
vaddps xmm0, xmm0, xmm3
ret
mov eax, esp
sub esp, 0x20
and esp, 0xfffffff0
vpxor xmm7, xmm7, xmm7
vmovdqa xmm0, xmm6
vpcmpeqd xmm0, xmm0, xmmword [0xb5ce30]
vpand xmm0, xmm0, xmmword [0xb5ce30]
vpor xmm7, xmm7, xmm0
vmovdqa xmm0, xmm6
vpand xmm0, xmm0, xmmword [0xb5cef0]
vmovdqa xmm1, xmm0
vpcmpeqd xmm0, xmm0, xmmword [0xb5cf00]
vpand xmm0, xmm0, xmmword [0xb5cee0]
vpor xmm7, xmm7, xmm0
vpcmpgtd xmm1, xmm1, xmmword [0xb5ce30]
vpand xmm1, xmm1, xmm6
vpor xmm7, xmm7, xmm1
vmovdqa xmm0, xmm6
vpaddd xmm0, xmm0, xmmword [0xb5cf10]
vpcmpgtd xmm0, xmm0, xmmword [0xb5cf20]
vpor xmm7, xmm7, xmm0
vmovdqa xmmword [esp], xmm7
vmovdqa xmm0, xmm6
vpaddd xmm0, xmm0, xmmword [0xb5ce30]
vpcmpgtd xmm0, xmm0, xmmword [0xb5ce30]
vmovdqa xmm1, xmm0
vpand xmm1, xmm1, xmmword [0xb5ced0]
vmovdqa xmmword [esp + 0x10], xmm1
vmovdqa xmm1, xmm0
vmovdqa xmm2, xmm6
vorps xmm2, xmm2, xmmword [0xb5ce50]
vsubps xmm2, xmm2, xmmword [0xb5ce50]
vandps xmm0, xmm0, xmm2
vpcmpeqd xmm7, xmm7, xmmword [0xb5cf00]
vpand xmm6, xmm6, xmm7
vpandn xmm7, xmm7, xmmword [0xb5ce50]
vpor xmm7, xmm7, xmm6
vpandn xmm1, xmm1, xmm7
vpor xmm0, xmm0, xmm1
vmovdqa xmm4, xmmword [0xb5ce20]
vmovdqa xmm3, xmmword [0xb5ce30]
vmovdqa xmm2, xmmword [0xb5ce40]
vmovaps xmm6, xmm0
vpand xmm4, xmm4, xmm0
vmovaps xmm5, xmmword [0xb5ce50]
vmovaps xmm7, xmmword [0xb5ce50]
vpaddd xmm2, xmm2, xmm4
vmovdqa xmm1, xmm0
vpand xmm2, xmm2, xmmword [0xb5ce60]
vpxor xmm5, xmm5, xmm2
vpsrad xmm2, xmm2, 0x17
vpor xmm4, xmm4, xmm5
vpsrad xmm0, xmm0, 0x17
vaddps xmm7, xmm7, xmm4
vsubps xmm4, xmm4, xmmword [0xb5ce50]
vpsubd xmm0, xmm0, xmmword [0xb5ce70]
vmovaps xmm5, xmmword [0xb5ce80]
vmulps xmm5, xmm5, xmm4
vdivps xmm4, xmm4, xmm7
vpaddd xmm0, xmm0, xmm2
vpcmpgtd xmm3, xmm3, xmm1
vpcmpgtd xmm1, xmm1, xmmword [0xb5ce20]
vcvtdq2ps xmm0, xmm0
vmovaps xmm7, xmm4
vmulps xmm4, xmm4, xmm4
vpand xmm3, xmm3, xmm1
vmovaps xmm1, xmm4
vmulps xmm4, xmm4, xmm4
vpmovmskb edx, xmm3
vmovaps xmm3, xmmword [0xb5cea0]
vmovaps xmm2, xmmword [0xb5ceb0]
vmulps xmm3, xmm3, xmm4
vmulps xmm2, xmm2, xmm4
vaddps xmm3, xmm3, xmmword [0xb5cec0]
vmulps xmm3, xmm3, xmm1
vmulps xmm0, xmm0, xmmword [0xb5ce90]
cmp edx, 0xffff
vaddps xmm3, xmm3, xmm2
jne 0x85f03b
vsubps xmm3, xmm3, xmm5
vmulps xmm3, xmm3, xmm7
vaddps xmm3, xmm3, xmm5
vaddps xmm0, xmm0, xmm3
vorps xmm0, xmm0, xmmword [esp]
vaddps xmm0, xmm0, xmmword [esp + 0x10]
mov esp, eax
jmp 0x85f03a
movdqa xmm4, xmmword [0xb5cf40]
movdqa xmm3, xmmword [0xb5cf50]
movdqa xmm2, xmmword [0xb5cf60]
movaps xmm6, xmm0
pand xmm4, xmm0
movaps xmm5, xmmword [0xb5cf70]
movaps xmm7, xmmword [0xb5cf70]
paddd xmm2, xmm4
movdqa xmm1, xmm0
pand xmm2, xmmword [0xb5cf80]
pxor xmm5, xmm2
psrad xmm2, 0x17
por xmm4, xmm5
psrad xmm0, 0x17
addps xmm7, xmm4
subps xmm4, xmmword [0xb5cf70]
psubd xmm0, xmmword [0xb5cf90]
movaps xmm5, xmmword [0xb5cfa0]
mulps xmm5, xmm4
divps xmm4, xmm7
paddd xmm0, xmm2
pcmpgtd xmm3, xmm1
pcmpgtd xmm1, xmmword [0xb5cf40]
cvtdq2ps xmm0, xmm0
movaps xmm7, xmm4
mulps xmm4, xmm4
pand xmm3, xmm1
movaps xmm1, xmm4
mulps xmm4, xmm4
pmovmskb edx, xmm3
movaps xmm3, xmmword [0xb5cfc0]
movaps xmm2, xmmword [0xb5cfd0]
mulps xmm3, xmm4
mulps xmm2, xmm4
addps xmm3, xmmword [0xb5cfe0]
mulps xmm3, xmm1
mulps xmm0, xmmword [0xb5cfb0]
cmp edx, 0xffff
addps xmm3, xmm2
jne 0x85f2f2
subps xmm3, xmm5
mulps xmm3, xmm7
addps xmm3, xmm5
addps xmm0, xmm3
ret
mov eax, esp
sub esp, 0x20
and esp, 0xfffffff0
pxor xmm7, xmm7
movdqa xmm0, xmm6
pcmpeqd xmm0, xmmword [0xb5cf50]
pand xmm0, xmmword [0xb5cf50]
por xmm7, xmm0
movdqa xmm0, xmm6
pand xmm0, xmmword [0xb5d010]
movdqa xmm1, xmm0
pcmpeqd xmm0, xmmword [0xb5d020]
pand xmm0, xmmword [0xb5d000]
por xmm7, xmm0
pcmpgtd xmm1, xmmword [0xb5cf50]
pand xmm1, xmm6
por xmm7, xmm1
movdqa xmm0, xmm6
paddd xmm0, xmmword [0xb5d030]
pcmpgtd xmm0, xmmword [0xb5d040]
por xmm7, xmm0
movdqa xmmword [esp], xmm7
movdqa xmm0, xmm6
paddd xmm0, xmmword [0xb5cf50]
pcmpgtd xmm0, xmmword [0xb5cf50]
movdqa xmm1, xmm0
pand xmm1, xmmword [0xb5cff0]
movdqa xmmword [esp + 0x10], xmm1
movdqa xmm1, xmm0
movdqa xmm2, xmm6
orps xmm2, xmmword [0xb5cf70]
subps xmm2, xmmword [0xb5cf70]
andps xmm0, xmm2
pcmpeqd xmm7, xmmword [0xb5d020]
pand xmm6, xmm7
pandn xmm7, xmmword [0xb5cf70]
por xmm7, xmm6
pandn xmm1, xmm7
por xmm0, xmm1
movdqa xmm4, xmmword [0xb5cf40]
movdqa xmm3, xmmword [0xb5cf50]
movdqa xmm2, xmmword [0xb5cf60]
movaps xmm6, xmm0
pand xmm4, xmm0
movaps xmm5, xmmword [0xb5cf70]
movaps xmm7, xmmword [0xb5cf70]
paddd xmm2, xmm4
movdqa xmm1, xmm0
pand xmm2, xmmword [0xb5cf80]
pxor xmm5, xmm2
psrad xmm2, 0x17
por xmm4, xmm5
psrad xmm0, 0x17
addps xmm7, xmm4
subps xmm4, xmmword [0xb5cf70]
psubd xmm0, xmmword [0xb5cf90]
movaps xmm5, xmmword [0xb5cfa0]
mulps xmm5, xmm4
divps xmm4, xmm7
paddd xmm0, xmm2
pcmpgtd xmm3, xmm1
pcmpgtd xmm1, xmmword [0xb5cf40]
cvtdq2ps xmm0, xmm0
movaps xmm7, xmm4
mulps xmm4, xmm4
pand xmm3, xmm1
movaps xmm1, xmm4
mulps xmm4, xmm4
pmovmskb edx, xmm3
movaps xmm3, xmmword [0xb5cfc0]
movaps xmm2, xmmword [0xb5cfd0]
mulps xmm3, xmm4
mulps xmm2, xmm4
addps xmm3, xmmword [0xb5cfe0]
mulps xmm3, xmm1
mulps xmm0, xmmword [0xb5cfb0]
cmp edx, 0xffff
addps xmm3, xmm2
jne 0x85f2f2
subps xmm3, xmm5
mulps xmm3, xmm7
addps xmm3, xmm5
addps xmm0, xmm3
orps xmm0, xmmword [esp]
addps xmm0, xmmword [esp + 0x10]
mov esp, eax
jmp 0x85f2f1
mov eax, esp
sub esp, 0x60
and esp, 0xfffffff0
mov dword [esp + 0x24], eax
movdqa xmm2, xmmword [0xb5d070]
movdqa xmm3, xmmword [0xb5d090]
pand xmm2, xmm0
movdqa xmm1, xmmword [0xb5d080]
movups xmmword [esp], xmm0
paddd xmm3, xmm2
movdqa xmm4, xmmword [0xb5d0b0]
pand xmm3, xmmword [0xb5d0a0]
pcmpgtd xmm4, xmm0
pxor xmm1, xmm3
psrad xmm3, 0x17
por xmm2, xmm1
movdqa xmm1, xmm0
psrad xmm0, 0x17
pcmpgtd xmm1, xmmword [0xb5d0c0]
psubd xmm0, xmmword [0xb5d060]
movdqa xmm7, xmm2
movdqa xmm2, xmm0
paddd xmm2, xmm3
pand xmm4, xmm1
pmovmskb eax, xmm4
movaps xmm3, xmm7
movaps xmm1, xmmword [0xb5d130]
subps xmm3, xmmword [0xb5d140]
movaps xmm0, xmmword [0xb5d100]
addps xmm1, xmm3
movaps xmm4, xmmword [0xb5d0f0]
movaps xmm5, xmm3
divps xmm3, xmm1
cvtdq2ps xmm2, xmm2
movaps xmm1, xmm3
mulps xmm3, xmm3
movaps xmm6, xmmword [0xb5d120]
movaps xmm7, xmm3
mulps xmm3, xmm3
mulps xmm6, xmm2
mulps xmm0, xmm3
cmp eax, 0xffff
mulps xmm4, xmm3
addps xmm0, xmmword [0xb5d0e0]
mulps xmm0, xmm7
addps xmm0, xmm4
mulps xmm2, xmmword [0xb5d110]
movaps xmm3, xmm5
subps xmm5, xmm0
mulps xmm5, xmm1
addps xmm6, xmm3
subps xmm5, xmm6
subps xmm2, xmm5
mulps xmm2, xmmword [0xb5d0d0]
jne 0x85f5b0
movaps xmm0, xmm2
jmp 0x85f5e2
fldlg2
fld dword [esp]
fyl2x
fstp dword [esp]
fldlg2
fld dword [esp + 4]
fyl2x
fstp dword [esp + 4]
fldlg2
fld dword [esp + 8]
fyl2x
fstp dword [esp + 8]
fldlg2
fld dword [esp + 0xc]
fyl2x
fstp dword [esp + 0xc]
movups xmm0, xmmword [esp]
mov esp, dword [esp + 0x24]
ret
mov eax, esp
sub esp, 0x70
and esp, 0xfffffff0
mov dword [esp + 0x34], eax
movlps qword [esp + 0x10], xmm0
movhps qword [esp + 0x18], xmm0
xorps xmm2, xmm2
movq mm4, qword [esp + 0x10]
movq mm5, qword [esp + 0x18]
movq mm7, qword [0xb5d1a0]
movq mm2, mm7
pcmpgtd mm2, mm4
pcmpgtd mm7, mm5
movq mm6, qword [0xb5d180]
movq mm1, mm4
pcmpgtd mm1, mm6
movq mm0, mm5
pcmpgtd mm0, mm6
pand mm2, mm7
pand mm1, mm0
pand mm2, mm1
pmovmskb eax, mm2
movq mm0, mm4
psrad mm0, 0x17
movq mm3, mm5
psrad mm3, 0x17
movq mm1, qword [0xb5d190]
psubd mm0, mm1
psubd mm3, mm1
movq mm1, qword [0xb5d180]
pand mm4, mm1
pand mm5, mm1
movq mm2, qword [0xb5d170]
movq mm1, mm4
paddd mm1, mm2
paddd mm2, mm5
movq mm6, qword [0xb5d160]
pand mm1, mm6
pand mm2, mm6
movq mm6, mm1
psrad mm6, 0x17
paddd mm0, mm6
movq mm6, mm2
psrad mm6, 0x17
paddd mm3, mm6
movq mm6, qword [0xb5d1e0]
pxor mm1, mm6
pxor mm2, mm6
por mm4, mm1
por mm5, mm2
movq qword [esp], mm4
movq qword [esp + 8], mm5
movaps xmm1, xmmword [esp]
movaps xmm0, xmm2
cvtpi2ps xmm0, mm0
cvtpi2ps xmm2, mm3
shufps xmm0, xmm2, 0x44
cmp eax, 0xff
emms
jne 0x85f758
movaps xmm3, xmmword [0xb5d1e0]
subps xmm1, xmm3
movaps xmm2, xmmword [0xb5d210]
movaps xmm4, xmm1
addps xmm4, xmm2
rcpps xmm5, xmm4
mulps xmm4, xmm5
subps xmm2, xmm4
mulps xmm5, xmm1
mulps xmm2, xmm5
movaps xmm7, xmm2
mulps xmm7, xmm2
movaps xmm6, xmm7
mulps xmm6, xmm7
movaps xmm4, xmmword [0xb5d1b0]
mulps xmm4, xmm6
movaps xmm3, xmmword [0xb5d1c0]
mulps xmm3, xmm6
addps xmm4, xmmword [0xb5d1d0]
mulps xmm4, xmm7
addps xmm4, xmm3
movaps xmm3, xmm1
subps xmm3, xmm4
mulps xmm3, xmm2
movaps xmm2, xmmword [0xb5d1f0]
mulps xmm2, xmm0
subps xmm3, xmm2
subps xmm3, xmm1
movaps xmm1, xmmword [0xb5d200]
mulps xmm0, xmm1
subps xmm0, xmm3
mulps xmm0, xmmword [0xb5d220]
jmp 0x85f78b
fldlg2
fld dword [esp + 0x10]
fyl2x
fstp dword [esp]
fldlg2
fld dword [esp + 0x14]
fyl2x
fstp dword [esp + 4]
fldlg2
fld dword [esp + 0x18]
fyl2x
fstp dword [esp + 8]
fldlg2
fld dword [esp + 0x1c]
fyl2x
fstp dword [esp + 0xc]
movaps xmm0, xmmword [esp]
mov esp, dword [esp + 0x34]
ret