어셈블이어를 c코드로 만들어주세요 ㅜㅜ
00401000 /$ 55 PUSH EBP
00401001 |. 8BEC MOV EBP,ESP
00401003 |. 83EC 0C SUB ESP,0C
00401006 |. C745 F4 00000>MOV DWORD PTR SS:[EBP-C],0
0040100D |. C745 FC 00000>MOV DWORD PTR SS:[EBP-4],0
00401014 |. 6A 00 PUSH 0 ; /Style = MB_OK|MB_APPLMODAL
00401016 |. 68 30504000 PUSH 03_05_Qu.00405030 ; |Title = "ITBANK"
0040101B |. 68 38504000 PUSH 03_05_Qu.00405038 ; |Text = "Insert Argument"
00401020 |. 6A 00 PUSH 0 ; |hOwner = NULL
00401022 |. FF15 94404000 CALL DWORD PTR DS:[<&USER32.MessageBoxA>>; \MessageBoxA
00401028 |. C745 F8 00000>MOV DWORD PTR SS:[EBP-8],0
0040102F |. EB 09 JMP SHORT 03_05_Qu.0040103A
00401031 |> 8B45 F8 /MOV EAX,DWORD PTR SS:[EBP-8]
00401034 |. 83C0 01 |ADD EAX,1
00401037 |. 8945 F8 |MOV DWORD PTR SS:[EBP-8],EAX
0040103A |> 8B4D 10 MOV ECX,DWORD PTR SS:[EBP+10]
0040103D |. 034D F8 |ADD ECX,DWORD PTR SS:[EBP-8]
00401040 |. 0FBE11 |MOVSX EDX,BYTE PTR DS:[ECX]
00401043 |. 85D2 |TEST EDX,EDX
00401045 |. 74 02 |JE SHORT 03_05_Qu.00401049
00401047 |.^ EB E8 \JMP SHORT 03_05_Qu.00401031
00401049 |> 8B45 FC /MOV EAX,DWORD PTR SS:[EBP-4]
0040104C |. 3B45 F8 |CMP EAX,DWORD PTR SS:[EBP-8]
0040104F |. 7D 2F |JGE SHORT 03_05_Qu.00401080
00401051 |. 8B4D 10 |MOV ECX,DWORD PTR SS:[EBP+10]
00401054 |. 034D FC |ADD ECX,DWORD PTR SS:[EBP-4]
00401057 |. 0FBE11 |MOVSX EDX,BYTE PTR DS:[ECX]
0040105A |. 8B45 F4 |MOV EAX,DWORD PTR SS:[EBP-C]
0040105D |. 8D4C10 D1 |LEA ECX,DWORD PTR DS:[EAX+EDX-2F]
00401061 |. 894D F4 |MOV DWORD PTR SS:[EBP-C],ECX
00401064 |. 8B55 FC |MOV EDX,DWORD PTR SS:[EBP-4]
00401067 |. 83C2 01 |ADD EDX,1
0040106A |. 8955 FC |MOV DWORD PTR SS:[EBP-4],EDX
0040106D |. 8B45 FC |MOV EAX,DWORD PTR SS:[EBP-4]
00401070 |. 3B45 F8 |CMP EAX,DWORD PTR SS:[EBP-8]
00401073 |. 7D 09 |JGE SHORT 03_05_Qu.0040107E
00401075 |. 8B4D F4 |MOV ECX,DWORD PTR SS:[EBP-C]
00401078 |. 6BC9 0A |IMUL ECX,ECX,0A
0040107B |. 894D F4 |MOV DWORD PTR SS:[EBP-C],ECX
0040107E |>^ EB C9 \JMP SHORT 03_05_Qu.00401049
00401080 |> 8B55 F4 MOV EDX,DWORD PTR SS:[EBP-C]
00401083 |. 83C2 54 ADD EDX,54
00401086 |. 81FA 2C010000 CMP EDX,12C
0040108C |. 75 14 JNZ SHORT 03_05_Qu.004010A2
0040108E |. 6A 00 PUSH 0 ; /Style = MB_OK|MB_APPLMODAL
00401090 |. 68 48504000 PUSH 03_05_Qu.00405048 ; |Title = "ITBANK"
00401095 |. 68 50504000 PUSH 03_05_Qu.00405050 ; |Text = "Success"
0040109A |. 6A 00 PUSH 0 ; |hOwner = NULL
0040109C |. FF15 94404000 CALL DWORD PTR DS:[<&USER32.MessageBoxA>>; \MessageBoxA
004010A2 |> 33C0 XOR EAX,EAX
004010A4 |. 8BE5 MOV ESP,EBP
004010A6 |. 5D POP EBP
이 코드를 c언어로 바꾸는데 어렵네요 ㅜㅜ
?
그냥 hex-rays 쓰세요.
은근히 시간걸리는 군요....전부 맞는지는 모르겠군요..
이정도쯤 될 것 같습니다.
후에 답도 좀 게시해주세요~
댓글 달기