““But when the Helper comes, whom I will send to you from the Father, the Spirit of truth, who proceeds from the Father, he will bear witness about me. And you also will bear witness, because you have been with me from the beginning.”
This says they did not have the Holy Spirit
“And when he had said this, he breathed on them and said to them, “Receive the Holy Spirit.”
This shows that Judas was not present when they did receive the Holy Spirit
“Now this he said about the Spirit, whom those who believed in him were to receive, for as yet the Spirit had not been given, because Jesus was not yet glorified.”
This confirms that the Spirit had not yet been given prior to the Crucifixion and resurrection.
Judas could not have had the Holy Spirit residing in him, as the disciples didn’t either.
The Spirit appears to have been removed from men as a permanent resident in Genesis
“Then the Lord said, “My Spirit shall not abide in man forever, for he is flesh””
But returned once man could be redeemed
“The wind blows where it wishes, and you hear its sound, but you do not know where it comes from or where it goes. So it is with everyone who is born of the Spirit.””
Which connected to
“But to all who did receive him, who believed in his name, he gave the right to become children of God, who were born, not of blood nor of the will of the flesh nor of the will of man, but of God.”
These who believed also were born of God, whereas many disciples abandoned Jesus and Judas though chosen by Jesus was a “devil”
“But there are some of you who do not believe.” (For Jesus knew from the beginning who those were who did not believe, and who it was who would betray him.)
Jesus answered them, “Did I not choose you, the twelve? And yet one of you is a devil.””
John 6:64, 70
Being born of the Spirit and in dwelt with the Spirit could only take place after the resurrection.
“Blessed be the God and Father of our Lord Jesus Christ! According to his great mercy, he has caused us to be born again to a living hope through the resurrection of Jesus Christ from the dead,”
1 Peter 1:3