flat assembler
Message board for the users of flat assembler.
Index
> Windows > Crypted function inside dll |
Author |
|
LocoDelAssembly 25 Mar 2009, 01:48
I haven't checked it completely but the first and fatal error is that you are XOR-encrypting instructions that contains relocations (for instance "push caption2" from the invoke macro).
The example you have seen somewhere probably was an EXE, not a DLL, so the fixups weren't a problem there but now they are. The following workaround will probably solve the problem (if it was only that): Code: ccode_begin: call inv delta: message2 db 'DLL3 Func',0 caption2 db 'DLL3',0 inv: pop eax lea ecx, [eax+message2-delta] ; lea ecx, [eax] would be the same here lea edx, [eax+caption2-delta] stdcall [eax+MessageBoxA-delta], HWND_DESKTOP, ecx, edx, MB_OK ; WARNING: EAX, ECX and EDX destroyed here code_end: |
|||
25 Mar 2009, 01:48 |
|
powerhead 25 Mar 2009, 07:30
Thanks! everything works now!
|
|||
25 Mar 2009, 07:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.