def _crypt_audio_packet(packet: bytes, key: bytes) -> bytes:
    """Encrypt/decrypt a plaintext/encrypted audios stream payload. Skips encryption/decryption
    if packet is less than or equal to 0x140 bytes.
    """
    data = bytearray(packet)
    if len(data) > 0x140:
        for i in range(0x140, len(data)):
            data[i] ^= key[i % 0x20]

    return bytes(data)