Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Both Unicode and C terminated strings cannot be recognized #92

Open
jacky6666 opened this issue Jul 26, 2016 · 2 comments
Open

Both Unicode and C terminated strings cannot be recognized #92

jacky6666 opened this issue Jul 26, 2016 · 2 comments

Comments

@jacky6666
Copy link

jacky6666 commented Jul 26, 2016

Hello,
I wrote a simple test program to test snowman with IDA Pro.
But the output seems to be a little bit different
I've tried both unicode and c terminated strings.
The word "hello" is not visible at all.
Thanks
Jack

[code]
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
MessageBox(NULL, L"Hello", L"Hello", NULL);
}
[/code]

Here is the output

[code]
int32_t MessageBoxW;

/*

  • _wWinMain@16
  • __stdcall wWinMain(x,x,x,x)
    */
    void _wWinMain_16() {
    MessageBoxW();
    goto 0;
    }

[/code]

@yegord
Copy link
Owner

yegord commented Jul 26, 2016

Hi,

and how does the assembly code look like? Or could you provide the input
file?

Yegor Derevenets

@jacky6666
Copy link
Author

[code]
; int stdcall wWinMain(HINSTANCE *hInstance, HINSTANCE__ *hPrevInstance, wchar_t *pCmdLine, int nCmdShow)
_wWinMain@16 proc near

hInstance= dword ptr 8
hPrevInstance= dword ptr 0Ch
pCmdLine= dword ptr 10h
nCmdShow= dword ptr 14h

push 0 ; uType
push offset Text ; "Hello"
push offset Text ; "Hello"
push 0 ; hWnd
call ds:__imp__MessageBoxW@16 ; MessageBoxW(x,x,x,x)
retn 10h
_wWinMain@16 endp
[/code]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants