Skip to content

anch0vy/decompiler-and-tools-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c decompiler

source

  • elfparser.py
    • parse elf file(32bit,64bit)
    • find EP
    • find import functions addr and name
  • analyzeasm.py
    • find functions
  • type.py
    • define REG,ST type for emulating x86_64 cpu

TODO

  • meumani

test

target program : ls

python analyzeasm.py
[*]EP: 0x4029b0L
[*]found function num: 110
addr_start addr_end function_length analyzed_flag
0x405000L 0x405066L [102L, True]
0x40dc00L 0x40de7fL [639L, True]
0x40c000L 0x40c274L [628L, True]
0x40acb0L 0x40add4L [292L, True]
0x40f010L 0x40f044L [52L, True]
0x40aab0L 0x40aadbL [43L, True]
0x40de70L 0x40e017L [423L, True]
0x40b540L 0x40b686L [326L, True]
0x410f30L 0x410f53L [35L, True]
0x407020L 0x407110L [240L, True]
0x4114b0L 0x411557L [167L, True]
0x412790L 0x412808L [120L, True]
0x40efb0L 0x40efe6L [54L, True]
0x40a630L 0x40a6a3L [115L, True]
0x411640L 0x411787L [327L, True]
0x40f2b0L 0x40f307L [87L, True]
0x40c2f0L 0x40c4d1L [481L, True]
0x40f640L 0x410f28L [6376L, True]
0x405160L 0x4052fbL [411L, True]
0x40b3b0L 0x40b4a4L [244L, True]
0x411840L 0x411ca4L [1124L, True]
0x40b4b0L 0x40b537L [135L, True]
0x40d530L 0x40d572L [66L, True]
0x40f450L 0x40f52cL [220L, True]
0x4122a0L 0x412316L [118L, True]
0x412260L 0x412755L [1269L, True]
0x40b6b0L 0x40b6b5L [5L, True]
0x407c60L 0x407dabL [331L, True]
0x405310L 0x405338L [40L, True]
0x406050L 0x406097L [71L, True]
0x40c4e0L 0x40cf73L [2707L, True]
0x405070L 0x4050a2L [50L, True]
0x40ed80L 0x40ef2cL [428L, True]
0x40f5a0L 0x40f5e1L [65L, True]
0x40f290L 0x40f37cL [236L, True]
0x40de80L 0x40df25L [165L, True]
0x40a7c0L 0x40a82dL [109L, True]
0x40dc30L 0x40de6dL [573L, True]
0x40d490L 0x40d52aL [154L, True]
0x40a960L 0x40a9b2L [82L, True]
0x405b20L 0x406097L [1399L, True]
0x4060a0L 0x4061d4L [308L, True]
0x405f70L 0x406043L [211L, True]
0x40b380L 0x40b3a2L [34L, True]
0x412850L 0x4128b5L [101L, True]
0x411cb0L 0x411d59L [169L, True]
0x40f580L 0x410f28L [6568L, True]
0x40b2c0L 0x40b35fL [159L, True]
0x411420L 0x4114a7L [135L, True]
0x411800L 0x411838L [56L, True]
0x40e020L 0x40e0a9L [137L, True]
0x4054f0L 0x4055b4L [196L, True]
0x412760L 0x412788L [40L, True]
0x4085b0L 0x40945bL [3755L, True]
0x4115f0L 0x411635L [69L, True]
0x40da00L 0x40dbf5L [501L, True]
0x40aa40L 0x40aaa9L [105L, True]
0x40b260L 0x40b2b2L [82L, True]
0x412320L 0x412755L [1077L, True]
0x40bae0L 0x40bc84L [420L, True]
0x406fd0L 0x408319L [4937L, True]
0x40f050L 0x40f0cfL [127L, True]
0x406cf0L 0x406fcfL [735L, True]
0x40c290L 0x40c2e1L [81L, True]
0x40a500L 0x40a62dL [301L, True]
0x40cf80L 0x40d147L [455L, True]
0x410f60L 0x4113f8L [1176L, True]
0x407110L 0x4079d9L [2249L, True]
0x409f20L 0x40a4ecL [1484L, True]
0x40ef30L 0x40ef62L [50L, True]
0x412810L 0x412850L [64L, True]
0x4050b0L 0x405155L [165L, True]
0x40bd30L 0x40bdf1L [193L, True]
0x412940L 0x41295aL [26L, True]
0x405ae0L 0x406097L [1463L, True]
0x405950L 0x405a2dL [221L, True]
0x4061e0L 0x40b1ecL [20492L, True]
0x4066f0L 0x4067e2L [242L, True]
0x411d60L 0x4121ccL [1132L, True]
0x40f590L 0x410f28L [6552L, True]
0x4117b0L 0x4117d8L [40L, True]
0x4067f0L 0x406ce5L [1269L, True]
0x40ef70L 0x40ef81L [17L, True]
0x405b80L 0x405bd9L [89L, True]
0x412240L 0x412755L [1301L, True]
0x40a3d0L 0x40a4ecL [284L, True]
0x40ef90L 0x40efa1L [17L, True]
0x40e1c0L 0x40ed80L [3008L, True]
0x404fa0L 0x404ff7L [87L, True]
0x40d2f0L 0x40d381L [145L, True]
0x405380L 0x4054ebL [363L, True]
0x40e0b0L 0x40e1b4L [260L, True]
0x40ace0L 0x40add4L [244L, True]
0x407db0L 0x408319L [1385L, True]
0x40d580L 0x40d94aL [970L, True]
0x40ade0L 0x40ae80L [160L, True]
0x4055c0L 0x405941L [897L, True]
0x404ca0L 0x404f91L [753L, True]
0x40dfd0L 0x40e017L [71L, True]
0x4084e0L 0x4085a6L [198L, True]
0x40f5f0L 0x40f631L [65L, True]
0x40a6b0L 0x40a7b6L [262L, True]
0x4117e0L 0x411d59L [1401L, True]
0x406650L 0x4066e8L [152L, True]
0x40d150L 0x40d1e1L [145L, True]
0x40acc0L 0x40add4L [276L, True]
0x40b1f0L 0x40b252L [98L, True]
0x4029b0L 0x404b48L [8600L, True]
0x40be00L 0x40bff4L [500L, True]
0x4066a0L 0x4066e8L [72L, True]

About

python c decompiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages