Skip to main content

All Questions

Tagged with
0 votes
0 answers
32 views

Is there a library to reassemble and rebuild Windows PE binary? [closed]

I want to disassemble a x64 PE binary, add my own inline assembly code somewhere inside the .text section (or any other executable section), and then assemble the binary back and expect it to work. I'...
abdul's user avatar
  • 13
1 vote
1 answer
82 views

What is the difference between these two functions in x64 assembly?

I'm playing around with lower level stuff in C on Windows (x64) to try and learn low level concepts. I ran across something I don't understand and just wonder if someone could explain something to me....
Stephen Francis's user avatar
1 vote
0 answers
31 views

Link function calls against reverse engineered binary

I created an windows x86 .exe file that I reverse engineer. Imagine I only have the .exe file and I reverse engineered some functions. The goal is to create a dll that links with this .exe so the dll ...
Edward Gynt's user avatar
-1 votes
0 answers
25 views

Writing x64 nasm assembly for windows [duplicate]

I would like to learn how to write x64 nasm assembly for windows but I can't find any resources for that. And also how to compile the assembly into executable program. So if anyone knows of a ...
Matyn's user avatar
  • 1
1 vote
0 answers
55 views

Whis is this x86_64 AT&T assembly failing, i think foo: is the culprit?

Here is the assembly, I am using Windows 11. Assembling: as .\test.S -o test.out Linking: ld -o test.exe -subsys=console test.out -L "C:\TDM-GCC-64\x86_64-w64-mingw32\lib" -lmsvcrt When i ...
Mihir Patel's user avatar
1 vote
0 answers
34 views

VS2019 MASM64 x64 windows assembly CreateFileMapping [duplicate]

I would like to ask how to use the CreateFileMapping function in x64 assembly.i use vs2019 masm64, I'm having trouble with it.LINK error lnk2019 unresolved external symbol CreateFileMapping. My code ...
tccloud's user avatar
  • 11
0 votes
0 answers
57 views

How do buffer overflows execute instructions on stack?

I have read a bit about buffer overflows, one thing I don't understand is that normally space isn't executable to my knowledge, how can code placed in it be run?
FourierFlux's user avatar
0 votes
0 answers
37 views

How to multiply structures among themselves

I need to multiply the structures among themselves and write the result into a separate one. The problem is that after multiplication it is impossible to transmit the result. If I transfer the result ...
Влад's user avatar
0 votes
0 answers
15 views

SetWindowPos didn't change command prompt size

I want to change the size of the command prompt. Below is my code. Although it runs, the size doesn't change as intended. What could be the issue, and how can I resolve it? Alternatively, are there ...
陳冠霖's user avatar
0 votes
1 answer
49 views

Manual syscall gives STATUS_ACCESS_VIOLATION

Im trying to call NtAllocateVirtualMemory using the syscall instruction but it returns the error STATUS_ACCESS_VIOLATION I tried running it as administrator but it gave me the same error. Im expecting ...
user24684540's user avatar
0 votes
0 answers
38 views

Killing a process using TerminateProcess

I am writing a program on MASM64, the goal of the program is to launch the calc.exe process (a regular Windows calculator) and after 10 seconds complete this process. I expect the program to close ...
Влад's user avatar
0 votes
0 answers
85 views

How to dynamically get operands from a instruction in memory in c++

Im trying to read a instruction from another processes memory and get the operands dynamically. For example if the instruction is MOV how can i know that it has 2 operands? The process is x64 I tried ...
user24684540's user avatar
-1 votes
1 answer
58 views

"junk at end of line" when assembling .s file compiled from C++ file using Clang and LLVM, but works with C file

I am learning how to use the LLVM toolchain. I have a .cpp file, and I'm trying to compile it to an LLVM bitcode file, compile the LLVM bytecode file into an assembly file, and then assemble the ...
Alex's user avatar
  • 472
1 vote
1 answer
134 views

How to call a ASM function from c++

Im trying to call a ASM function from c++ but I get the error unresolved external symbol referenced my c++ code: extern void foo(); int main() { foo(); return 0; } my asm code: section .text ...
user24684540's user avatar
0 votes
0 answers
43 views

Windows 64-bit NASM - Why does this code not print anything, when using a variable? [duplicate]

Hello I have the following code: extern GetStdHandle, WriteConsoleA, ExitProcess section .text _main: mov rcx, STD_OUTPUT_HANDLE call GetStdHandle mov rcx, rax ; hConsoleOutput ...
user2868758's user avatar

15 30 50 per page
1
2 3 4 5
60