Questions tagged [array]
The array tag has no usage guidance.
0
votes
1answer
97 views
RE4B challenge 65: how to determine the first dimension of the array?
Challenge 65: Try to determine the dimensions of the array, at least partially.
_array$ = 8
_x$ = 12
_y$ = 16
_z$ = 20
_f PROC
mov eax, DWORD PTR _x$[esp-4]
mov edx, DWORD PTR ...
0
votes
1answer
49 views
How to convert IDA Pseudo code casts to Array
I have a pseudo code in IDA which is as such
consdering v5= 3838385024767399985LL
v1 += 53 * *((char *)&v5 + i);
In C-Friendly format this should be
v1 += 53 * v5[i]
Is there any way in IDA ...
1
vote
1answer
170 views
Odd convention for accessing elements of an array?
While reverse engineering a game using the Hex Rays decompiler I was looking for how an array of NPC's was accessed. I found the array but I don't quite understand the unusual formula for getting the ...
1
vote
1answer
1k views
IDA Pro Export C style array using Python instead of GUI menu
IDA Pro 6.95. From the menu I can use Edit... Export data... C unsigned char array (hex).
I want to do this in a Python script without rewriting what already works.
I have looked for a way to find a ...
0
votes
3answers
296 views
Hex-Rays decompiles array to int
I decompiled one dll using Hex-Ray but it decompiled array type input argument of dll to int. Any idea how to handle this ??
double dzSell(int a1, double a2, int a3, int a4, int a5)
int a1 is array ...
4
votes
1answer
343 views
Does hex-rays support VLA in any way?
I was testing some 'C' code with VLAs. It wasn't that surprising that Hex-Rays was not able to recognize VLA. As with structures there is some way to make it understand (simply making the variable ...
1
vote
1answer
2k views
IDA Array of structs hiding strings
I have just started teaching myself IDA and I have had some trouble with an array of structs.
I have found and defined a struct similar to this: (simplified)
struct {
char filename[50];
int field2;
...
3
votes
1answer
4k views
How to make stack variables into an array in IDA Pro
I've got a procedure in IDA Pro with a few local stack variables, but part of them belong to an array. I would like to define the array, but pressing * (Create Array) fails, and pressing Y (Set Type) ...
2
votes
1answer
488 views
Using GetProcAddress with offset syntax
I have the following line (I use IDA PRO) :
...
push (offset aPstorec_dllwne+0Ch) ; lpProcName
push esi ; hModule
call GetProcAddress_0
...
When I ...