Function at 0x518f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [0x547008]
xor edx, ebp
mov dword [esp + 0xe8], edx
cmp ecx, 0x100
je 0x518f6b
cmp ecx, 0xc0
je 0x519073
cmp ecx, 0x80
je 0x518fa6
xor esi, esi
inc esi
jmp 0x5192d3
mov dword [edi + 0xf0], 0xe
movdqu xmm0, xmmword [eax]
movdqa xmmword [esp + 0x20], xmm0
movdqu xmmword [edi], xmm0
movdqu xmm2, xmmword [eax + 0x10]
movdqu xmmword [edi + 0x10], xmm2
lea ebx, [esp + 0x70]
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0x537e80
jmp 0x519386
mov dword [edi + 0xf0], 0xa
movdqu xmm1, xmmword [eax]
movdqu xmmword [edi], xmm1
add edi, 0x10
mov esi, 0xfffffff6
movdqa xmmword [esp + 0x10], xmm1
xorps xmm0, xmm0
lea eax, [esp + 0x70]
movaps xmmword [eax + 0x60], xmm0
movaps xmmword [eax + 0x50], xmm0
movaps xmmword [eax + 0x40], xmm0
movaps xmmword [eax + 0x30], xmm0
movaps xmmword [eax + 0x20], xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
movdqa xmmword [esp + 0x60], xmm1
lea ebx, [esp + 0x60]
mov ecx, ebx
call fcn.004bcfc0
mov ecx, ebx
call fcn.004bd220
mov ecx, ebx
call fcn.004bcfc0
movdqa xmm1, xmmword [esp + 0x60]
movzx eax, byte [esi + 0x537e8a]
movd xmm0, eax
movdqa xmm2, xmm1
psrld xmm2, 8
pslld xmm1, 0x18
por xmm1, xmm2
psrldq xmm1, 0xc
pxor xmm0, xmmword [esp + 0x10]
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [edi], xmm1
add edi, 0x10
inc esi
jne 0x518fc0
jmp 0x5192d1
mov dword [edi + 0xf0], 0xc
movups xmm0, xmmword [eax]
lea ecx, [esp + 0x50]
movaps xmmword [ecx], xmm0
movdqu xmm0, xmmword [eax]
movdqu xmmword [edi], xmm0
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
lea ebx, [esp + 0x40]
mov dword [ebx + 4], eax
mov dword [ebx], edx
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
add edi, 0x30
mov esi, edi
mov edi, 0xfffffff8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ecx
pxor xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [ebx]
movaps xmmword [esp + 0x60], xmm0
lea ecx, [esp + 0x60]
mov ebx, esi
mov esi, ecx
call fcn.004bcfc0
mov ecx, esi
call fcn.004bd220
mov ecx, esi
mov esi, ebx
call fcn.004bcfc0
mov dword [esp + 0xc], edi
movzx eax, byte [edi + 0x537e88]
movd xmm1, eax
mov edi, dword [esp + 0x20]
movdqa xmm0, xmmword [edi]
pxor xmm1, xmm0
pslldq xmm1, 8
mov ebx, dword [esp + 0x10]
por xmm1, xmmword [ebx]
movdqa xmm2, xmmword [esp + 0x60]
movdqa xmm3, xmm2
psrld xmm3, 8
pslld xmm2, 0x18
por xmm2, xmm3
shufps xmm2, xmmword [0x51b300], 0x31
pxor xmm3, xmm3
shufps xmm3, xmm2, 0x84
xorps xmm3, xmm1
pshufd xmm2, xmm3, 0xaa
pand xmm2, xmmword [0x5337e0]
pxor xmm2, xmm3
movdqa xmmword [ebx], xmm2
shufps xmm0, xmm1, 0x4e
psrldq xmm2, 0xc
pxor xmm2, xmm0
movdqa xmm0, xmm2
movdqa xmm1, xmm2
pslldq xmm1, 0xc
pxor xmm1, xmm2
pslldq xmm2, 4
pslldq xmm0, 8
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqa xmmword [edi], xmm1
movups xmm0, xmmword [ebx]
movups xmmword [esi - 0x20], xmm0
movups xmm0, xmmword [edi]
mov ebx, edi
movups xmmword [esi - 0x10], xmm0
xorps xmm0, xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [edi]
movaps xmmword [esp + 0x60], xmm0
lea edi, [esp + 0x60]
mov ecx, edi
call fcn.004bcfc0
mov ecx, edi
call fcn.004bd220
mov ecx, edi
call fcn.004bcfc0
movdqa xmm1, xmmword [esp + 0x60]
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + 0x537e89]
mov edi, dword [esp + 0x10]
movaps xmm2, xmmword [edi]
movaps xmm0, xmmword [ebx]
shufps xmm2, xmm0, 0x4e
movd xmm3, eax
pxor xmm3, xmm2
movdqa xmm2, xmm1
psrld xmm2, 8
pslld xmm1, 0x18
por xmm1, xmm2
psrldq xmm1, 0xc
pxor xmm1, xmm3
movdqa xmm2, xmm1
pslldq xmm2, 4
movdqa xmm3, xmm1
pslldq xmm3, 8
pxor xmm3, xmm2
movdqa xmm2, xmm1
pslldq xmm2, 0xc
pxor xmm2, xmm3
pxor xmm2, xmm1
movdqa xmmword [edi], xmm2
psrldq xmm0, 8
psrldq xmm2, 0xc
pxor xmm2, xmm0
movdqa xmm0, xmm2
psllq xmm0, 0x20
pxor xmm0, xmm2
movdqa xmmword [ebx], xmm0
movdqu xmm0, xmmword [edi]
mov ecx, edi
movdqu xmmword [esi], xmm0
add esi, 0x30
mov edi, edx
add edi, 2
jne 0x5190b0
xor esi, esi
mov ecx, dword [esp + 0xe8]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
pxor xmm0, xmm0
movdqa xmmword [ebx + 0x60], xmm0
movdqa xmmword [ebx + 0x50], xmm0
movdqa xmmword [ebx + 0x40], xmm0
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
movdqa xmmword [esp + 0x20], xmm1
movdqa xmmword [esp + 0x60], xmm1
lea esi, [esp + 0x60]
mov ecx, esi
call fcn.004bcfc0
mov ecx, esi
call fcn.004bd220
mov ecx, esi
call fcn.004bcfc0
movdqa xmm0, xmmword [esp + 0x60]
psrldq xmm0, 0xc
movdqa xmm2, xmmword [esp + 0x30]
pxor xmm2, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 4
movdqa xmm1, xmm2
pslldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 0xc
pxor xmm0, xmm1
pxor xmm2, xmm0
mov eax, dword [esp + 0x10]
movdqu xmmword [edi + eax], xmm2
add eax, 0x20
mov dword [esp + 0x10], eax
inc dword [esp + 0xc]
pxor xmm0, xmm0
movdqa xmmword [ebx + 0x60], xmm0
movdqa xmmword [ebx + 0x50], xmm0
movdqa xmmword [ebx + 0x40], xmm0
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
movdqa xmmword [esp + 0x30], xmm2
movdqa xmmword [esp + 0x60], xmm2
lea esi, [esp + 0x60]
mov ecx, esi
call fcn.004bcfc0
mov ecx, esi
call fcn.004bd220
mov ecx, esi
call fcn.004bcfc0
movdqa xmm0, xmmword [esp + 0x60]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x20]
movdqa xmm2, xmm0
psrld xmm2, 8
pslld xmm0, 0x18
por xmm0, xmm2
psrldq xmm0, 0xc
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
mov eax, dword [esp + 0x10]
movdqu xmmword [edi + eax - 0x10], xmm1
cmp eax, 0xf0
jne 0x5192eb
jmp 0x5192d1