C++ Problems

Issues related to Enigma Virtual Box
Post Reply
appsman
Posts: 3
Joined: Tue Dec 19, 2017 11:26 am

C++ Problems

Post by appsman »

Code: Select all

void HideModule(HINSTANCE hModule)
{
	DWORD dwPEB_LDR_DATA = 0;
	_asm
	{
		pushad;
		pushfd;
		mov eax, fs:[30h];
		mov eax, [eax + 0Ch];
		mov dwPEB_LDR_DATA, eax;
		mov esi, [eax + 0Ch];
		mov edx, [eax + 10h];
	LoopInLoadOrderModuleList:
		lodsd;
		mov esi, eax;
		mov ecx, [eax + 18h];
		cmp ecx, hModule;
		jne SkipA
			mov ebx, [eax]
			mov ecx, [eax + 4]
			mov[ecx], ebx
			mov[ebx + 4], ecx
			jmp InMemoryOrderModuleList
		SkipA :
		cmp edx, esi
			jne LoopInLoadOrderModuleList
		InMemoryOrderModuleList :
		mov eax, dwPEB_LDR_DATA
			mov esi, [eax + 14h]
			mov edx, [eax + 18h]
		LoopInMemoryOrderModuleList :
									lodsd
									mov esi, eax
									mov ecx, [eax + 10h]
									cmp ecx, hModule
									jne SkipB
									mov ebx, [eax]
									mov ecx, [eax + 4]
									mov[ecx], ebx
									mov[ebx + 4], ecx
									jmp InInitializationOrderModuleList
								SkipB :
		cmp edx, esi
			jne LoopInMemoryOrderModuleList
		InInitializationOrderModuleList :
		mov eax, dwPEB_LDR_DATA
			mov esi, [eax + 1Ch]
			mov edx, [eax + 20h]
		LoopInInitializationOrderModuleList :
											lodsd
											mov esi, eax
											mov ecx, [eax + 08h]
											cmp ecx, hModule
											jne SkipC
											mov ebx, [eax]
											mov ecx, [eax + 4]
											mov[ecx], ebx
											mov[ebx + 4], ecx
											jmp Finished
										SkipC :
		cmp edx, esi
			jne LoopInInitializationOrderModuleList
		Finished :
		popfd;
		popad;
	}
}
using this code gives an error.
Image

http://prntscr.com/hpitk9
Enigma
Site Admin
Posts: 2939
Joined: Wed Aug 20, 2008 2:24 pm

Re: C++ Problems

Post by Enigma »

Hi, please give us a compiled example, this is not clear enough how this code could cause such error.
appsman
Posts: 3
Joined: Tue Dec 19, 2017 11:26 am

Re: C++ Problems

Post by appsman »

Image

I am getting the error that cannot find functions.


Image

no error work normally

I mean I get an error when I use this and only use virtual box. Enigma protector work normally.
Enigma
Site Admin
Posts: 2939
Joined: Wed Aug 20, 2008 2:24 pm

Re: C++ Problems

Post by Enigma »

Are you trying to add this dll into Virtual Box, right? Or you pack this dll with Virtual Box?

Can you post here non protected dll + exe that use it + .evb or .enigma project file that you use?
appsman
Posts: 3
Joined: Tue Dec 19, 2017 11:26 am

Re: C++ Problems

Post by appsman »

yes sir I select virtual files options and add a dll. (dll file not packed or protect)

https://we.tl/5WUZrQBJae
Post Reply