Function at 0x4cae40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [esp + 8], esi
shr eax, 4
add esi, 0x144
mov dword [esp + 0x10], eax
mov eax, ecx
and eax, 0xf
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], edi
cmp eax, 0xc
jne 0x4caea0
mov eax, dword [edx + 8]
movq xmm0, qword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x3c], case.0x48b483.27
jmp 0x4caedc
mov ecx, dword [esp + 0xc]
lea edi, [esp + 0x30]
mov esi, dword [esi]
push 0x10
push edi
push eax
push edx
push 0
xor edx, edx
mov dword [ecx + 0x144], 0
call fcn.004cb3e0
mov eax, dword [esp + 0x20]
add esp, 0x14
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x144], esi
lea esi, [eax + 0x144]
push 0x10
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x20]
push ecx
push ebx
push dword [ebp + 0x24]
mov ecx, eax
call fcn.004cb3e0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
add esp, 0x14
lea edx, [esp + 0x30]
push eax
call fcn.004cbf40
add esp, 4
test eax, eax
jne 0x4cb165
push 0x10
lea edx, [esp + 0x54]
lea ecx, [esp + 0x44]
call fcn.004ccfe0
add esp, 4
test edi, edi
jne 0x4caf2d
mov eax, dword [ebp + 0x24]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4cb03b
lea eax, [esp + 0x20]
mov esi, edi
sub esi, eax
mov eax, ebx
sub eax, edi
mov dword [esp + 0x18], eax
nop dword [eax]
dec ecx
mov eax, 0xf
mov dword [esp + 0x14], ecx
nop word [eax + eax]
add byte [esp + eax + 0x30], 1
jne 0x4caf6d
dec eax
cmp eax, 0xc
jge 0x4caf60
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
call fcn.004cbf40
add esp, 4
test eax, eax
jne 0x4cb165
mov eax, edi
lea ecx, [esp + 0x20]
or eax, ebx
or eax, ecx
test al, 3
jne 0x4cafc5
mov eax, dword [ebx]
xor eax, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edi + 4]
xor eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
xor eax, dword [esp + 0x28]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
jmp 0x4cb01f
lea eax, [esp + 0x2f]
xor edx, edx
lea ecx, [edi + 0xf]
cmp edi, eax
ja 0x4cafda
lea eax, [esp + 0x20]
cmp ecx, eax
jae 0x4cafe5
lea eax, [ebx + 0xf]
cmp edi, eax
ja 0x4cb010
cmp ecx, ebx
jb 0x4cb010
mov edi, dword [esp + 0x18]
nop dword [eax]
lea ecx, [esp + 0x20]
add ecx, edx
inc edx
lea eax, [esi + ecx]
mov al, byte [eax + edi]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, 0x10
jb 0x4caff0
mov edi, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
jmp 0x4cb01f
movups xmm1, xmmword [ebx]
movups xmm0, xmmword [esp + 0x20]
pxor xmm1, xmm0
movups xmmword [edi], xmm1
mov ecx, dword [esp + 0x14]
add edi, 0x10
add ebx, 0x10
mov dword [esp + 0x10], edi
add esi, 0x10
mov dword [ebp + 8], ebx
test ecx, ecx
jne 0x4caf50
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4cb090
mov eax, 0xf
add byte [esp + eax + 0x30], 1
jne 0x4cb055
dec eax
cmp eax, 0xc
jge 0x4cb048
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
call fcn.004cbf40
add esp, 4
test eax, eax
jne 0x4cb165
push esi
mov edx, ebx
lea ecx, [esp + 0x24]
call fcn.004ccfe0
add esp, 4
lea eax, [esp + 0x20]
push esi
push eax
push edi
call fcn.0041d1d0
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
xor esi, esi
xor edx, edx
test ebx, ebx
jle 0x4cb156
mov edi, dword [ebp + 0x18]
cmp ebx, 8
jb 0x4cb137
mov ecx, ebx
lea esi, [esp + 0x44]
and ecx, 0xfffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
mov eax, edi
sub esi, edi
nop
movd xmm2, dword [esi + eax - 4]
lea eax, [eax + 8]
movd xmm1, dword [eax - 8]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add edx, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [esi + eax - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [eax - 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp edx, ecx
jl 0x4cb0c0
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd esi, xmm3
cmp edx, ebx
jge 0x4cb156
lea eax, [esp + 0x40]
sub edi, eax
nop dword [eax]
lea eax, [esp + 0x40]
add eax, edx
inc edx
movzx ecx, byte [eax + edi]
movzx eax, byte [eax]
xor ecx, eax
or esi, ecx
cmp edx, ebx
jl 0x4cb140
neg esi
shr esi, 0x1f
neg esi
and esi, 0xffffff4c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret