Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants