Function at 0x4a9e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
push edi
lea edi, [edx*4]
xor esi, esi
mov dword [ebp - 0x20], edi
test edx, edx
jle 0x4a9f3e
lea eax, [edx + edx*2]
lea edi, [ecx + eax*8]
lea eax, [ecx + edx*8]
mov dword [ebp - 0x14], eax
mov eax, edx
shl eax, 4
add eax, ecx
nop dword [eax + eax]
mov edx, dword [ebp - 0x14]
movsd xmm3, qword [ecx + esi*8]
movsd xmm6, qword [eax]
movsd xmm2, qword [ecx + esi*8 + 8]
movsd xmm7, qword [edx]
movsd xmm5, qword [edx + 8]
addsd xmm7, xmm3
subsd xmm3, qword [edx]
movsd xmm4, qword [eax + 8]
addsd xmm5, xmm2
subsd xmm2, qword [edx + 8]
movsd qword [ebp - 0x60], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [edi]
subsd xmm6, qword [edi]
movsd qword [ebp - 0x58], xmm2
movaps xmm2, xmm4
addsd xmm2, qword [edi + 8]
subsd xmm4, qword [edi + 8]
movsd xmm1, qword [ebp - 0x58]
movaps xmm0, xmm3
addsd xmm0, xmm7
subsd xmm7, xmm3
movsd qword [ecx + esi*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm5
subsd xmm5, xmm2
movsd qword [ecx + esi*8 + 8], xmm0
add esi, 2
movsd xmm0, qword [ebp - 0x60]
subsd xmm0, xmm4
movsd qword [eax], xmm7
addsd xmm4, qword [ebp - 0x60]
movsd qword [eax + 8], xmm5
add eax, 0x10
movsd qword [edx], xmm0
movaps xmm0, xmm6
addsd xmm0, xmm1
subsd xmm1, xmm6
movsd qword [edx + 8], xmm0
add edx, 0x10
movsd qword [edi], xmm4
movsd qword [edi + 8], xmm1
add edi, 0x10
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
cmp esi, edx
jl 0x4a9e70
lea edi, [edx*4]
mov eax, dword [ebp + 0x14]
mov esi, edi
movsd xmm0, qword [eax + 0x10]
lea eax, [edi + edx]
movsd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x14], eax
cmp edi, eax
jge 0x4aa06e
lea eax, [edi + edx*2]
add eax, edx
lea edi, [ecx + eax*8]
mov eax, dword [ebp - 0x14]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x28], eax
lea eax, [edx*4]
lea eax, [eax + edx*2]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
movsd xmm3, qword [ecx + esi*8]
movsd xmm6, qword [eax]
movsd xmm7, qword [edx]
addsd xmm6, xmm3
subsd xmm3, qword [eax]
movsd xmm2, qword [ecx + esi*8 + 8]
movsd xmm5, qword [edx + 8]
movaps xmm4, xmm2
subsd xmm2, qword [eax + 8]
addsd xmm4, qword [eax + 8]
movsd qword [ebp - 0x60], xmm3
movaps xmm3, xmm7
addsd xmm3, qword [edi]
subsd xmm7, qword [edi]
movsd qword [ebp - 0x58], xmm2
movaps xmm2, xmm5
addsd xmm2, qword [edi + 8]
subsd xmm5, qword [edi + 8]
movaps xmm0, xmm3
addsd xmm0, xmm6
movaps xmm1, xmm7
addsd xmm1, qword [ebp - 0x58]
subsd xmm7, qword [ebp - 0x58]
subsd xmm6, xmm3
movsd qword [ecx + esi*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
subsd xmm2, xmm4
movsd qword [ecx + esi*8 + 8], xmm0
add esi, 2
movsd qword [edx], xmm2
movsd xmm2, qword [ebp - 0x60]
subsd xmm2, xmm5
movsd qword [edx + 8], xmm6
movsd xmm6, qword [ebp - 0x50]
add edx, 0x10
addsd xmm5, qword [ebp - 0x60]
movaps xmm0, xmm2
subsd xmm0, xmm1
addsd xmm1, xmm2
mulsd xmm0, xmm6
mulsd xmm1, xmm6
movsd qword [eax], xmm0
movaps xmm0, xmm7
subsd xmm0, xmm5
addsd xmm7, xmm5
movsd qword [eax + 8], xmm1
add eax, 0x10
mulsd xmm0, xmm6
mulsd xmm7, xmm6
movsd qword [edi], xmm0
movsd qword [edi + 8], xmm7
add edi, 0x10
cmp esi, dword [ebp - 0x14]
jl 0x4a9f82
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20]
lea eax, [edi + edi]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 8]
jge 0x4aa492
lea edi, [eax*8]
mov dword [ebp - 8], edx
lea esi, [edx*4]
mov dword [ebp - 0x40], edi
add esi, eax
lea edi, [edx*4]
add eax, edx
mov dword [ebp - 0x10], esi
lea eax, [ecx + eax*8]
mov dword [ebp - 0xc], eax
lea eax, [esi + edx]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add eax, 0x18
sub dword [ebp - 8], edi
mov edi, dword [ebp - 4]
nop dword [eax]
mov ecx, dword [ebp + 0x14]
add eax, 0x20
add ecx, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x2c], edi
movsd xmm3, qword [eax - 0x18]
movsd xmm0, qword [ecx + 8]
movaps xmm5, xmm3
movsd xmm4, qword [eax - 0x10]
movaps xmm1, xmm0
movsd xmm2, qword [ecx]
addsd xmm1, xmm0
mov ecx, dword [ebp - 8]
movsd qword [ebp - 0x60], xmm0
add ecx, esi
mov dword [ebp - 0x1c], ecx
cmp edi, ecx
mov ecx, dword [ebp + 0x10]
movaps xmm0, xmm1
movsd qword [ebp - 0x48], xmm2
mulsd xmm0, xmm4
mulsd xmm1, xmm3
movsd qword [ebp - 0x58], xmm3
subsd xmm5, xmm0
movsd qword [ebp - 0x50], xmm4
subsd xmm1, xmm4
movsd qword [ebp - 0x68], xmm5
movsd qword [ebp - 0x70], xmm1
jge 0x4aa2a5
lea eax, [edi + edx*2]
mov esi, edi
add eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp - 0x30], eax
lea eax, [edi + edx*2]
mov edi, dword [ebp - 0x30]
lea eax, [ecx + eax*8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
nop
movsd xmm3, qword [ecx + esi*8 + 8]
mov eax, dword [ebp - 0x18]
movaps xmm4, xmm3
subsd xmm3, qword [edx + 8]
movsd xmm2, qword [ecx + esi*8]
addsd xmm4, qword [edx + 8]
movsd xmm6, qword [eax]
movaps xmm5, xmm2
subsd xmm2, qword [edx]
addsd xmm5, qword [edx]
movsd xmm7, qword [eax + 8]
movsd xmm1, qword [ebp - 0x48]
movsd qword [ebp - 0x34], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [edi]
subsd xmm6, qword [edi]
movsd qword [ebp - 0x3c], xmm2
movaps xmm2, xmm7
addsd xmm2, qword [edi + 8]
subsd xmm7, qword [edi + 8]
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd xmm3, qword [ebp - 0x3c]
subsd xmm3, xmm7
addsd xmm7, qword [ebp - 0x3c]
movsd qword [ecx + esi*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm1, xmm5
subsd xmm4, xmm2
movaps xmm2, xmm6
movsd qword [ecx + esi*8 + 8], xmm0
add esi, 2
movsd xmm0, qword [ebp - 0x60]
mulsd xmm0, xmm4
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x60]
mulsd xmm0, xmm5
movsd xmm5, qword [ebp - 0x34]
addsd xmm2, xmm5
movsd qword [eax], xmm1
subsd xmm5, xmm6
movsd xmm1, qword [ebp - 0x48]
mulsd xmm1, xmm4
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x50]
mulsd xmm0, xmm2
movsd qword [eax + 8], xmm1
add eax, 0x10
movsd xmm1, qword [ebp - 0x58]
mulsd xmm1, xmm3
mov dword [ebp - 0x18], eax
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x58]
mulsd xmm0, xmm2
movsd qword [edx], xmm1
movsd xmm1, qword [ebp - 0x50]
mulsd xmm1, xmm3
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x70]
mulsd xmm0, xmm5
movsd qword [edx + 8], xmm1
add edx, 0x10
movsd xmm1, qword [ebp - 0x68]
mulsd xmm1, xmm7
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x70]
mulsd xmm0, xmm7
movsd qword [edi], xmm1
movsd xmm1, qword [ebp - 0x68]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movsd qword [edi + 8], xmm1
add edi, 0x10
cmp esi, dword [ebp - 0x1c]
jl 0x4aa150
movsd xmm2, qword [ebp - 0x48]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
movsd xmm3, qword [eax - 8]
movaps xmm1, xmm2
movsd xmm4, qword [eax]
addsd xmm1, xmm2
mov edx, dword [ebp - 0x1c]
movaps xmm2, xmm3
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
cmp esi, edx
mov edx, dword [ebp + 0xc]
movaps xmm0, xmm1
movsd qword [ebp - 0x50], xmm3
mulsd xmm0, xmm4
mov dword [ebp - 0x38], esi
mulsd xmm1, xmm3
movsd qword [ebp - 0x58], xmm4
subsd xmm2, xmm0
subsd xmm1, xmm4
movsd qword [ebp - 0x78], xmm2
movsd qword [ebp - 0x80], xmm1
jge 0x4aa474
mov edi, dword [ebp - 0x14]
lea eax, [esi + edx*2]
add eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp - 0x30], eax
lea eax, [esi + edx*2]
mov edx, dword [ebp - 0x30]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x1c], eax
mov eax, esi
mov esi, dword [ebp - 0x1c]
nop word [eax + eax]
movsd xmm3, qword [ecx + eax*8 + 8]
movsd xmm6, qword [esi]
movaps xmm4, xmm3
subsd xmm3, qword [edi + 8]
movsd xmm2, qword [ecx + eax*8]
movsd xmm7, qword [esi + 8]
movaps xmm5, xmm2
subsd xmm2, qword [edi]
addsd xmm5, qword [edi]
addsd xmm4, qword [edi + 8]
movsd xmm1, qword [ebp - 0x60]
movsd qword [ebp - 0x68], xmm3
movaps xmm3, xmm6
addsd xmm3, qword [edx]
subsd xmm6, qword [edx]
movsd qword [ebp - 0x70], xmm2
movaps xmm2, xmm7
addsd xmm2, qword [edx + 8]
subsd xmm7, qword [edx + 8]
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd xmm3, qword [ebp - 0x70]
subsd xmm3, xmm7
addsd xmm7, qword [ebp - 0x70]
movsd qword [ecx + eax*8], xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm1, xmm5
subsd xmm4, xmm2
movaps xmm2, xmm6
xorps xmm1, xmmword [0x4d0c70]
movsd qword [ecx + eax*8 + 8], xmm0
add eax, 2
movsd xmm0, qword [ebp - 0x48]
mulsd xmm0, xmm4
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x60]
mulsd xmm0, xmm4
movsd qword [esi], xmm1
movsd xmm1, qword [ebp - 0x48]
mulsd xmm1, xmm5
movsd xmm5, qword [ebp - 0x68]
addsd xmm2, xmm5
subsd xmm5, xmm6
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x58]
mulsd xmm0, xmm2
movsd qword [esi + 8], xmm1
add esi, 0x10
movsd xmm1, qword [ebp - 0x50]
mulsd xmm1, xmm3
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x50]
mulsd xmm0, xmm2
movsd qword [edi], xmm1
movsd xmm1, qword [ebp - 0x58]
mulsd xmm1, xmm3
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x80]
mulsd xmm0, xmm5
movsd qword [edi + 8], xmm1
add edi, 0x10
movsd xmm1, qword [ebp - 0x78]
mulsd xmm1, xmm7
subsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x80]
mulsd xmm0, xmm7
movsd qword [edx], xmm1
movsd xmm1, qword [ebp - 0x78]
mulsd xmm1, xmm5
addsd xmm1, xmm0
movsd qword [edx + 8], xmm1
add edx, 0x10
cmp eax, dword [ebp - 0x18]
jl 0x4aa320
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
add edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
add esi, dword [ebp - 0x28]
add dword [ebp - 0xc], ecx
add dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], esi
cmp edi, dword [ebp + 8]
jl 0x4aa0c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret