Challenge 'One Function'

Post Reply
arthur
Posts: 21
Joined: Fri Jul 23, 2010 12:44 pm

Challenge 'One Function'

Post by arthur »

hi, i think i know how to solve this one
this function seems to run on 32-bits machine, am i right?
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

is this the one I made? If so I think you'll find its x86-64, out of curiosity where about is it on the map?
arthur
Posts: 21
Joined: Fri Jul 23, 2010 12:44 pm

Post by arthur »

CodeX wrote:is this the one I made? If so I think you'll find its x86-64, out of curiosity where about is it on the map?
Thanks, CodeX
i got it now :D
you can get it from here /Maeda Path/Number Theory/One Function
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

Thanks, time to crack on with Number Theory :shock:
dayepa
Posts: 8
Joined: Mon Apr 19, 2010 2:33 pm

Post by dayepa »

Hello,
I just ran the function and I got *****************,
but that's not the answer.
Am I missing something?
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

yep :P
dayepa
Posts: 8
Joined: Mon Apr 19, 2010 2:33 pm

Post by dayepa »

I got it, thanks :-D
AMindForeverVoyaging
Forum Admin
Posts: 496
Joined: Sat May 28, 2011 9:14 am
Location: Germany

Post by AMindForeverVoyaging »

I'm having lots of fun with this challenge... only not really ;)

My disassembling attempts all seem to fail on the bytes "32 22" in the second half of the code... tried many different options. And even without that, trying to re-assemble this code is a pain. Which might be because it was never disassembled correctly.

Gah!
AMindForeverVoyaging
Forum Admin
Posts: 496
Joined: Sat May 28, 2011 9:14 am
Location: Germany

Post by AMindForeverVoyaging »

So, which tool are people using for the disassembly? I have tried:

-IDA (the 5.0 freeware version)
-debug.exe under Windows XP
-WinDbg under Windows 7
-objdump under Linux
-ndisasm

All to no avail.
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

I think I used ndisasm to reverse the code to make sure everything was fine, but I made the function using GCC - there's more than one way to solve this :p
AMindForeverVoyaging
Forum Admin
Posts: 496
Joined: Sat May 28, 2011 9:14 am
Location: Germany

Post by AMindForeverVoyaging »

I have written a C program which does the same as the given function. I am getting a 17-digit number as the result (apparently like dayepa). This is however not accepted. What am I missing?
Redford
Posts: 41
Joined: Sat Jul 04, 2009 8:32 pm
Location: Poland
Contact:

Post by Redford »

Try to 'decode' this number ;) Answer is a word (or two, I don't remember)
Image
SemmZemm
Posts: 5
Joined: Sun Apr 20, 2014 9:18 pm
Location: France, Russia

Post by SemmZemm »

I'm getting 19-digit number (if decimal) Am I wrong somewhere? Could someone say me what's wrong?
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post by CodeX »

The function should be returning a 17 digit decimal, there's more than one way to interpret the code
Post Reply