首页
社区
课程
招聘
[旧帖] [求助]反汇编逆向的小问题! 0.00雪花
发表于: 2008-6-9 15:35 3813

[旧帖] [求助]反汇编逆向的小问题! 0.00雪花

2008-6-9 15:35
3813
.text:10001249 07C                 call    ebx ; GetProcAddress
.text:1000124B 074                 push    offset aSetupdigetdevi ; "SetupDiGetDeviceInterfaceDetailA"
.text:10001250 078                 push    edi             ; hModule
.text:10001251 07C                 mov     [esp+7Ch+var_5C], eax

......

.text:100012CA 074                 lea     eax, [esp+74h+var_44]
.text:100012CE 074                 mov     ebp, 28
.text:100012D3 074                 push    eax
.text:100012D4 078                 push    0
.text:100012D6 07C                 push    offset bytesz2170
.text:100012DB 080                 push    0
.text:100012DD 084                 push    edi
.text:100012DE 088                 mov     [esp+88h+var_44], ebp
.text:100012E2 088                 call    [esp+88h+var_5C]

小弟请教下,上面这段反汇编代码怎样逆成c啊?很不懂主要针对call    [esp+88h+var_5C] 这一句不知道如何下手,返回值是个FARPROC,拜求答案。

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 202
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
函数指针作变量?
2008-6-9 16:10
0
雪    币: 121
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
是的啊 是函数指针
2008-6-9 16:39
0
雪    币: 202
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
typedef int( *PFUNC)(int , int  , int , int , int ) ;

int func1(int a, int b , int c, int d, int e)
{
        return a+b+c+d+e;
}

int main(void)
{
PFUNC test
   int ret = test(1,2,3,4,5);
return 0;
}

        PFUNC test = func2;
00413574  mov         dword ptr [ebp-2Ch],offset func2 (4111C2h)
        int ret = test(1,2,3,4,5);
0041357B  mov         esi,esp
0041357D  push        5   
0041357F  push        4   
00413581  push        3   
00413583  push        2   
00413585  push        1   
00413587  call        dword ptr [ebp-2Ch]
2008-6-9 17:43
0
雪    币: 202
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
typedef int( *PFUNC)(int , int  , int , int , int ) ;

int func1(int a, int b , int c, int d, int e)
{
        return a+b+c+d+e;
}

int main(void)
{
PFUNC test
   int ret = test(1,2,3,4,5);
return 0;
}

        PFUNC test = func2;
00413574  mov         dword ptr [ebp-2Ch],offset func2 (4111C2h)
        int ret = test(1,2,3,4,5);
0041357B  mov         esi,esp
0041357D  push        5   
0041357F  push        4   
00413581  push        3   
00413583  push        2   
00413585  push        1   
00413587  call        dword ptr [ebp-2Ch]
2008-6-9 17:46
0
雪    币: 270
活跃值: (15)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
大哥,教教我怎么反汇编好吗!
我用的是c32asm
谢谢
2008-6-10 11:56
0
游客
登录 | 注册 方可回帖
返回
//