Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Procedure too large error #7

Open
null-event opened this issue Jan 14, 2022 · 1 comment
Open

Procedure too large error #7

null-event opened this issue Jan 14, 2022 · 1 comment

Comments

@null-event
Copy link

Hello,

When using VBA-RunPE as instructed in the readme:

./pe2vba.py <name.exe>

and inputting the generated .vba into the editor and trying to run I am receiving a "compile error: procedure too large."

Is this expected?

Thanks!

@itm4n
Copy link
Owner

itm4n commented Jan 15, 2022

Hello,

Here is the thing with VBA, the length of each line is limited and the length of each procedure is also limited. To work around that, the Python script splits the input EXE into chunks and then creates a procedure that collects all the chunks to reconstruct the EXE in memory.
Without more details from your part about the error, I suspect that your input EXE is too large, which causes the last procedure to grow past the size limit.
This code was never intended to be used to embed large executables. The Python script could surely be improved to address this kind of use case, but I won't do that.
Or perhaps it's something else, but again, I cannot tell without more details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants