Commit Graph

67 Commits

Author SHA1 Message Date
ptitSeb
3bcb9e0f38 Added puts wrapped function (and test03 works) 2021-03-04 21:33:01 +01:00
ptitSeb
234186e9af Added C9 LEAVE opcode (and test02 works too) 2021-03-04 21:26:55 +01:00
ptitSeb
cb24986c88 Added C syscall wrapper 2021-03-04 21:25:14 +01:00
ptitSeb
f21224bffb Fix injection of PLT Resolver 2021-03-04 21:18:44 +01:00
ptitSeb
67e64bfcf8 Added 68 PUSH Id opcode 2021-03-04 21:09:36 +01:00
ptitSeb
c60b4daed4 Added R_X86_64_JUMP_SLOT to RelA relocation handling 2021-03-04 21:05:23 +01:00
ptitSeb
bae73adf3e Added 0F 05 SYSCALL opcode (and test01 works now) 2021-03-04 20:39:11 +01:00
ptitSeb
be8204d8fa Added REX C6 MOV opcode 2021-03-04 20:37:07 +01:00
ptitSeb
4b86945fff Added REX C7 MOV opcode 2021-03-04 20:35:56 +01:00
ptitSeb
3f025f1310 Added REX B8..BF MOV opcodes 2021-03-04 20:32:25 +01:00
ptitSeb
b3f3a2b30c Added REX 38..3D CMP opcodes 2021-03-04 20:24:30 +01:00
ptitSeb
50398acc97 Added REX D1/D3 opcodes 2021-03-04 20:17:43 +01:00
ptitSeb
2e81d8ba80 Added E9 JMP opcode 2021-03-04 20:15:07 +01:00
ptitSeb
f2a9066697 Added 0F 1F NOP opcode 2021-03-04 20:11:06 +01:00
ptitSeb
ad05515b70 Fixed an issue with GetECommon and REX.b 2021-03-04 20:07:02 +01:00
ptitSeb
e19267dea2 Added REX C1 opcodes 2021-03-04 18:01:43 +01:00
ptitSeb
d8551567ed Added C3 RET opcode 2021-03-04 17:56:39 +01:00
ptitSeb
004c360720 Added 70..7F Jcc opcoces 2021-03-04 17:55:13 +01:00
ptitSeb
905f5e97bb Fixed those 2 functions declarations 2021-03-04 17:54:48 +01:00
ptitSeb
aeca62699e Added REX 85 TEST opcode 2021-03-04 17:52:05 +01:00
ptitSeb
d48da61142 Added REX 8B opcode 2021-03-04 17:49:33 +01:00
ptitSeb
2a99644638 Added E8 CALL opcode 2021-03-04 17:46:05 +01:00
ptitSeb
73332983fc Added first attempt at function wrapping 2021-03-04 17:33:03 +01:00
ptitSeb
292897da46 Preparing to execute wrapped function 2021-03-04 13:02:45 +01:00
ptitSeb
c24149e40f Added REX FF opcodes 2021-03-04 12:18:40 +01:00
ptitSeb
2101c52e2d Added REX 8D LEA opcode 2021-03-04 12:00:04 +01:00
ptitSeb
abb74f7f76 Added REX 81/83 opcodes 2021-03-04 11:56:06 +01:00
ptitSeb
ca9ca0ca48 Added Rex 50..5F PUSH/POP opcodes 2021-03-04 11:45:27 +01:00
ptitSeb
2aa303bb02 Fix REX handling and added REX 89 opcode 2021-03-04 11:35:56 +01:00
ptitSeb
9613868aa4 First x86_64 opcode executed :) 2021-03-04 11:21:26 +01:00
ptitSeb
8cccb02e6b Not sure yet on what registers are expected thoses variables 2021-03-04 11:19:55 +01:00
ptitSeb
0ac4f5483d Preparing defered flags handling 2021-03-04 10:09:25 +01:00
ptitSeb
1e971dde99 A bit more work on syscall, to avoid old deprecated ones 2021-03-04 09:39:25 +01:00
ptitSeb
b34a919590 Small change to wrapped ld-linux to make it more portable 2021-03-04 08:27:30 +01:00
ptitSeb
9bc6cd4ed1 A bit more work to prepare x86_64 emulation 2021-03-03 21:19:38 +01:00
ptitSeb
12c8d4340b Some work on Mod/RM 64bits decoding (with RIP relative addressing) 2021-03-03 20:57:16 +01:00
ptitSeb
8ecc312f38 Fixed trace and prepare rex decoding 2021-03-03 18:54:43 +01:00
ptitSeb
3d2f6745b4 Ready to emulate main elf 2021-03-03 17:35:46 +01:00
ptitSeb
1c9e2c998f Do ElfPlt on main elf 2021-03-03 17:33:26 +01:00
ptitSeb
be17349a5d Added some X86_64 RelocA and a few wrapped function (wrapper still not correct anyway) 2021-03-03 17:32:24 +01:00
ptitSeb
9aabe9c97f Added rt and pthread wrapped lib 2021-03-03 17:06:00 +01:00
ptitSeb
745a68f556 Preload libs if needed 2021-03-03 16:48:56 +01:00
ptitSeb
5fe45a9341 Add symbols from main elf to maplib 2021-03-03 16:47:44 +01:00
ptitSeb
f4829a8ce4 More infrastructure added to elf and x64 emu 2021-03-03 16:43:42 +01:00
ptitSeb
f73fbd3cee Added Protection handling 2021-03-02 22:21:23 +01:00
ptitSeb
b4851d8dd5 Added bridge handling 2021-03-02 17:55:55 +01:00
ptitSeb
8b56536bb1 More preparation on main x64emu_t structure 2021-03-02 15:49:33 +01:00
ptitSeb
da3311fe10 Another batch of printf/scanf format errors 2021-03-02 15:46:11 +01:00
ptitSeb
e8799c69a8 Fixed a bunch of print format error 2021-03-02 15:42:09 +01:00
ptitSeb
eb6c4594e1 Added basic thread infrastructure 2021-03-02 15:18:23 +01:00