Function at 0x4fc8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xor eax, eax
cmp dword [ebp + 8], 0x30
ja 0x4fcb7c
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
inc eax
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
inc eax
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
inc eax
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 0x4fca0d
xor eax, eax
cmp edx, 8
jb 0x4fca00
xor eax, eax
cmp edx, 0x10
jb 0x4fc9d9
mov eax, edx
and eax, 0xfffffff0
movdqu xmm0, xmmword [edi]
pxor xmm0, xmmword [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm0
cmp eax, 0x10
je 0x4fc9d0
movdqu xmm0, xmmword [edi + 0x10]
pxor xmm0, xmmword [esp + 0x20]
movdqa xmmword [esp + 0x20], xmm0
cmp eax, 0x20
je 0x4fc9d0
movdqu xmm0, xmmword [edi + 0x20]
pxor xmm0, xmmword [esp + 0x30]
movdqa xmmword [esp + 0x30], xmm0
cmp eax, edx
je 0x4fca0d
test dl, 8
je 0x4fca00
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
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 0x4fc9e0
cmp eax, edx
je 0x4fca0d
movzx ecx, byte [edi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp edx, eax
jne 0x4fca00
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
movaps xmm0, xmmword [esp + 0x60]
movaps xmmword [esp + 0x80], xmm0
mov ebx, 0x30
mov edi, 0x58ed6d
movaps xmm0, xmmword [esp + 0x50]
movaps xmmword [esp + 0x70], xmm0
nop dword [eax + eax]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
call fcn.00509720
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x80]
movdqa xmm0, xmmword [esp + 0x40]
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
movdqa xmmword [esp + 0x60], xmm1
movaps xmm0, xmmword [esp + 0x60]
movups xmmword [esi + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x4fcb55
movdqa xmmword [esp + 0x80], xmm1
lea ecx, [esp + 0x40]
lea edx, [esp + 0x60]
call fcn.00509720
movdqa xmm0, xmmword [esp + 0x40]
psrldq xmm0, 0xc
movdqa xmm2, xmmword [esp + 0x70]
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
movdqa xmmword [esp + 0x70], xmm2
movdqa xmmword [esp + 0x50], xmm2
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [esi + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x4fca60
mov dword [esi + 0xf4], fcn.004c5df0
mov dword [esi + 0xf8], 0x4c8100
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