Open ghost opened 6 years ago
hey @Unc3nZureD
thanks for pointing this out. looks like we need support for the else
opcode. sharing the sample binary is very helpful, i appreciate that you attached it.
i'm traveling for nearly the next month, so unfortunately probably wont have a fix before december. will do this as soon as i can.
i face the same error too :/
Same error here
DEBUG:idawasm.processor:missing global: 23 DEBUG:idawasm.processor:missing global: 23 DEBUG:idawasm.processor:missing global: 23 DEBUG:idawasm.processor:missing global: 23 ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(*args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1120, in notify_ana bc = next(wasm.decode.decode_bytecode(buf)) File "build\bdist.win-amd64\egg\wasm\decode.py", line 22, in decodebytecode offs, imm, = opcode.imm_struct.from_raw(None, bytecode_wnd[1:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 302, in from_raw data_len, val, data_type = cur_field.from_raw(data, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 143, in from_raw length, item, element_type = self.field.from_raw(ctx, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 72, in from_raw segment = byte2int(raw[offs]) IndexError: index out of bounds ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(*args, *kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1120, in notify_ana bc = next(wasm.decode.decode_bytecode(buf)) File "build\bdist.win-amd64\egg\wasm\decode.py", line 22, in decodebytecode offs, imm, = opcode.imm_struct.from_raw(None, bytecode_wnd[1:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 302, in from_raw data_len, val, data_type = cur_field.from_raw(data, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 143, in from_raw length, item, element_type = self.field.from_raw(ctx, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 72, in from_raw segment = byte2int(raw[offs]) IndexError: index out of bounds ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1181, in notify_ana insn.Op2.value = bc.imm.target_table File "C:\application\IDA_Pro_v7.0\python\ida_ua.py", line 216, in set_value return _ida_ua.optset_value(self, args) TypeError: Expected an ea_t type ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(args, kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1120, in notify_ana bc = next(wasm.decode.decode_bytecode(buf)) File "build\bdist.win-amd64\egg\wasm\decode.py", line 22, in decodebytecode offs, imm, = opcode.imm_struct.from_raw(None, bytecode_wnd[1:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 302, in from_raw data_len, val, data_type = cur_field.from_raw(data, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 143, in from_raw length, item, element_type = self.field.from_raw(ctx, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 72, in from_raw segment = byte2int(raw[offs]) IndexError: index out of bounds ERROR:idawasm.processor:exception in notify_ana Traceback (most recent call last): File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 58, in wrapper return f(*args, **kwargs) File "C:/application/IDA_Pro_v7.0/loaders\idawasm\processor.py", line 1120, in notify_ana bc = next(wasm.decode.decode_bytecode(buf)) File "build\bdist.win-amd64\egg\wasm\decode.py", line 22, in decodebytecode offs, imm, = opcode.imm_struct.from_raw(None, bytecode_wnd[1:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 302, in from_raw data_len, val, data_type = cur_field.from_raw(data, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 143, in from_raw length, item, element_type = self.field.from_raw(ctx, raw[offs:]) File "build\bdist.win-amd64\egg\wasm\types.py", line 72, in from_raw segment = byte2int(raw[offs]) IndexError: index out of bounds The initial autoanalysis has been finished.
idawasm dies with the following error message:
Analyzed file was: index.zip
IDA: Version 7.0.170914 Windows x64 (32-bit address size)
Is there any chance that sooner or later it gets supported? Not even a single hello world application can be decompiled which was using the latest compiler. :|