Questions tagged [arguments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
80 views

IDA: Function arguments detection

I have searched here and there for this, but I could not find anything really related to it. So, I have been meaning to ask how IDA's algorithm to detect function arguments and return values works. ...
0
votes
1answer
59 views

usercalls in old Win32 game

I am currently analyzing an old Win32 game from 1999 that was probably compiled with Visual C++ 6 and was programmed in C. I noticed that there are almost no usercalls (i.e. calls that use registers ...
1
vote
1answer
151 views

Lack of arguments before a CALL instruction

I'm reversing an open-source windows application written in C++. I found in the disassembler the desired function that I'm trying to understand its behavior. In the code this function is defined as ...
0
votes
1answer
318 views

Show arguments while debugging

I am a developer but I do not have much experience with IDA/reverse-engineering. Now I have to analyse a compiled program. Currently I try to debug a simple wininet.dll:wininet_InternetReadFile-...
4
votes
1answer
4k views

Understanding Program Arguments on the Stack in Assembly

To self-teach myself reverse engineering, I am writing small C programs and reversing them in order to understands how the compiler sees my code. However, I am having quite tough time understanding ...
-1
votes
1answer
267 views

Fixing IDA Member functions argument order

When IDA realizes a function relies on the this* pointer it often places as the second variable. Severely mucking up things. I was wondering is there away to fix this and maybe in turn help type ...
0
votes
1answer
83 views

Reading params of a text engine function amd86_64

I'm starting to learn amd86_64 calling convention and how it calls params and clean the stack but the concept hasn't sunk in yet, so i would like to get a help reading the params as this might clear ...
2
votes
2answers
182 views

Two arguments pushed on stack, callee only shows one argument

I have found myself confused while reversing some programs (specifically the IOLI Crackme challenges). I have no trouble solving them, but I have come across something that I do not understand and it ...
3
votes
1answer
579 views

Disassembled code: Find out command-line arguments of program

Imagine a program is launched (on windows) with a few starting parameters, for example a number and a string. When disassembling the program (With PEiD for example), how can I find out the starting ...
4
votes
1answer
852 views

How to figure out method argument sizes and types in elf32-i386 disasembly?

Consider folowing example code: program code build/program-x86: file format elf32-i386 Disassembly of section my_text: 080a9dfc <subroutine_fnc>: 80a9dfc: 55 push ...
1
vote
1answer
4k views

Passing argument through registers instead of the stack

I'm learning (and re-learning) C and assembly, and I came across a difference between what I've been taught and the actual result I have. Some code: int test(int a, int b){ return a + b; } int ...
0
votes
1answer
717 views

How to map a function argument to local variable?

Well, I've got an function that the pseudo code looks like: void d4l_auxadc_cali_unlocked_ioctl() { unsigned int v0; // r1@1 unsigned int v1; // r7@1 ... However, I am aware that the ...
0
votes
1answer
1k views

Right order of function arguments

i have the following function with three arguments: sub_602667B proc near arg_0 = dword ptr 4 arg_4 = dword ptr 8 arg_8 = dword ptr 0Ch push [esp+arg_8] push [esp+4+arg_4] push 15 ...