logs archiveIRC Archive / Undernet / #asm / 2006 / March / 7 / 1
malfunc
?? paste
wisebot
malfunc: paste -> http://cpp.sf.net - http://www.noidea128.org - http://www.rafb.net/paste
joe-f
what does this mean: cmp eax,DWORD PTR [esi+ebx*4-4]
dbtid
compare what's in eax with whats in the memory at [*esi + *ebx * 4 - 4]
joe-f
ok so it's address..
does this just add 5 to eax? add eax,0x5
edcba
yes
dbtid
edcba: was i right about my answer?
*(esi + ebx * 4 - 4]
*(esi + ebx * 4 - 4)
edcba
yes it is much correct now
dbtid
i was sloppy before
         

joe-f
what exactly does a "lea" do (ie. lea eax,[ebp-32]), i know it stands for load effective address..
edcba
it loads the effective address into the register
joe-f
so eax = the addr. of ebp-32?
edcba
yes
the addr of [ebp-2]
so eax=ebp-2
joe-f
why just -2?
edcba
because my key 3 doesn't work
joe-f
haha
anyone feel like doing a puzzle?
edcba
what is your puzzle ?
joe-f
a super fun and exciting assembly puzzle!
aBbS^m
where?
joe-f
haha, i need to find out a string to enter, which contains six numbers..
edcba
telling me that decrease my envy
joe-f
so like "1 2 3 4 5 6"
and basically theres 1 loop
aBbS^m
any 6 number digit?
joe-f
yeah, i believe it's all under 9, so like the max would be: "9 9 9 9 9 9"
anywho, here's the link to the asm code that i have for it: http://pastebin.com/588107
technically it'd only be what like 9^6 guesses?
edcba
100000
joe-f
nope
dbtid
1,000,000
000000 - 999999 is 1,000,000
joe-f
oh ya
edcba
hmm forgot a 0
         

aBbS^m
1000000 sets ov flag
ic its a 32 bit asm
edcba
i guess something is triggered when x(i) = x(i+1)+5
x(i)+5=x(i+1)
try something like 161616
joe-f
ok 1 sec
it blew up, i'll set a break point at look at the registrys
edcba
who wrote that code btw ?
i wonder if there are some bugs or not
joe-f
it's actually c++ disassembled.. that's why it probably looks like junk
edcba
you totally messed up intel syntax
i understand a lot better now lol
joe-f
hah, hey that's what c++ does to code i guess
then everything else just probably makes it look even worse
edcba
no i mean jne doesn't loop where it should
in the intel syntax code
phase_2+31 is not phase_2+1f
joe-f
1f=31
edcba
ok i just messed up some calculations lol
joe-f
the way the other 'gdb' debugger disassembled the code makes it a lil easier
edcba
i think that is really unsolvable
unless you don't use numbers
you need : x (x+5) (x+10) (x+15) (x+20) (x+25) (x+30)
joe-f
oh because of how eax keeps eax+=5 in the loop..
holy crap
you just got it
its not all under 9
its "5 10 15 20 25 30"
good call there man
edcba
it was not really puzzling
joe-f
i have a harder one if you want.. ha
edcba
i don't think it would be enough hard
joe-f
yeah probably not, you guys do know assembly quite well
_exe
^.^
Welcome lll.
lll
puto
jajaa
_exe
No me hagás quedar mal en el exterior >_<
lll
bueno....
_exe
disc er du her?
Elessar^
mange norske her? =)
lll
ay ay mira como hablan
_exe
jeg kan bare litt norsk :_/
du?
er du fra norge?
Elessar^
ja =)
_exe
lll aprovecho que hay mucha gente que habla noruego acá :_/
Elessar^
synes du snakker godt norsk jeg =)
fra det lille jeg har sett =)
_exe
Haha, nei
wait a second, you're on #math, #physics, #asm...
Uhmm, are you toro?
Elessar^
no =)
_exe
toro's boyfriend?
Elessar^
lol
though i think i might have heard that name before
i hanged out here years ago
_exe
Oh
TCA's era :_P
lll
...
esto es un embole
puedo bardear que nadie entiende una goma
_exe
Podés bardear en inglés.
Mirá esto
.weather Buenos Aires, Argentina
wisebot
Weather for Buenos Aires, Argentina(last update: 10:00 PM ART on March 06, 2006) | Temperature: 73°F | Humidity: 78% | Dew Point: 66°F | Sunrise: 6:45 AM ART | Sunset: 7:24 PM ART | Moon Rise: 2:11 PM ART | Moon Set: 11:40 PM ART
_exe
Va a cambiarte la vida.
lll
sigue apestando
_exe
?? xum
wisebot
_exe: xum -> http://www.flashyourrack.com/flash.cgi?user=denise
_exe
La foto podría ser de un piercing en un pene
ralf-b
hei Elessar^
Elessar^
hei =)
ralf-b
hvor i norge? :)
Elessar^
trondheim =)
ralf-b
jatta jatta
sørlandet her :p
nn..
Elessar^
=)
mange norske her inne eller? =)
ralf-b
til tider
er et par til
Elessar^
oki
ralf-b
men er ikke ofte inne her lenger.. så vet egentlig ikek
disc er norsk
Elessar^
ja det så jeg
ralf-b
mm
hva gjør du i tromsø da?
eller trondheim
Elessar^
studerer selvfølgelig :P
ralf-b
Tenkte meg det
Elessar^
er jo rundt 20k studenter her, så sjansen var stor :P
ralf-b
x)
joe-f
anyone want to help me with an assembly puzzle?
_exe
An assembly puzzle?
joe-f
yeah it returns if the string entered is correct
the code that it runs threw is considered a "select statement"
so it has a bunch of jmp's
the string needs to be like "%d %c %d"
_exe
Are you cracking an app?
joe-f
yeah its for extra credit
_exe
They teach you cracking?
joe-f
"debugging"
haha
_exe
Let's see, although I'm not good at cracking.
joe-f
but yea we've learned about a whole bunch of viruses
i mean, i'm not good at assembly.. it's actually c++ code, that i dont have the source for.. so it's "disassembled"
here's the function, as i said, it takes in a string like "1 a 1" with the sscanf function
http://pastebin.com/588140
any ideas?
_exe
joe-f too much code.
And it's 2:30 am
« prev 1 2 3 next »