Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
389 views
in Technique[技术] by (71.8m points)

windows - Disassembling Hello World program in IDA

I've de-compiled in IDA 7.0 (freeware version) such a simple c program (compiled in the Microsoft Visual Studio Community 2019):

#include <stdio.h>
#include <string.h >

char* sayHello(char* resultStr, char* addedStr) {
  strcat_s(resultStr, strlen(resultStr)+strlen(addedStr)+1, addedStr);
  return resultStr;
}

int main() {
  char str_in_1[100] = "Hello"; 
  char str_in_2[] = " World!";

  printf ("%s", sayHello(str_in_1, str_in_2));
}

Now i can't find the string sayHello (function name) either in the Functions window nor in the IDA View-A. How to find out where in the disassembled code is the exact code of the sayHello function?

question from:https://stackoverflow.com/questions/66061594/disassembling-hello-world-program-in-ida

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...