Function at 0x1012acf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2228
call fcn.1019e0f0
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0x2224], eax
mov ecx, dword [0x10227c40]
push esi
push edi
cmp byte [ecx + 0x3654], 0
je 0x101355ab
movss xmm0, dword [ecx + 0x3658]
xorps xmm1, xmm1
mov edx, dword [0x104e2068]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1012ad4e
movss xmm0, dword [ecx + 0x365c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1012ada0
or dword [edx + 0x1c74], 1
mov eax, dword [ecx + 0x3658]
mov ecx, dword [ecx + 0x365c]
mov dword [edx + 0x1c84], eax
mov dword [edx + 0x1c88], ecx
movss dword [edx + 0x1c8c], xmm1
movss dword [edx + 0x1c90], xmm1
mov dword [edx + 0x1c78], 1
mov eax, dword [0x10227c40]
mov dword [eax + 0x3658], 0
mov dword [eax + 0x365c], 0
mov eax, dword [0x10227c4c]
mov ecx, 0xfb
mov esi, 0xc02fb
cmp byte [eax + 0x5c], 0
cmovne esi, ecx
or dword [edx + 0x1c74], 2
mov dword [edx + 0x1c94], 0x43160000
mov dword [edx + 0x1c98], 0
mov dword [edx + 0x1c7c], 2
mov ecx, dword [0x10227c4c]
mov ecx, dword [ecx + 0x40]
call fcn.1015e570
movq xmm0, qword [str.r_BTP_3A]
xor edx, edx
mov al, byte [0x101f739c]
movq qword [esp + 0xf0c], xmm0
mov byte [esp + 0xf14], al
mov dword [esp + 0x24], edx
nop dword [eax]
mov eax, 0x8d3dcb09
mul edx
shr edx, 5
movsx eax, dl
mov edx, dword [esp + 0x24]
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x39
xor byte [esp + edx + 0xf0c], cl
inc edx
mov dword [esp + 0x24], edx
cmp edx, 9
jl 0x1012ae10
lea ecx, [esp + 0x101c]
call fcn.10029b60
lea ecx, [esp + 0xf0c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012ae52
sub ecx, edx
lea eax, [esp + 0xf0c]
push ecx
push eax
lea ecx, [esp + 0x1024]
call fcn.10027bd0
push 0
lea ecx, [esp + 0x1020]
call fcn.100065d0
movss xmm0, dword [0x101ff52c]
xor edx, edx
mov ecx, eax
call fcn.10159370
lea ecx, [esp + 0x101c]
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x30], xmm0
call fcn.10002180
movss xmm0, dword [esp + 0x34]
mulss xmm0, dword [0x101ff208]
mov eax, dword [0x104e2068]
mov dword [esp + 0xd0], 0x43160000
mov dword [esp + 0xd4], 0
movss dword [esp + 0x44], xmm0
subss xmm0, dword [0x101ff208]
or dword [eax + 0x1c74], 0x10
mov dword [esp + 0xd8], 0x43160000
movss dword [esp + 0xdc], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [eax + 0x1cb0], xmm0
mov dword [eax + 0x1cc0], 0
mov dword [eax + 0x1cc4], 0
call fcn.10155df0
mov eax, dword [0x101f7488]
mov ecx, 5
movq xmm0, qword [str.r_BTP_3a.71F]
mov dword [esp + 0xf04], eax
mov ax, word [0x101f748c]
mov word [esp + 0xf08], ax
lea edi, [ecx + 0x1a]
test ah, ah
movq qword [esp + 0xefc], xmm0
mov eax, dword [0x102296a0]
je 0x1012b0b7
xor edx, edx
mov dword [esp + 0x24], edx
cmp eax, 2
jl 0x1012b080
movaps xmm2, xmmword [0x101ff6c0]
mov edx, 8
movaps xmm3, xmmword [0x101ffc00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm4, ecx
psrad xmm1, xmm4
movd xmm5, edi
movaps xmm0, xmm1
mov dword [esp + 0x24], edx
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff750]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ff700]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
movd xmm0, dword [str.r_BTP_3a.71F]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101ff860]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0xefc], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff750]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
movd xmm0, dword [esp + 0xf00]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101ff860]
pxor xmm1, xmm0
movd dword [esp + 0xf00], xmm1
nop
mov eax, 0x8d3dcb09
imul edx
add edx, dword [esp + 0x24]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x24]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x39
xor byte [esp + edx + 0xefc], cl
inc edx
mov dword [esp + 0x24], edx
cmp edx, 0xe
jl 0x1012b080
lea ecx, [esp + 0x1074]
call fcn.10029b60
lea ecx, [esp + 0xefc]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012b0d0
sub ecx, edx
lea eax, [esp + 0xefc]
push ecx
push eax
lea ecx, [esp + 0x107c]
call fcn.10027bd0
push esi
lea ecx, [esp + 0x1078]
call fcn.100065d0
xor edx, edx
mov ecx, eax
call fcn.1015be20
lea ecx, [esp + 0x1074]
call fcn.10002180
call fcn.10155df0
mov ecx, dword [0x104e2068]
mov edi, eax
mov eax, dword [0x10227c40]
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x2c], edi
mov ecx, dword [ecx + 0x1bec]
movss xmm0, dword [ecx + 0x10]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [ecx + 0x14]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 0x38c0]
divss xmm0, dword [0x101ff3c8]
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
movss dword [esp + 0x1b0], xmm0
movups xmm0, xmmword [eax + 0x38a4]
mov ecx, dword [eax + 0x38b4]
mov al, byte [eax + 0x38b8]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], al
call fcn.100bd7c0
push 0xff
push 0xff
push 0xff
push 0xff
lea ecx, [esp + 0x3b4]
mov dword [esp + 0x34], eax
call fcn.100d1990
mov edx, dword [0x10227c40]
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [edx + 0x38a4]
mov eax, dword [edx + 0x38b4]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov al, byte [edx + 0x38b8]
xorps xmm0, xmm0
mov byte [ecx + 0x14], al
call fcn.100bd930
mov ecx, dword [0x10227c40]
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x30], eax
movss xmm1, dword [ecx + 0x38b0]
movups xmm0, xmmword [ecx + 0x38a4]
mov eax, dword [ecx + 0x38b4]
mulss xmm1, dword [0x101ff0d4]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
mov al, byte [ecx + 0x38b8]
movaps xmm0, xmm1
mov byte [edx + 0x14], al
call fcn.100bd930
mov esi, dword [0x10227c40]
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x38], eax
movups xmm0, xmmword [esi + 0x38a4]
mov ecx, dword [esi + 0x38b4]
mov al, byte [esi + 0x38b8]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], al
call fcn.100bd7c0
mov ecx, dword [0x10227c40]
movss xmm0, dword [0x101ff2b8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
cmp dword [ecx + 0x38bc], 0
movss dword [esp + 0x40], xmm0
je 0x1012b29a
xorps xmm0, xmm0
movss dword [esp + 0x40], xmm0
lea ecx, [esp + 0x18c]
call fcn.100d1a10
movss xmm1, dword [esp + 0x10]
movss xmm2, dword [esp + 0x1c]
movaps xmm0, xmm1
addss xmm0, dword [0x101ff3fc]
push 0
push ecx
mov ecx, edi
movss dword [esp + 0xfc], xmm1
movss dword [esp + 0x100], xmm2
movss dword [esp + 0x30], xmm0
movss dword [esp + 0xf4], xmm0
movss xmm0, dword [esp + 0x4c]
addss xmm0, xmm2
movss dword [esp + 0x4c], xmm0
subss xmm0, dword [0x101ff208]
movss dword [esp + 0xf8], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [esp], xmm0
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.10168020
mov eax, dword [0x10227c40]
mov eax, dword [eax + 0x38bc]
test eax, eax
jne 0x1012b3c1
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x101ff400]
movss xmm1, dword [0x101ff140]
push ecx
mov dword [esp], 0x3fc00000
push eax
movss dword [esp + 0x104], xmm0
lea eax, [esp + 0x104]
movss xmm0, dword [esp + 0x4c]
subss xmm0, xmm1
push ecx
mov dword [esp], 0x40a00000
mov ecx, edi
push dword [esp + 0x30]
movss dword [esp + 0x110], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, xmm1
push eax
lea eax, [esp + 0x118]
push eax
movss dword [esp + 0x11c], xmm0
movss xmm0, dword [esp + 0x34]
subss xmm0, xmm1
movss dword [esp + 0x120], xmm0
call fcn.10167f30
jmp 0x1012b572
cmp eax, 1
jne 0x1012b424
movss xmm0, dword [esp + 0x1c]
lea eax, [esp + 0x10c]
subss xmm0, dword [0x101ff140]
movss xmm1, dword [esp + 0x28]
push ecx
mov dword [esp], 0x40000000
push dword [esp + 0x28]
movss dword [esp + 0x114], xmm1
movss xmm1, dword [esp + 0x18]
push eax
movss dword [esp + 0x11c], xmm0
lea eax, [esp + 0x120]
movss dword [esp + 0x120], xmm1
movss dword [esp + 0x124], xmm0
jmp 0x1012b56a
cmp eax, 2
jne 0x1012b48a
movss xmm0, dword [esp + 0x44]
lea ecx, [esp + 0x1a4]
subss xmm0, dword [0x101ff268]
movss xmm1, dword [esp + 0x28]
movaps xmm2, xmm0
movss dword [esp + 0x40], xmm0
call fcn.1009d930
movss xmm2, dword [esp + 0x40]
lea ecx, [esp + 0x1ac]
movss xmm1, dword [esp + 0x10]
call fcn.1009d930
push ecx
mov dword [esp], 0x40000000
lea eax, [esp + 0x1a8]
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x1b8]
jmp 0x1012b56a
mov ecx, 0x10227c40
call fcn.10035c20
cmp dword [eax + 0x38bc], 3
jne 0x1012b4fb
movss xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x1b4]
subss xmm0, dword [0x101ff140]
movss xmm1, dword [esp + 0x28]
movaps xmm2, xmm0
movss dword [esp + 0x40], xmm0
call fcn.1009d930
movss xmm2, dword [esp + 0x40]
lea ecx, [esp + 0x1bc]
movss xmm1, dword [esp + 0x10]
call fcn.1009d930
push ecx
mov dword [esp], 0x40000000
lea eax, [esp + 0x1b8]
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x1c8]
jmp 0x1012b56a
mov ecx, 0x10227c40
call fcn.10035c20
cmp dword [eax + 0x38bc], 4
jne 0x1012b572
movss xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x1c4]
subss xmm0, dword [0x101ff140]
movss xmm1, dword [esp + 0x28]
movaps xmm2, xmm0
movss dword [esp + 0x40], xmm0
call fcn.1009d930
movss xmm2, dword [esp + 0x40]
lea ecx, [esp + 0x1cc]
movss xmm1, dword [esp + 0x10]
call fcn.1009d930
push ecx
mov dword [esp], 0x40000000
lea eax, [esp + 0x1c8]
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x1d8]
push eax
mov ecx, edi
call fcn.10167e00
mov al, byte [0x101f739c]
xor edx, edx
movq xmm0, qword [str.r_BTP_3A]
mov byte [esp + 0xebc], al
movq qword [esp + 0xeb4], xmm0
mov dword [esp + 0x40], edx
mov eax, 0x8d3dcb09
mul edx
shr edx, 5
movsx eax, dl
mov edx, dword [esp + 0x40]
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x39
xor byte [esp + edx + 0xeb4], cl
inc edx
mov dword [esp + 0x40], edx
cmp edx, 9
jl 0x1012b595
lea ecx, [esp + 0x10ec]
call fcn.10029b60
lea ecx, [esp + 0xeb4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012b5d7
sub ecx, edx
lea eax, [esp + 0xeb4]
push ecx
push eax
lea ecx, [esp + 0x10f4]
call fcn.10027bd0
lea ecx, [esp + 0x10ec]
call fcn.100065d0
lea ecx, [esp + 0x3a4]
mov esi, eax
call fcn.100d1a10
movss xmm1, dword [esp + 0x10]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [0x101ff0d4]
push 0
addss xmm1, dword [0x101ff3a8]
push ecx
mov dword [esp], 0
mov ecx, edi
push 0
push esi
subss xmm1, xmm0
movss xmm0, dword [esp + 0x44]
mulss xmm0, dword [0x101ff0d4]
push eax
lea eax, [esp + 0x198]
push eax
addss xmm0, dword [esp + 0x34]
push 0
movss dword [esp + 0x1a0], xmm1
subss xmm0, dword [0x101ff140]
movss dword [esp + 0x1a4], xmm0
call fcn.101685a0
lea ecx, [esp + 0x10ec]
call fcn.10002180
mov eax, dword [0x10227c40]
mov eax, dword [eax + 0x38bc]
cmp eax, 3
jne 0x1012b6fa
movss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
movss dword [esp + 0x120], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
lea eax, [esp + 0x12c]
movss dword [esp + 0x130], xmm0
and al, 0x30
add dword [eax], eax
add bl, dh
movups xmm0, xmmword [esp + 0x20]
cmp eax, 4
jne 0x1012b7ca
movss xmm1, dword [esp + 0x10]
mov ecx, edi
mov esi, dword [esp + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [0x101ff208]
mov eax, dword [esp + 8]
push esi
push esi
push eax
push eax
movss dword [esp + 0x13c], xmm0
lea eax, [esp + 0x13c]
movss xmm0, dword [esp + 0x54]
push eax
movss dword [esp + 0x144], xmm0
lea eax, [esp + 0x148]
movss xmm0, dword [esp + 0x30]
push eax
movss dword [esp + 0x14c], xmm1
movss dword [esp + 0x150], xmm0
call fcn.10168180
movss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 8]
movss dword [esp + 0x13c], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x140], xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x101ff3f8]
push esi
push esi
push eax
push eax
lea eax, [esp + 0x14c]
movss dword [esp + 0x154], xmm0
movss xmm0, dword [esp + 0x2c]
push eax
movss dword [esp + 0x15c], xmm0
lea eax, [esp + 0x158]