118
119
static int pefromupx (char *src, uint32_t ssize, char *dst, uint32_t *dsize, uint32_t ep, uint32_t upx0, uint32_t upx1, uint32_t *magic, uint32_t dend)
120
char *imports, *sections, *pehdr=NULL, *newbuf;
121
char *imports, *sections=NULL, *pehdr=NULL, *newbuf;
121
122
unsigned int sectcnt=0, upd=1;
122
123
uint32_t realstuffsz=0, valign=0;
123
124
uint32_t foffset=0xd0+0xf8;