Tested in Ubuntu 20.04 and Win10. According to documentation, harvested DLLs from windows (corrected x64 JSON file bc json could not parse) then I tried many x32/x64 shellcodes as binary and txt, some of them killed the python session instantly, and some of them did not find the APIs but most of them gave this error.
[*] Emulating x86 shellcode
Emulation error: Invalid memory read (UC_ERR_READ_UNMAPPED)
Last address: 0x12000005
Traceback (most recent call last):
File "/home/vvelitkn/Desktop/sharem/sharem/sharem/sharem/sharemu.py", line 1153, in test_i386
mu.emu_start(startLoc, (CODE_ADDR + em.entryOffset) + len(code))
File "/usr/local/lib/python3.8/dist-packages/unicorn-2.0.1.post1-py3.8-linux-x86_64.egg/unicorn/unicorn.py", line 550, in emu_start
raise self._hook_exception
File "/usr/local/lib/python3.8/dist-packages/unicorn-2.0.1.post1-py3.8-linux-x86_64.egg/unicorn/unicorn.py", line 392, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/unicorn-2.0.1.post1-py3.8-linux-x86_64.egg/unicorn/unicorn.py", line 663, in _hookcode_cb
cb(self, address, size, data)
File "/home/vvelitkn/Desktop/sharem/sharem/sharem/sharem/sharemu.py", line 697, in hook_code
if retEnding(uc, mnemonic) or bad_instruct:
File "/home/vvelitkn/Desktop/sharem/sharem/sharem/sharem/helper/emuHelpers.py", line 761, in retEnding
retLoc = uc.mem_read(esp, 4)
File "/usr/local/lib/python3.8/dist-packages/unicorn-2.0.1.post1-py3.8-linux-x86_64.egg/unicorn/unicorn.py", line 579, in mem_read
raise UcError(status)
unicorn.unicorn.UcError: Invalid memory read (UC_ERR_READ_UNMAPPED)
[*] CPU counter: 5
[*] Emulation complete
[*] No APIs discovered through emulation.