Commit Graph

106 Commits

Author SHA1 Message Date
momo5502
01b1d422d9 Implement more efficient export logging
Unicorn hooks are expensive. It seems to iterate all hooks every
time an instruction is executed. Therefore more hooks -> slower execution.

Instead, we'll have one hook. Within that hook we'll check if the address
is within a mapped binary. If so, we then check if it is and export and
log when true. That's far more efficient than checking all hooks every time.
2024-09-08 16:10:03 +02:00
momo5502
9c5b65b103 Count executed instructions 2024-09-08 15:18:57 +02:00
momo5502
4d0d197376 Better handle abstraction 2024-09-08 13:09:10 +02:00
momo5502
9f437657ad Prepare handle cleanup 2024-09-07 21:41:00 +02:00
momo5502
d7dd64f896 Small adjustments 2024-09-07 15:07:51 +02:00
momo5502
f44f4777da Fix exception dispatching 2024-09-07 12:52:20 +02:00
momo5502
2022513bbe Fix stack alignment 2024-09-06 19:44:35 +02:00
momo5502
daeea58c91 Fix release build 2024-09-06 08:49:31 +02:00
momo5502
096a3c5f89 More exception dispatching progress 2024-09-05 20:38:27 +02:00
momo5502
e5b3dc953e Prepare exception dispatching 2024-09-05 19:01:55 +02:00
momo5502
7c6e4a23da More exception progress 2024-09-05 16:10:11 +02:00
momo5502
79607447e5 Support exception hooks 2024-09-05 11:13:54 +02:00
Maurice Heumann
0c963439a9 Merge pull request #2 from momo5502/dependabot/submodules/deps/reflect-444d020
Bump deps/reflect from `2129a1a` to `444d020`
2024-09-02 20:39:52 +02:00
dependabot[bot]
025c269f73 Bump deps/reflect from 2129a1a to 444d020
Bumps [deps/reflect](https://github.com/qlibs/reflect) from `2129a1a` to `444d020`.
- [Release notes](https://github.com/qlibs/reflect/releases)
- [Commits](2129a1a551...444d02039e)

---
updated-dependencies:
- dependency-name: deps/reflect
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-02 18:37:48 +00:00
momo5502
c975a8863f Prepare reflect upgrade 2024-09-02 20:33:04 +02:00
momo5502
9086792a35 Cleanup hooking 2024-09-02 20:32:56 +02:00
momo5502
daff0d1e13 Implement rdtsc hook 2024-09-02 17:16:29 +02:00
momo5502
679fecda4e Finish emulating hello world 2024-09-01 20:32:45 +02:00
momo5502
dba4970822 Update unicorn 2024-09-01 20:12:12 +02:00
momo5502
5efd108410 Use own unicorn fork 2024-09-01 20:11:25 +02:00
momo5502
fb0c740b89 More syscalls 2024-09-01 20:10:24 +02:00
momo5502
405a53ccef Support hardware breakpoints 2024-09-01 20:10:10 +02:00
momo5502
5254a28519 Fix export collection 2024-09-01 09:21:34 +02:00
momo5502
93f8f7b18e Query memory info 2024-09-01 09:13:50 +02:00
momo5502
164e9b737d Almost running application 2024-08-31 21:43:05 +02:00
momo5502
3ead613d2c More syscalls 2024-08-31 21:20:20 +02:00
momo5502
477eef2d6a Add console support 2024-08-31 20:28:54 +02:00
momo5502
d0e79f51bd Progress with kernelbase initialization 2024-08-31 19:43:27 +02:00
momo5502
2d23abc9e5 More fixes and progress 2024-08-31 17:37:30 +02:00
momo5502
f57e925499 Fix formatting 2024-08-31 16:41:55 +02:00
momo5502
99ede9529d Ignore ProcessTlsInformation 2024-08-31 16:41:47 +02:00
momo5502
c5010761d8 Fix log 2024-08-31 16:41:38 +02:00
momo5502
3e5b82a5b5 Add new syscall 2024-08-31 16:41:15 +02:00
momo5502
e36ed03720 Fix classic alignment mistake 2024-08-31 16:40:55 +02:00
momo5502
9427520390 Remove logging 2024-08-31 16:40:37 +02:00
momo5502
1b10b03763 More utils 2024-08-31 16:40:27 +02:00
momo5502
ed0c722ff0 Speedup relocation handling 2024-08-31 15:54:56 +02:00
momo5502
e320b9cfcc Fix api set map 2024-08-31 15:15:52 +02:00
momo5502
e377bdc23c Small cleanup 2024-08-31 15:14:57 +02:00
momo5502
880a4cd037 Optimize relocation handling 2024-08-31 15:14:38 +02:00
momo5502
4b7eebca88 Setup api set mapping 2024-08-31 12:35:16 +02:00
momo5502
34fbaa7547 Don't upload artifacts yet 2024-08-31 09:31:49 +02:00
momo5502
903227b699 Fix compilation 2024-08-31 09:31:32 +02:00
momo5502
d74897a413 Oof 2024-08-31 09:30:09 +02:00
momo5502
67212a2811 Log exceptions 2024-08-31 09:21:11 +02:00
momo5502
01bced1b53 Handle api-ms DLLs 2024-08-31 08:45:12 +02:00
momo5502
48581ff048 More progress 2024-08-30 21:35:56 +02:00
momo5502
0d9f71f913 Fix warnings 2024-08-30 18:17:15 +02:00
momo5502
f56090898a Apply relocations 2024-08-30 18:16:21 +02:00
momo5502
ce7fc8b07d Prepare module mapping 2024-08-28 20:26:22 +02:00