Commit Graph

148 Commits

Author SHA1 Message Date
Maurice Heumann
1fad315029 Fix debug register logging 2025-02-04 13:47:30 +01:00
Maurice Heumann
3d3bc3914d Add NtSetContext thread and fix context frame saving/restoring 2025-02-04 13:45:25 +01:00
Maurice Heumann
e87650f3b5 Add more syscalls 2025-02-04 13:04:49 +01:00
Maurice Heumann
e20f1d277b Fix line breaks 2025-02-04 12:12:45 +01:00
momo5502
780ff47326 Fix ThreadZeroTlsCell 2025-01-25 19:17:47 +01:00
momo5502
a3c6e9a5c0 Cleanup emulation root handling
This fixes #103
This fixes #105
2025-01-25 08:30:43 +01:00
momo5502
aa162cc548 Fix debug tests 2025-01-25 07:24:02 +01:00
momo5502
4300422b77 Fix path key 2025-01-25 07:24:02 +01:00
momo5502
ec1333278b Implement root fs handling 2025-01-25 07:24:01 +01:00
momo5502
24bebc4ee2 Prepare filesystem support 2025-01-25 07:24:01 +01:00
momo5502
df089e9e08 Fix current thread id 2025-01-25 07:24:01 +01:00
momo5502
32d91bd139 Fix semaphores and mutexes 2025-01-25 07:24:01 +01:00
momo5502
5160bacd1e Correctly handle existing objects 2025-01-25 07:24:01 +01:00
momo5502
98c29ba75a Use u16string in NtAddAtomEx 2025-01-25 07:19:22 +01:00
momo5502
8adb479cf3 Fix NtWaitForMultipleObjects
This fixes #97
2025-01-24 08:53:05 +01:00
Maurice Heumann
e5830e5a64 some refactoring with optional_function (#96)
- wrapped std::function into utils::optional_function 
  - cleaned the code accordingly in windows_emulator
- using the 'emulator'/'windows_emulator' dependency implies the
emulator_common as well.
2025-01-23 18:07:27 +01:00
Elias Bachaalany
365e94d834 replaced puts() with logger calls 2025-01-21 21:50:47 -08:00
Elias Bachaalany
5bf325c77f some refactoring with optional_function
- wrapped std::function into utils::optional_function
-- cleaned the code accordingly in windows_emulator
- using the 'emulator'/'windows_emulator' dependency implies the emulator_common as well.
2025-01-21 19:25:51 -08:00
Elias Bachaalany
f1f42b855b refactored into its own files ('time.hpp/.cpp') 2025-01-11 21:51:05 -08:00
Elias Bachaalany
4129725c97 moved some time/sync funcs/consts out from syscall_utils 2025-01-11 21:35:10 -08:00
Elias Bachaalany
c143acae43 error log instead of printf() for syscall issues 2025-01-11 07:36:29 -08:00
momo5502
b2b2ffd6be Cleanup exception handling and prepare UI support 2025-01-11 09:55:48 +01:00
Maurice Heumann
ff6fd79dd5 More win 10 fixes (#67) 2025-01-11 09:12:36 +01:00
momo5502
55e2462206 Small fixes 2025-01-11 09:05:27 +01:00
momo5502
f2ab2a48df Fix ltsc2019 execution 2025-01-11 09:01:14 +01:00
Elias Bachaalany
0516c1ad87 added missing syscall so that Windows 10 emulation works
For now, this is reports as not implemented but it seems to make the OS happy.
2025-01-10 11:27:04 -08:00
momo5502
7993c9c8e8 Small formatting fixes 2025-01-08 11:14:08 +01:00
momo5502
73eb7d659c Get rid of explicit NtQuerySystemInformationEx syscall 2025-01-08 11:02:04 +01:00
momo5502
0585978157 Add dummy full information 2025-01-08 07:48:11 +01:00
momo5502
bff8420ffd Format all the code 2025-01-06 17:19:26 +01:00
momo5502
fdb0fafa56 Reformat code + small fixes 2025-01-06 09:36:37 +01:00
momo5502
69f82e5376 Fix compilation warnings on linux 2025-01-05 19:59:02 +01:00
momo5502
6b172f5e78 Add macOS support 2025-01-05 17:43:17 +01:00
momo5502
71913b2db0 Even more compilation fixes 2025-01-05 15:23:44 +01:00
momo5502
ec6e25787e Fix naming collisions 2025-01-05 15:02:00 +01:00
momo5502
f08a97eae6 Fix compilation after merge 2025-01-05 14:58:30 +01:00
momo5502
f75f95cc61 Merge remote-tracking branch 'origin/main' into multi-platform-support
# Conflicts:
#	src/analyzer/main.cpp
#	src/emulator/memory_region.hpp
#	src/windows-emulator/io_device.cpp
#	src/windows-emulator/module/module_mapping.cpp
#	src/windows-emulator/process_context.hpp
#	src/windows-emulator/syscalls.cpp
#	src/windows-emulator/windows_emulator.cpp
2025-01-05 14:44:17 +01:00
momo5502
ab61ed0dfe Support querying thread start addresses 2025-01-03 15:58:43 +01:00
momo5502
5b538bba1b Small progress 2025-01-03 14:52:14 +01:00
momo5502
010fbb2120 Support concise debugger output 2025-01-03 13:22:51 +01:00
momo5502
95df4a9c59 Fix TLS vector updates 2025-01-02 13:50:30 +01:00
momo5502
ce38a393ab Fix gdi init stati 2025-01-02 13:50:16 +01:00
momo5502
300bdaa7e2 Fix error status 2025-01-02 13:50:07 +01:00
momo5502
022ed72807 Fix syscall mappings 2025-01-02 13:48:28 +01:00
momo5502
29052af829 Fix RtlPcToFileHeader calls 2024-12-31 08:32:09 +01:00
momo5502
794a9f5c5a Support more directory enumeration classes 2024-12-26 10:43:17 +01:00
momo5502
724446620c Small fixes 2024-12-26 09:37:10 +01:00
momo5502
cb88ebe480 Fix warning 2024-12-25 15:32:21 +01:00
momo5502
df812fd24d Fix offsets 2024-12-25 15:06:07 +01:00
momo5502
5b5db03521 Accurate file enumeration 2024-12-25 14:44:13 +01:00