{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/11981","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/11981/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/11981/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/11981/events","html_url":"https://github.com/radare/radare2/issues/11981","id":375032393,"node_id":"MDU6SXNzdWUzNzUwMzIzOTM=","number":11981,"title":"Wrong resource names in PE files","user":{"login":"ITAYC0HEN","id":20182642,"node_id":"MDQ6VXNlcjIwMTgyNjQy","avatar_url":"https://avatars0.githubusercontent.com/u/20182642?v=4","gravatar_id":"","url":"https://api.github.com/users/ITAYC0HEN","html_url":"https://github.com/ITAYC0HEN","followers_url":"https://api.github.com/users/ITAYC0HEN/followers","following_url":"https://api.github.com/users/ITAYC0HEN/following{/other_user}","gists_url":"https://api.github.com/users/ITAYC0HEN/gists{/gist_id}","starred_url":"https://api.github.com/users/ITAYC0HEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITAYC0HEN/subscriptions","organizations_url":"https://api.github.com/users/ITAYC0HEN/orgs","repos_url":"https://api.github.com/users/ITAYC0HEN/repos","events_url":"https://api.github.com/users/ITAYC0HEN/events{/privacy}","received_events_url":"https://api.github.com/users/ITAYC0HEN/received_events","type":"User","site_admin":false},"labels":[{"id":312218337,"node_id":"MDU6TGFiZWwzMTIyMTgzMzc=","url":"https://api.github.com/repos/radare/radare2/labels/PE","name":"PE","color":"009800","default":false},{"id":8289060,"node_id":"MDU6TGFiZWw4Mjg5MDYw","url":"https://api.github.com/repos/radare/radare2/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-29T14:06:15Z","updated_at":"2018-10-29T16:39:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Work environment\r\n\r\n| Questions                                            | Answers\r\n|------------------------------------------------------|--------------------\r\n| OS/arch/bits (mandatory)                             | Ubuntu x64, wsl, Arch Linux x64\r\n| File format of the file you reverse (mandatory)      | PE\r\n| Architecture/bits of the file (mandatory)            | x86_32 x86_64\r\n| r2 -v full output, **not truncated** (mandatory)     | radare2 3.1.0-git 20010 @ linux-x86-64 git.3.0.1-80-g6080edf\r\ncommit: 6080edf13b207d23d7b3faf09b96aa10dffd6cc2 build: 2018-10-29__15:31:34\r\n\r\n### Expected behavior\r\n\r\nWhile executing `iR` or `iRj`, the right resource name should be shown\r\n\r\n### Actual behavior\r\nCurrently, radare2 wrongfully parses the resource name from the PE resource directories. More accurately, he passes the ID of the resource instead of parsing the relevant name from the table\r\n\r\n### Steps to reproduce the behavior \r\n - Open a PE file (`r2 file.exe`)\r\n - Execute `iR` or `iRj~{}`\r\n - Compare the shown resource name to the name as shown in another resource parser (e.g Resource Hacker)\r\n - radare2 shows a wrong name\r\n\r\n### Additional Logs, screenshots, source-code,  configuration dump, ...\r\n\r\nr2 output \"2874\":\r\n![image](https://user-images.githubusercontent.com/20182642/47654803-4d1a1d80-db94-11e8-9263-ffcc3051e3fd.png)\r\n\r\nExpected Name \"MAINICON\":\r\n![image](https://user-images.githubusercontent.com/20182642/47654841-61f6b100-db94-11e8-82f2-7a752822dac6.png)\r\n\r\n\r\n\r\nDrag and drop zip archives containing the Additional info here, don't use external services or link.\r\n"},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/433983355","html_url":"https://github.com/radare/radare2/issues/11981#issuecomment-433983355","issue_url":"https://api.github.com/repos/radare/radare2/issues/11981","id":433983355,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzk4MzM1NQ==","user":{"login":"a1ext","id":14978853,"node_id":"MDQ6VXNlcjE0OTc4ODUz","avatar_url":"https://avatars3.githubusercontent.com/u/14978853?v=4","gravatar_id":"","url":"https://api.github.com/users/a1ext","html_url":"https://github.com/a1ext","followers_url":"https://api.github.com/users/a1ext/followers","following_url":"https://api.github.com/users/a1ext/following{/other_user}","gists_url":"https://api.github.com/users/a1ext/gists{/gist_id}","starred_url":"https://api.github.com/users/a1ext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1ext/subscriptions","organizations_url":"https://api.github.com/users/a1ext/orgs","repos_url":"https://api.github.com/users/a1ext/repos","events_url":"https://api.github.com/users/a1ext/events{/privacy}","received_events_url":"https://api.github.com/users/a1ext/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T16:39:32Z","updated_at":"2018-10-29T16:39:32Z","author_association":"CONTRIBUTOR","body":"Seems like the timestamps of resources are being displayed in local time zone:\r\n![image](https://user-images.githubusercontent.com/14978853/47665467-3b477300-dbb2-11e8-89ce-72a633b27cd9.png)\r\n"}}
{"actor":{"display_login":"a1ext"}}