首页 > 解决方案 > 在 IDA 中反汇编 Hello World 程序

问题描述

我在 IDA 7.0(免费软件版本)中反编译了这样一个简单的 c 程序(在 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));
}

现在我在Functions 窗口IDA View-A中都找不到字符串sayHello(函数名)。如何找出反汇编代码中函数的确切代码在哪里?sayHello

标签: windowsassemblydecompilingida

解决方案


推荐阅读