title: Hook statically linked "malloc" function family
body: <p>I am using <a href="http://research.microsoft.com/en-us/projects/detours/" rel="nofollow">Detours</a> to hook malloc/free of any target .exe without the access of its source code.</p>
  
  <p>I have succeeded in hooking malloc/free which are dynamically linked from the .exe.</p>
  
  <p>I'm wondering whether Detours can be used to hook statically linked malloc/free.</p>
  
  <p>I understand that might be more difficult, since the malloc/free code is already inside .exe and it is even difficult to locate them. "malloc" may become something like "0x804f400". But I guess there may exist some other technique that can locate malloc/free function inside the .exe. </p>
  
  <p>Has anybody tried it? Or is it simply not feasible?</p>