Function at 0x4cb170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [esp + 0x14], esi
mov edx, ecx
mov dword [esp + 0x20], edi
and ecx, 0xf
shr edx, 4
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edi
cmp ecx, 0xc
jne 0x4cb1cd
movq xmm0, qword [eax]
mov ecx, esi
mov eax, dword [eax + 8]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], case.0x48b483.27
jmp 0x4cb208
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 0x144]
push 0x10
mov dword [edx + 0x144], 0
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, dword [esp + 0x20]
xor edx, edx
push eax
push 0
call fcn.004cb3e0
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0x144], esi
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x50], xmm0
test edx, edx
je 0x4cb321
lea eax, [esp + 0x30]
mov esi, edi
sub esi, eax
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [esp + 0x24], eax
nop dword [eax + eax]
dec edx
mov eax, 0xf
mov dword [esp + 0x1c], edx
nop word [eax + eax]
add byte [esp + eax + 0x40], 1
jne 0x4cb24d
dec eax
cmp eax, 0xc
jge 0x4cb240
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x44]
call fcn.004cbf40
add esp, 4
test eax, eax
jne 0x4cb3d4
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
mov eax, edi
or eax, ecx
or eax, edx
test al, 3
jne 0x4cb2a5
mov eax, dword [ecx]
xor eax, dword [esp + 0x30]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edi + 4]
xor eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
xor eax, dword [esp + 0x38]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
xor eax, dword [esp + 0x3c]
mov dword [edi + 0xc], eax
jmp 0x4cb300
lea eax, [esp + 0x3f]
xor edx, edx
cmp edi, eax
ja 0x4cb2be
lea ecx, [esp + 0x30]
lea eax, [edi + 0xf]
cmp eax, ecx
mov ecx, dword [esp + 0x18]
jae 0x4cb2cc
lea eax, [ecx + 0xf]
cmp edi, eax
ja 0x4cb2f1
lea eax, [edi + 0xf]
cmp eax, ecx
jb 0x4cb2f1
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
add ecx, edx
lea eax, [edi + esi]
inc edx
mov al, byte [eax + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, 0x10
jb 0x4cb2d0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
jmp 0x4cb300
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [esp + 0x30]
pxor xmm1, xmm0
movups xmmword [edi], xmm1
mov edx, dword [esp + 0x1c]
add ecx, 0x10
add edi, 0x10
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
add esi, 0x10
mov dword [esp + 0x28], edi
test edx, edx
jne 0x4cb230
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4cb36d
mov eax, 0xf
nop
add byte [esp + eax + 0x40], 1
jne 0x4cb33d
dec eax
cmp eax, 0xc
jge 0x4cb330
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x44]
call fcn.004cbf40
add esp, 4
test eax, eax
jne 0x4cb3d4
push esi
push dword [esp + 0x1c]
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.004cd260
add esp, 8
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4cb3d2
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
push esi
push dword [ebp + 0xc]
push dword [esp + 0x2c]
push edi
call fcn.004cb3e0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
add esp, 0x14
lea edx, [esp + 0x50]
push eax
call fcn.004cbf40
add esp, 4
test eax, eax
jne 0x4cb3d4
push dword [ebp + 0x1c]
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.004ccfe0
add esp, 4
cmp dword [ebp + 8], 0
jne 0x4cb3d2
cmp dword [ebp + 0xc], 0
jne 0x4cb3d2
mov eax, dword [esp + 0x14]
mov dword [eax + 0x144], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret