Function at 0x4c2670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.005e28b0
push ebx
mov ebx, dword [ebp + 0x14]
movzx eax, byte [ebx]
movzx edx, byte [ebx + 2]
push esi
push edi
mov edi, ecx
movzx ecx, byte [ebx + 1]
shl ecx, 0x10
mov esi, dword [ebp + 8]
shl edx, 8
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebx + 3]
or eax, edx
movzx edx, byte [ebx + 5]
or eax, ecx
movzx ecx, byte [ebx + 4]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [ebx + 6]
shl edx, 8
or ecx, edx
movzx edx, byte [ebx + 7]
or ecx, edx
cmp dword [ebp + 0x18], 0
mov edx, dword [ebp + 0xc]
je 0x4c28a9
add edx, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], ecx
js 0x4c27a1
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp + 0xc], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp - 8], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 4]
xor eax, dword [ebp - 4]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi + 6]
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 7]
or ecx, edx
xor ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
add esi, 8
call fcn.004c1cd0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
mov edx, eax
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
mov byte [edi + 5], dl
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
add esp, 8
add edi, 8
dec dword [ebp + 0xc]
mov dword [ebp + 0x18], ecx
jne 0x4c26f2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp edx, 0xfffffff8
je 0x4c2a4f
lea esi, [esi + edx + 8]
mov dword [ebp + 8], esi
add edx, 7
xor esi, esi
mov dword [ebp + 0xc], 0
cmp edx, 7
ja case.default.0x4c27c6
jmp dword [edx*4 + 0x4c2a8c]
mov edx, dword [ebp + 8]
movzx esi, byte [edx - 1]
dec edx
mov dword [ebp + 0xc], esi
jmp 0x4c27dd
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 8
or dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 0x10
or dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 0x18
or dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
movzx esi, byte [edx - 1]
dec edx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 8
or esi, edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 0x10
or esi, edx
mov edx, dword [ebp + 8]
movzx edx, byte [edx - 1]
shl edx, 0x18
or esi, edx
mov edx, dword [ebp + 0xc]
jmp 0x4c2846
mov edx, esi
xor esi, eax
mov eax, dword [ebp + 0x10]
xor edx, ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
call fcn.004c1cd0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, esi
shr edx, 0x18
mov byte [edi], dl
mov edx, esi
shr edx, 0x10
mov byte [edi + 1], dl
mov edx, esi
shr edx, 8
mov byte [edi + 2], dl
movzx edx, byte [ebp - 0x18]
mov byte [edi + 3], dl
mov edx, ecx
shr edx, 0x18
mov byte [edi + 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [edi + 5], dl
mov edx, ecx
add esp, 8
shr edx, 8
mov byte [edi + 6], dl
movzx edx, cl
mov eax, esi
mov byte [edi + 7], dl
jmp 0x4c2a4f
add edx, 0xfffffff8
mov dword [ebp + 0x18], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
js 0x4c298d
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp - 0x10], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp - 8], eax
lea esp, [esp]
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 4]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi + 6]
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 7]
or ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
add esi, 8
call fcn.004c21a0
mov eax, dword [ebp + 0x18]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x14]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
mov edx, eax
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
mov byte [edi + 5], dl
mov edx, dword [ebp + 0xc]
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov ecx, dword [ebp - 0xc]
add esp, 8
add edi, 8
dec dword [ebp - 0x10]
mov dword [ebp + 0x18], ecx
mov dword [ebp - 4], edx
jne 0x4c28d0
mov edx, dword [ebp - 8]
mov eax, ecx
mov ecx, dword [ebp - 4]
cmp edx, 0xfffffff8
je 0x4c2a4f
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 4]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 6]
movzx esi, byte [esi + 7]
shl edx, 8
or edx, esi
or ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004c21a0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
xor eax, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lea edi, [edi + edx + 8]
add edx, 7
add esp, 8
cmp edx, 7
ja case.default.0x4c2a0a
jmp dword [edx*4 + 0x4c2aac]
dec edi
mov byte [edi], cl
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
mov dword [ebp - 4], ecx
mov edx, eax
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 1], dl
mov edx, eax
shr edx, 8
mov byte [ebx + 2], dl
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
mov byte [ebx + 5], dl
pop edi
shr eax, 8
mov byte [ebx + 6], al
pop esi
mov byte [ebx + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret