Đã hoàn thành

Retrieve locations of Exception handlers (from "catch" instruction) in a given PE file -- 2


I need a C/C++ function that returns the address of the Windows Exception handlers inside a specific memory range in a compiled PE file (32-bit, 64-bit).

Suppose the following code:


int x = 5;



if (x == 0) throw(1ULL);

else if (x % 2) throw("x must be even");

x *= 4;


catch (unsigned long long e)


std::cerr << e;


catch (const char *e)


std::cerr << e;



As you can see there are 2 exception handlers. Now the source code is compiled as an EXE/DLL.

Suppose that the above code starts at RVA = 0x401000 and ends at 0x401100. I will pass to your function something like:

GetNExceptionsInfoInBlock(filename, 0x401000, 0x401100, std::vector &info);

Your function will fill the vector with exception RVAs found in the given block of code.

This can be done by inspecting the MAGIC number where the exception handling is generated by Visual Studio. Please, refer to:

[url removed, login to view]

[url removed, login to view]

Attached you have a test example that you can compile and the expected output about handlers found inside a block (file "[url removed, login to view]")

If you need further information, let me know please.

NOTE: Your code should be implemented in C or C++ and compilable with Visual Studio.


Kĩ năng: Lập trình C, x86/x64 Assembler

Xem nhiều hơn: source code digital signature details given file, write program calculates crc given file, create linked list given txt file java, obfuscate pe file, catch swf file net, move file using java given path table, vb6 read instruction file, sql 2005 query ldf file locations, catch form csv file php, assembler instruction open file output mode, freeaspupload updateform catch file name, download file given authentication, check given file password protected cnet, create dll file given source code, select file handlers unix

Về Bên Thuê:
( 62 nhận xét ) Jerez de la Frontera, Spain

ID dự án: #12571152

Được trao cho:


--- just copy & past --- I have a good news I investigated how RTTI information stored in binaries, so I can implement this functions. But this will require a little bit more time than I expected. For x86 I need to us Thêm

$333 USD trong 2 ngày
(4 Đánh Giá)

7 freelancer đang chào giá trung bình $470 cho công việc này


I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using c++ under linux environ Thêm

$300 USD trong 7 ngày
(82 Nhận xét)
$300 USD trong 5 ngày
(68 Nhận xét)
$555 USD trong 10 ngày
(18 Nhận xét)

I've mastered software reverse engineering/C/C++/C#/Java/Win API/Assembly programming and helped many customers. Especially, I've rich experiences of unpacking Themida/WinLicense, VmProtect, and other packing modules Thêm

$500 USD trong 3 ngày
(19 Nhận xét)

I’m Windows kernel and user mode expert with more than 15 year experience in C/C++. I did projects in following domains: - Windows file system driver, file system filters (legacy and minifilter) and recognizers, netwo Thêm

$750 USD trong 10 ngày
(1 Nhận xét)

Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project befor Thêm

$555 USD trong 6 ngày
(0 Nhận xét)