Skip to content

Commit

Permalink
link with getpid
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman committed Feb 23, 2025
1 parent 9cb5e46 commit 202cbbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ endfunction()
add_library(runblack-reassembled-libcmt OBJECT IMPORTED)

set(LIBCMT_PATCHED_OBJECTS)
add_patched_libcmt_object("build\\intel\\mt_obj\\getpid.obj" ON)
add_patched_libcmt_object("build\\intel\\mt_obj\\ehvecdtr.obj" ON)
add_patched_libcmt_object("build\\intel\\mt_obj\\strspn.obj" OFF)
add_patched_libcmt_object("build\\intel\\mt_obj\\wcschr.obj" ON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
.extern _jmp_addr_0x007f3b80
.extern _jmp_addr_0x007f3d20
.extern _jmp_addr_0x007f42b0
.extern _jmp_addr_0x008a5f5d
.extern __getpid

.globl _jmp_addr_0x007da710
.globl _jmp_addr_0x007da811
Expand Down Expand Up @@ -1390,7 +1390,7 @@ _jmp_addr_0x007db4d0: push ebp
{disp32} mov eax, dword ptr [data_bytes + 0x26af70] // 0x007db4d6 a1700fc300
test eax, eax // 0x007db4db 85c0
{disp8} je _jmp_addr_0x007db53a // 0x007db4dd 745b
call _jmp_addr_0x008a5f5d // 0x007db4df e879aa0c00
call __getpid // 0x007db4df e879aa0c00
push 0x00c3119c // 0x007db4e4 689c11c300
{disp32} mov dword ptr [data_bytes + 0x4be584], eax // 0x007db4e9 a38445e800
call dword ptr [rdata_bytes + 0x16c] // 0x007db4ee ff156c918a00
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
.globl __wcsnicmp
.globl _jmp_addr_0x008a5da3
.globl __strlwr
.globl _jmp_addr_0x008a5f5d

start_0x008a5b00_0x008a895d:
// Snippet: asm, [0x008a5b00, 0x008a895d)
Expand Down Expand Up @@ -514,4 +513,3 @@ _jmp_addr_0x008a5f59: pop edi
pop esi // 0x008a5f5a 5e
leave // 0x008a5f5b c9
ret // 0x008a5f5c c3
_jmp_addr_0x008a5f5d: jmp dword ptr [rdata_bytes + 0x31c] // 0x008a5f5d ff251c938a00

0 comments on commit 202cbbe

Please sign in to comment.