Set Window Anti

{Welcome to Power Tool Partner}

Set Window Anti

Programming for DEP environment in Windows

Data Execution Prevention

Data Execution Prevention (DEP) technology was introduced in Windows XP SP2/Windows 2003 SP1. The aim of DEP was to disable execution of the code placed into memory regions marked as data: heap, stack. It was necessary to decrease the number of security vulnerabilities caused by a lot of viruses, rootkits and exploits that used the techniques based on running of code in Stack.

DEP technology is based on NX bit CPU technology which allows to mark memory pages as not executable and prevent executing of the code from such areas.

Hardware DEP prevents:

  1. Code execution in Heap. If Heap was created without HEAP_CREATE_ENABLE_EXECUTE flag you won’t be able to run code in this Heap.
  2. Code execution in Stack.

Software DEP checks:

  1. If the exception handler is registered in the application exception table.
  2. Since Windows Vista it checks the address of the exception handler. The address of the exception handler must belong to the memory region with MEM_IMAGE attribute.

The virtual machine software doesn’t emulate hardware DEP so there’s only software DEP enabled.

Problems

What problems can such checks cause for the people, who are not interested in writing malware?

First of all it became a headache for the software protections. The Software Protectors are decrypting the code into memory and running it there. Also they are using exception handlers for anti-debugging tricks.

The second problem is met by the Simulator Software, the software which actually loads the executable binaries as data file and simulates processes and threads running within it. It also needs to run the code from “data memory” and simulate exception handlers.

Can DEP be disabled? Of course!

Disabling DEP

Manual way

The first way is the easiest – disable DEP for you process. It can be done manually via “System Propeties” – “Advanced” – “Performance Settings”. In the “Performance Settings” window select the “Data Execution Prevention” tab. There you can disable DEP for the executable file by your choice:

Then you’ll have to reboot the system to apply the changes.

This is the manual, official way. But there is a problem: you won’t be able to add the .NET executables to the exclusions list in Windows Vista. Instead you’ll have got the error message:

This message is caused by IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit, which is set in the PE header by Visual Studio compiler by default. There’s no way to disable such bit via project settings in Visual Studio for .NET applications (though there’s a setting for native applications in VS 2008). It can be done via edit bin utility, which is the part of Visual Studio:

editbin.exe /NXCOMPAT:NO

For the native executables you can disable it in the project properties in VS 2008:

Manual way 2

In Windows Vista DEP can be disabled for the whole system. It can be done via bcdedit tool.

bcdedit /set {current} nx AlwaysOff

In Windows XP you can edit boot.ini file and change noexecute option:

/noexecute=alwaysoff

Programmatically

There are actually undocumented API in sysdm.cpl which allows to control DEP settings:

int __stdcall EnableExecuteProtectionSupportW();
int __stdcall ModifyExecuteProtectionSupportW(int, int, wchar_t *OptionName, int);
int __stdcall NoExecuteAddFileOptOutList(LPCWSTR lpSrc);

NoExecuteAddFileOptOutList() function allows to add the executable file into DEP exclusions list.

Learn about other examples of Computer Security techniques from Apriorit Case Studies.

About the Author


Are Microsoft anti-virus & parental controls up to the job?

I have just got a new Windows 7 PC & set up the anti virus & parental controls. Do we need to get another software prog (Macafee or Norton etc) as a belt & braces approach to security or will the MS one do?

antivirus tips and antivirus download:

http://best-computer-antivirus.cn

http://best-computer-antivirus.cn


1 4 x 5 16 Dual Side Flute Straight Router Bits
1 4 x 5 16 Dual Side Flute Straight Router Bits
$4.53
Time Remaining: 34m
Buy It Now for only: $4.53

Silver Tone Steel Tool Round Nose Core Box Router Bit 1 2 x 2
Silver Tone Steel Tool Round Nose Core Box Router Bit 1 2 x 2
$10.45
Time Remaining: 37m
Buy It Now for only: $10.45

8 pc 1 4 Shank Router Bit Set Tungsten Carbide New Bits
8 pc 1 4 Shank Router Bit Set Tungsten Carbide New Bits
$9.75
Time Remaining: 44m

SEARS ROUTER CRAFTER
SEARS ROUTER CRAFTER
$124.99
Time Remaining: 45m
Buy It Now for only: $145.00

Porter Cable 1 3 4 HP Fixed Base Router Model  690LR Type 2
Porter Cable 1 3 4 HP Fixed Base Router Model 690LR Type 2
$75.00 (2 Bids)
Time Remaining: 50m

Dual Flute Round Over Rounding Router Bit Tool 1 2 x 1
Dual Flute Round Over Rounding Router Bit Tool 1 2 x 1
$7.35
Time Remaining: 57m
Buy It Now for only: $7.35

BOSCH NEW COLT VARIABLE SPEED ROUTER KIT PR20EVSK WRNTY
BOSCH NEW COLT Variable Speed ROUTER KIT PR20EVSK WRNTY
$98.00
Time Remaining: 1h 1m
Buy It Now for only: $98.00

BOSCH 85592MC 1 4 ROMAN OGEE ROUTER BIT EDGE 1 2SHAFT
BOSCH 85592MC 1 4 ROMAN OGEE ROUTER BIT EDGE 1 2SHAFT
$29.95
Time Remaining: 1h 3m
Buy It Now for only: $29.95

Freud 80 104 3 16 Radius Traditional Beading Router
Freud 80 104 3 16 Radius Traditional Beading Router
$31.69
Time Remaining: 1h 10m
Buy It Now for only: $31.69

1pc 49501 Amana Corner Round Over Router Bit 3 4CD x 3 8CL x 1 2SH x 5 32R
1pc 49501 Amana Corner Round Over Router Bit 3 4CD x 3 8CL x 1 2SH x 5 32R
$24.99
Time Remaining: 1h 11m
Buy It Now for only: $24.99
BOSCH Carbide Tip Router Bit 85205MC 1 4 Cove
BOSCH Carbide Tip Router Bit 85205MC 1 4 Cove
$19.95
Time Remaining: 1h 11m
Buy It Now for only: $19.95

1 4 x 5 16 Rounding Over Roundover Router Bit 2 Flute
1 4 x 5 16 Rounding Over Roundover Router Bit 2 Flute
$5.27
Time Remaining: 1h 11m
Buy It Now for only: $5.27

Bosch Tilt Base for Palm Router PR005 NEW
Bosch Tilt Base for Palm Router PR005 NEW
$17.52 (9 Bids)
Time Remaining: 1h 19m

Lot 5 CRAFTSMAN CARBIDE ROUTER BIT new
Lot 5 CRAFTSMAN CARBIDE ROUTER BIT new
$57.98
Time Remaining: 1h 24m
Buy It Now for only: $57.98

Irwin Carbide Router Bit 1 4R Roman Ogee 1 4 Shank
Irwin Carbide Router Bit 1 4R Roman Ogee 1 4 Shank
$9.79
Time Remaining: 1h 25m
Buy It Now for only: $9.79

Detail Engraving 1 2 x 5 8 Point Carving Router Bit
Detail Engraving 1 2 x 5 8 Point Carving Router Bit
$5.80
Time Remaining: 1h 40m
Buy It Now for only: $5.80

CRAFTSMAN SEARS ROUTER DOVETAIL TEMPLATE KIT NEW IN PACKAGE 9 2579
CRAFTSMAN SEARS ROUTER DOVETAIL TEMPLATE KIT NEW IN PACKAGE 9 2579
$79.99
Time Remaining: 1h 41m
Buy It Now for only: $79.99

Freud 38 352 1 1 2 Classical Ogee Router Bit
Freud 38 352 1 1 2 Classical Ogee Router Bit
$32.55
Time Remaining: 1h 44m
Buy It Now for only: $32.55

Bosch Fixed Router Base Model RA1161 for Bosch 1617 Routers
Bosch Fixed Router Base Model RA1161 for Bosch 1617 Routers
$35.00 (1 Bid)
Time Remaining: 1h 47m

1 2 x 3 4 Woodorking Round Shank Half Round Router Bit
1 2 x 3 4 Woodorking Round Shank Half Round Router Bit
$9.70
Time Remaining: 1h 52m
Buy It Now for only: $9.70

Craftsman 6 Piece Clear Router Plunge Sub Base Combo Bosch Porter Cable Dewalt
Craftsman 6 Piece Clear Router Plunge Sub Base Combo Bosch Porter Cable Dewalt
$22.95
Time Remaining: 1h 56m
Buy It Now for only: $22.95

Vermont American 1 4 Router Bit 22070 Veining
Vermont American 1 4 Router Bit 22070 Veining
$2.99
Time Remaining: 1h 56m
Buy It Now for only: $2.99

Vermont American 1 4 Router Bit 22015 Straight
Vermont American 1 4 Router Bit 22015 Straight
$2.99
Time Remaining: 1h 56m
Buy It Now for only: $2.99

Vermont American Router Bit Bevel Trim 22597 7 DEG
Vermont American Router Bit Bevel Trim 22597 7 DEG
$8.99
Time Remaining: 1h 56m
Buy It Now for only: $8.99

3pc Carbide Raised Panel Stile Rail Bits Set 1 2 Router
3pc Carbide Raised Panel Stile Rail Bits Set 1 2 Router
$22.99
Time Remaining: 1h 56m

CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
$11.99
Time Remaining: 2h 2m
Buy It Now for only: $13.99

CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
$11.99
Time Remaining: 2h 3m
Buy It Now for only: $13.99

CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
$11.99
Time Remaining: 2h 3m
Buy It Now for only: $13.99

CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
CRAFTSMAN PRO 3 4 DIAMETER x 90 DEGREE V GROOVING ROUTER BIT MADE IN ITALY NEW
$11.99
Time Remaining: 2h 4m
Buy It Now for only: $13.99

Dual Flute Woodworking Round Over Router Bit 1 4 x 3 8
Dual Flute Woodworking Round Over Router Bit 1 4 x 3 8
$5.24
Time Remaining: 2h 4m
Buy It Now for only: $5.24

Freud 38 102 Roman Ogee Bit 1 3 8 Router Bit
Freud 38 102 Roman Ogee Bit 1 3 8 Router Bit
$32.55
Time Remaining: 2h 15m
Buy It Now for only: $32.55

Freud 30 104 3 8 Inch Radius Cove Router Bit
Freud 30 104 3 8 Inch Radius Cove Router Bit
$31.27
Time Remaining: 2h 18m
Buy It Now for only: $31.27

CMT 83899311 Roundover Router Bit 1 2 Inch Shank
CMT 83899311 Roundover Router Bit 1 2 Inch Shank
$101.80
Time Remaining: 2h 32m
Buy It Now for only: $101.80

Woodworking 1 4 x 3 16 Dual Flute Cove Box Router Bit
Woodworking 1 4 x 3 16 Dual Flute Cove Box Router Bit
$4.58
Time Remaining: 2h 46m
Buy It Now for only: $4.58

Craftsman Single Speed 175 HP Fixed Base Router 95 Amp
Craftsman Single Speed 175 HP Fixed Base Router 95 Amp
$49.95
Time Remaining: 2h 58m

Brand New Task Force Plunge Corded Router
Brand New Task Force Plunge Corded Router
$60.00
Time Remaining: 3h 3m
Buy It Now for only: $100.00

AS IS CRAFTSMAN 32017541 FIXED BASE ROUTER
AS IS CRAFTSMAN 32017541 FIXED BASE ROUTER
$10.00 (6 Bids)
Time Remaining: 3h 4m

Sears Craftsman Router accessory Template set Model 3352573 new old stock
Sears Craftsman Router accessory Template set Model 3352573 new old stock
$15.00
Time Remaining: 3h 15m

BOSCH RA 1054 DELUXE ROUTER GUIDE
BOSCH RA 1054 DELUXE ROUTER GUIDE
$14.99 (1 Bid)
Time Remaining: 3h 25m

Irwin Carbide Router Bit 3 8 x 9 Dovetail 1 2 Shank
Irwin Carbide Router Bit 3 8 x 9 Dovetail 1 2 Shank
$9.79
Time Remaining: 3h 25m
Buy It Now for only: $9.79

1 4 x 1 4 Double Flute Straight Router Bit Cutter New
1 4 x 1 4 Double Flute Straight Router Bit Cutter New
$4.87
Time Remaining: 3h 39m
Buy It Now for only: $4.87

BOSCH ROUTER 1601 WORKS GREAT
BOSCH ROUTER 1601 WORKS GREAT
$35.00
Time Remaining: 3h 45m
Buy It Now for only: $40.00

12 PC CARBIDE ROUTER BIT Set 1 4 w Case Woodworking
12 PC CARBIDE ROUTER BIT Set 1 4 w Case Woodworking
$9.99
Time Remaining: 3h 46m

Freud 04 124 3 8 X 1 Double Flute Straight Router Bit with 1 4 Shank NEW
Freud 04 124 3 8 X 1 Double Flute Straight Router Bit with 1 4 Shank NEW
$15.99
Time Remaining: 3h 57m
Buy It Now for only: $15.99

Long Blade Two Flute Straight Router Bits 1 4 x 1 4
Long Blade Two Flute Straight Router Bits 1 4 x 1 4
$4.70
Time Remaining: 4h 8m
Buy It Now for only: $4.70

6pc 1 2 Carbide ROUTER BIT SET w Wood Case shaper tool
6pc 1 2 Carbide ROUTER BIT SET w Wood Case shaper tool
$59.99
Time Remaining: 4h 15m

NEWRIDGID RBK1032 Universal Router Bushing Kit
NEWRIDGID RBK1032 Universal Router Bushing Kit
$24.99
Time Remaining: 4h 20m
Buy It Now for only: $28.99

NEWRIDGID RBK1032 Universal Router Bushing Kit
NEWRIDGID RBK1032 Universal Router Bushing Kit
$24.99
Time Remaining: 4h 20m
Buy It Now for only: $28.99

NEWRIDGID RBK1032 Universal Router Bushing Kit
NEWRIDGID RBK1032 Universal Router Bushing Kit
$24.99
Time Remaining: 4h 20m
Buy It Now for only: $28.99

NEWRIDGID RBK1032 Universal Router Bushing Kit
NEWRIDGID RBK1032 Universal Router Bushing Kit
$24.99
Time Remaining: 4h 20m
Buy It Now for only: $28.99

NEWRIDGID RBK1032 Universal Router Bushing Kit
NEWRIDGID RBK1032 Universal Router Bushing Kit
$24.99
Time Remaining: 4h 20m
Buy It Now for only: $28.99

NEWRIDGID RBK1032 Universal Router Bushing Kit
NEWRIDGID RBK1032 Universal Router Bushing Kit
$24.99
Time Remaining: 4h 20m
Buy It Now for only: $28.99

PORTER CABLE 2907650PC TONGUE AND GROOVE ASSEMBLY ROUTER BIT 1 2 INCH
PORTER CABLE 2907650PC TONGUE AND GROOVE ASSEMBLY ROUTER BIT 1 2 INCH
$7.77 (3 Bids)
Time Remaining: 4h 20m

NEW 1 4 15PCS TUNGSTEN CARBIDE TIPPED ROUTER BIT FREE SHIPPING
NEW 1 4 15PCS TUNGSTEN CARBIDE TIPPED ROUTER BIT FREE SHIPPING
$24.99
Time Remaining: 4h 21m

35 ROUTER BIT SET 1 2 CARBIDE BITS KIT Half Inch Shank ALUMINUM CASE New
35 ROUTER BIT SET 1 2 CARBIDE BITS KIT Half Inch Shank ALUMINUM CASE New
$39.99
Time Remaining: 4h 30m

ROUTER BIT SET 15 piece 1 2 inch Shank CARBIDE TIP Deluxe Alluminum Case New
ROUTER BIT SET 15 piece 1 2 inch Shank Carbide Tip Deluxe Alluminum Case New
$16.99
Time Remaining: 4h 30m

1 2 inch ROUTER BIT SET 15 CARBIDE BITS KIT quarter Shank ALUMINUM CASE New
1 2 inch ROUTER BIT SET 15 CARBIDE BITS KIT quarter Shank ALUMINUM CASE New
$14.99 (1 Bid)
Time Remaining: 4h 30m

35 ROUTER BIT SET 1 4 inch CARBIDE BITS KIT Shank ALUMINUM CASE SAE New
35 ROUTER BIT SET 1 4 inch CARBIDE BITS KIT Shank ALUMINUM CASE SAE New
$39.99
Time Remaining: 4h 30m

Whiteside Straight Cut Router Bit 1dx1 1 4CL 1093
Whiteside Straight Cut Router Bit 1dx1 1 4CL 1093
$21.53
Time Remaining: 4h 39m
Buy It Now for only: $21.53

Whiteside Spiral Carbide Router Bit 1 4Dx1L RD2100
Whiteside Spiral Carbide Router Bit 1 4Dx1L RD2100
$16.85
Time Remaining: 4h 42m
Buy It Now for only: $16.85

Thank You.
We hope you found the

Set Window Anti

you were looking for.