Function at 0x48775f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, ecx
mov dword [esp + 4], edx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x68], eax
movups xmm0, xmmword [eax + 0x40]
push edi
mov edi, dword [ebp + 8]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x40], xmm0
movups xmm7, xmmword [eax + 0x30]
movups xmm6, xmmword [eax + 0x50]
movaps xmmword [esp + 0x30], xmm7
movaps xmmword [esp + 0x50], xmm6
movups xmm5, xmmword [eax + 0x60]
movups xmm1, xmmword [eax + 0x70]
movaps xmmword [esp + 0x10], xmm5
movaps xmmword [esp + 0x20], xmm1
cmp esi, 0x10
jge 0x4877cf
test esi, esi
je 0x487b66
jmp 0x487ac1
mov eax, edi
neg eax
and eax, 0xf
je 0x487837
movups xmm0, xmmword [edi]
lea ecx, [esp + 0x20]
add edi, eax
push ecx
lea ecx, [esp + 0x14]
movaps xmmword [esp + 0x24], xmm0
push ecx
lea ecx, [esp + 0x58]
sub esi, eax
push ecx
movups xmmword [edx], xmm0
lea ecx, [esp + 0x4c]
add edx, eax
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], edx
push ecx
mov edx, eax
call fcn.00487699
movaps xmm0, xmmword [esp + 0x54]
add esp, 0x14
movaps xmm1, xmmword [esp + 0x20]
movaps xmm7, xmmword [esp + 0x30]
movaps xmm6, xmmword [esp + 0x50]
movaps xmm5, xmmword [esp + 0x10]
mov edx, dword [esp + 0xc]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x20], xmm1
sub esi, 0x40
js 0x48791a
lea ecx, [esi + 0x40]
shr ecx, 6
imul eax, ecx, 0xffffffc0
add esi, eax
movaps xmm1, xmmword [edi]
movaps xmm0, xmm7
movaps xmm2, xmmword [edi + 0x10]
movaps xmm3, xmmword [edi + 0x20]
movaps xmm4, xmmword [edi + 0x30]
add edi, 0x40
movaps xmmword [esp + 0x10], xmm1
movaps xmm1, xmmword [0x512860]
pclmulqdq xmm0, xmm1, 1
pclmulqdq xmm7, xmm1, 0x10
xorps xmm7, xmm0
movaps xmm0, xmmword [esp + 0x70]
pclmulqdq xmm0, xmm1, 1
movaps xmm1, xmmword [esp + 0x70]
pclmulqdq xmm1, xmmword [0x512860], 0x10
xorps xmm1, xmm0
movaps xmm0, xmm6
movaps xmmword [esp + 0x70], xmm1
movaps xmm1, xmmword [0x512860]
pclmulqdq xmm0, xmm1, 1
pclmulqdq xmm6, xmm1, 0x10
xorps xmm6, xmm0
movaps xmm0, xmm5
pclmulqdq xmm0, xmm1, 1
pclmulqdq xmm5, xmm1, 0x10
movaps xmm1, xmmword [esp + 0x10]
xorps xmm5, xmm0
movaps xmm0, xmmword [esp + 0x70]
pxor xmm7, xmm1
movups xmmword [edx], xmm1
movups xmmword [edx + 0x10], xmm2
movups xmmword [edx + 0x20], xmm3
movups xmmword [edx + 0x30], xmm4
add edx, 0x40
pxor xmm0, xmm2
movaps xmmword [esp + 0x30], xmm7
movaps xmmword [esp + 0x70], xmm0
pxor xmm6, xmm3
movaps xmmword [esp + 0x40], xmm0
pxor xmm5, xmm4
movaps xmmword [esp + 0x50], xmm6
movaps xmmword [esp + 0x10], xmm5
sub ecx, 1
jne 0x48784b
mov dword [esp + 0xc], edx
lea eax, [esi + 0x10]
test eax, eax
js 0x4879d2
movaps xmm0, xmmword [0x512860]
movaps xmm1, xmm5
movaps xmm2, xmmword [edi]
movaps xmm5, xmm6
movaps xmm3, xmmword [edi + 0x10]
mov esi, eax
movaps xmm4, xmmword [edi + 0x20]
movaps xmmword [esp + 0x10], xmm2
movaps xmm2, xmmword [esp + 0x70]
pclmulqdq xmm6, xmm0, 1
pclmulqdq xmm5, xmm0, 0x10
xorps xmm5, xmm6
movaps xmm6, xmmword [esp + 0x70]
pxor xmm5, xmm4
pclmulqdq xmm2, xmm0, 1
pclmulqdq xmm6, xmm0, 0x10
xorps xmm6, xmm2
movaps xmm2, xmm7
pxor xmm6, xmm3
movaps xmmword [esp + 0x50], xmm6
pclmulqdq xmm2, xmm0, 0x10
movaps xmmword [esp + 0x70], xmm2
movaps xmm2, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm5
pclmulqdq xmm7, xmm0, 1
movaps xmm0, xmmword [esp + 0x70]
xorps xmm0, xmm7
movaps xmm7, xmm1
movaps xmmword [esp + 0x30], xmm7
pxor xmm0, xmm2
movaps xmmword [esp + 0x40], xmm0
movups xmmword [edx], xmm2
movups xmmword [edx + 0x10], xmm3
movups xmmword [edx + 0x20], xmm4
test esi, esi
je 0x487b49
add edx, 0x30
add edi, 0x30
mov dword [esp + 0xc], edx
jmp 0x487ac1
lea eax, [esi + 0x20]
test eax, eax
js 0x487a55
movaps xmm0, xmmword [0x512860]
movaps xmm1, xmm6
movaps xmm6, xmmword [esp + 0x70]
movaps xmm2, xmm5
movaps xmm3, xmmword [edi]
movaps xmm5, xmm6
movaps xmm4, xmmword [edi + 0x10]
mov esi, eax
pclmulqdq xmm6, xmm0, 1
pclmulqdq xmm5, xmm0, 0x10
xorps xmm5, xmm6
movaps xmm6, xmm7
pxor xmm5, xmm4
movaps xmmword [esp + 0x10], xmm5
pclmulqdq xmm7, xmm0, 1
pclmulqdq xmm6, xmm0, 0x10
xorps xmm6, xmm7
movaps xmm7, xmm1
movaps xmmword [esp + 0x30], xmm7
movaps xmm0, xmm2
movaps xmmword [esp + 0x40], xmm0
pxor xmm6, xmm3
movaps xmmword [esp + 0x50], xmm6
movups xmmword [edx], xmm3
movups xmmword [edx + 0x10], xmm4
test esi, esi
je 0x487b49
add edx, 0x20
add edi, 0x20
mov dword [esp + 0xc], edx
jmp 0x487ac1
lea eax, [esi + 0x30]
test eax, eax
js 0x487ab8
movaps xmm2, xmmword [edi]
movaps xmm1, xmm5
movaps xmm5, xmm7
movaps xmm0, xmm6
pclmulqdq xmm7, xmmword [0x512860], 1
pclmulqdq xmm5, xmmword [0x512860], 0x10
xorps xmm5, xmm7
movaps xmmword [esp + 0x40], xmm0
movaps xmm7, xmmword [esp + 0x70]
mov esi, eax
movaps xmmword [esp + 0x30], xmm7
movaps xmm6, xmm1
movaps xmmword [esp + 0x50], xmm6
pxor xmm5, xmm2
movaps xmmword [esp + 0x10], xmm5
movups xmmword [edx], xmm2
test esi, esi
je 0x487b49
add edx, 0x10
add edi, 0x10
mov dword [esp + 0xc], edx
jmp 0x487ac1
add esi, 0x40
je 0x487b49
push esi
lea eax, [esp + 0x74]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x7c], xmm0
call fcn.004cd490
movd xmm2, dword [esp + 0x88]
add esp, 0xc
movd xmm0, dword [esp + 0x78]
mov edx, esi
movd xmm1, dword [esp + 0x74]
movd xmm3, dword [esp + 0x70]
mov eax, dword [esp + 0xc]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
movups xmmword [eax], xmm3
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm3
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00487699
movaps xmm7, xmmword [esp + 0x44]
add esp, 0x14
movaps xmm0, xmmword [esp + 0x40]
movaps xmm6, xmmword [esp + 0x50]
movaps xmm5, xmmword [esp + 0x10]
movaps xmm1, xmmword [esp + 0x20]
jmp 0x487b4e
movaps xmm1, xmmword [esp + 0x20]
mov eax, dword [esp + 0x6c]
movups xmmword [eax + 0x30], xmm7
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x50], xmm6
movups xmmword [eax + 0x60], xmm5
movups xmmword [eax + 0x70], xmm1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret