Function at 0x4eb0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
xor eax, eax
cmp dword [ebp + 8], 0x30
ja 0x4eb346
mov edi, edx
mov esi, ecx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
lea ebx, [ecx + 0xfc]
mov eax, dword [ecx + 0x108]
bswap eax
add eax, 1
bswap eax
mov dword [ecx + 0x108], eax
lea eax, [esp + 0x10]
push ecx
push eax
push ebx
call dword [ecx + 0xf4]
add esp, 0xc
mov eax, dword [esi + 0x108]
bswap eax
add eax, 1
bswap eax
mov dword [esi + 0x108], eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call dword [esi + 0xf4]
add esp, 0xc
mov eax, dword [esi + 0x108]
bswap eax
add eax, 1
bswap eax
mov dword [esi + 0x108], eax
push esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x14], ebx
push ebx
call dword [esi + 0xf4]
mov edx, dword [ebp + 8]
add esp, 0xc
test edx, edx
je 0x4eb1ff
xor eax, eax
cmp edx, 8
jb 0x4eb1f0
xor eax, eax
cmp edx, 0x10
jb 0x4eb1bf
mov eax, edx
and eax, 0xfffffff0
movdqu xmm0, xmmword [edi]
pxor xmm0, xmmword [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm0
cmp eax, 0x10
je 0x4eb1b6
movdqu xmm0, xmmword [edi + 0x10]
pxor xmm0, xmmword [esp + 0x20]
movdqa xmmword [esp + 0x20], xmm0
cmp eax, 0x20
je 0x4eb1b6
movdqu xmm0, xmmword [edi + 0x20]
pxor xmm0, xmmword [esp + 0x30]
movdqa xmmword [esp + 0x30], xmm0
cmp eax, edx
je 0x4eb1ff
test dl, 8
je 0x4eb1f0
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
nop word cs:[eax + eax]
movq xmm0, qword [edi + ecx]
movq xmm1, qword [esp + ecx + 0x10]
pxor xmm1, xmm0
movq qword [esp + ecx + 0x10], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4eb1d0
cmp eax, edx
je 0x4eb1ff
movzx ecx, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
add eax, 1
cmp edx, eax
jne 0x4eb1f0
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x60], xmm0
movups xmmword [esi], xmm0
lea eax, [esp + 0x20]
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ebx, 0x30
mov edi, 0x570075
movaps xmm0, xmmword [esp + 0x60]
movaps xmmword [esp + 0x70], xmm0
nop dword [eax]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
call fcn.004f9880
movzx eax, byte [edi]
movd xmm0, eax
pxor xmm0, xmmword [esp + 0x70]
movdqa xmm2, xmmword [esp + 0x40]
movdqa xmm1, xmm2
psrld xmm1, 8
pslld xmm2, 0x18
por xmm2, xmm1
psrldq xmm2, 0xc
pxor xmm2, xmm0
movdqa xmm0, xmm2
pslldq xmm0, 4
pxor xmm0, xmm2
movdqa xmm1, xmm2
pslldq xmm1, 8
pslldq xmm2, 0xc
pxor xmm2, xmm1
pxor xmm2, xmm0
movdqa xmmword [esp + 0x60], xmm2
movaps xmm0, xmmword [esp + 0x60]
movups xmmword [esi + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x4eb31f
movdqa xmmword [esp + 0x70], xmm2
lea ecx, [esp + 0x40]
lea edx, [esp + 0x60]
call fcn.004f9880
movdqa xmm0, xmmword [esp + 0x40]
psrldq xmm0, 0xc
pxor xmm0, xmmword [esp + 0x50]
movdqa xmm1, xmm0
pslldq xmm1, 4
pxor xmm1, xmm0
movdqa xmm2, xmm0
pslldq xmm2, 8
pslldq xmm0, 0xc
pxor xmm0, xmm2
pxor xmm0, xmm1
movdqa xmmword [esp + 0x50], xmm0
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [esi + ebx], xmm0
add ebx, 0x20
add edi, 1
jmp 0x4eb240
mov dword [esi + 0xf4], fcn.004ac5d0
mov dword [esi + 0xf8], 0x4ae8c0
lea eax, [esp + 0x30]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0xc]
movups xmmword [eax], xmm0
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret