¤Þ¤º¡¢dll¤Î¥Ø¥Ã¥À¤Ë¤Ï´Ø¿ô¤Î̾Á°¤·¤«¤¢¤ê¤Þ¤»¤ó¡£¥·¥°¥Í¥Á¥ã¤Ï¤¢¤ê¤Þ¤»¤ó¡£
(IMAGE_EXPORT_DIRECTORY¤ò»²¾È)
¤è¤Ã¤Æ¡¢ImageDirectoryEntryToData ¤È¤«¤ÎAPI¸Æ¤Ó½Ð¤·¤Æ¤â̵Íý¤Ç¤¹¡£
***
¤´Â¸ÃΤ«¤È»×¤¤¤Þ¤¹¤¬¡¢dllÆâ¤Î´Ø¿ô¤Ï¡Ê¤â¤È¤ÏC¤È¤«¤Ç½ñ¤«¤ì¤Þ¤¹¤¬¡Ëµ¡³£¸ì¤Ç½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£
µ¡³£¸ì¤Ë¤Ï´Ø¿ô¤È¤¤¤¦¤â¤Î¤¬¤¢¤ê¤Þ¤»¤ó¡£
C¥³¡¼¥É¤¬¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤ë¤È¡¢¡Ö°ú¿ô¡×¤ò¥¹¥¿¥Ã¥¯¤ËÀѤó¤Ç¡Ê¥é¥Ù¥ë¡Ë¤ËÈô¤ó¤Ç¡¢¤½¤ÎÀè¤Ç¥¹¥¿¥Ã¥¯¤«¤é¡Ö°ú¿ô¡×
¤ò¼è¤ê½Ð¤·¡¢½èÍý¤¬½ª¤ï¤ë¤È¤â¤È¤ËÌá¤ë¡¢¤È¤¤¤¦½èÍý¤ËÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£
HSP¤Ç½ñ¤¯¤È¤³¤ó¤Ê´¶¤¸¤Ç¤¹¤«¤Í
°ú¿ô¥ê¥¹¥È = 1, 2, 3
gosub *Ϥòµá¤á¤ë
mes Ìá¤êÃÍ
*Ϥòµá¤á¤ë
°ú¿ô1 = °ú¿ô¥ê¥¹¥È(0)
°ú¿ô2 = °ú¿ô¥ê¥¹¥È(1)
°ú¿ô3 = °ú¿ô¥ê¥¹¥È(2)
Ìá¤êÃÍ = °ú¿ô1 + °ú¿ô2 + °ú¿ô3
return
(HSP¤Ë¤Ï¥¹¥¿¥Ã¥¯¤¬É¸½à¤Ç¤Ê¤¤¤Î¤Ç¤½¤³¤éÊÕ¤ÏÌܤò¤Ä¤Ö¤Ã¤Æ¤¯¤À¤µ¤¤¡Ë
¤Ä¤Þ¤ê¡¢µ¡³£¸ì¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤ë¤È¡Ê¾¯¤Ê¤¯¤È¤â86·Ï¤Ç¤Ï¡ËC¤Ë¤ª¤±¤ë´Ø¿ô¥·¥°¥Í¥Á¥ã¤Î¤è¤¦¤Ê¤â¤Î¤Ï
Á´¤Æ¼º¤ï¤ì¤Þ¤¹¡£°ú¿ô¤ò¼è¤ê½Ð¤¹½èÍý¤ËÃÖ¤´¹¤¨¤é¤ì¤ë¤ï¤±¤Ç¤¹¡£
***
¤¿¤À¡¢°ú¿ô¤Î¿ô¤ò¼è¤ê½Ð¤¹ÊýË¡¤¬Á´¤¯Ìµ¤¤¤«¤È¸À¤ï¤ì¤ë¤È¡¢¤½¤¦¤¤¤¦¤³¤È¤â¤Ê¤¤¡©¤«¤â¤·¤ì¤Þ¤»¤ó¡£
°ú¿ô¤Ë´Ø¤¹¤ë¾ðÊ󤬤ʤ¯¤Ê¤Ã¤Æ¡¢°ú¿ô¤ò¼è¤ê½Ð¤¹½èÍý¤ËÃÖ¤´¹¤¨¤é¤ì¤ë¤È¸À¤¤¤Þ¤·¤¿¤¬¡¢¤½¤ì¤Ï¤Ä¤Þ¤ê
¡Ö°ú¿ô¤ò¼è¤ê½Ð¤¹½èÍý¡×¤ò²òÀϤ¹¤ì¤Ð°ú¿ô¤Î¿ô¤¬¤ï¤«¤ë¡¢¤È¤¤¤¦¤³¤È¤Ç¤¹¡£
¾å¤ÎÎã¤Ë¤ª¤±¤ë
°ú¿ô1 = °ú¿ô¥ê¥¹¥È(0)
°ú¿ô2 = °ú¿ô¥ê¥¹¥È(1)
°ú¿ô3 = °ú¿ô¥ê¥¹¥È(2)
¤ÎÉôʬ¤Ç¤¹¤Í¡£
¤ä¤Ã¤¿¤³¤È¤Ê¤¤¤«¤é¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢ret¤Þ¤¿¤Ïpush¤¬½Ð¤Æ¤¯¤ë¤Þ¤Çpop¤Î¿ô¤ò¿ô¤¨¤ì¤Ð¹Ô¤±¤ë¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¡©
µ¡³£¸ì¤òµÕ¥¢¥»¥ó¥Ö¥ê¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢FLOSS¤ÎµÕ¥¢¥»¥ó¥Ö¥ê¥é¥¤¥Ö¥é¥ê¤Ê¤ó¤Æõ¤»¤Ð¤¤¤¯¤é¤Ç¤â¤¢¤ë¤Î¤Ç¡¢
Îã:
https://www.capstone-engine.org
´èÄ¥¤ì¤Ð¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¤è¡£
¤Þ¤¢¡¢¤À¤¤¤Ö´èÄ¥¤ë¤³¤È¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹¤¬¡£
¤½¤¦¤«¤ó¤¿¤ó¤Ë¤Ç¤¤ë¤â¤Î¤Ê¤é狼¤¬ºî¤Ã¤Æ¤ë¤À¤í¤¦¤·¤Í¡£