[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Can somebody explain this assembly to me? Is there a reference

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 13
Thread images: 2

Can somebody explain this assembly to me?

Is there a reference to understand it?

I would like to understand what each assembly item is?

E.g.

I think

&Cnt+[16-bit hex value]
Is the instruction address

55 is the actual instruction value in hexadecimal

PUSH I don't know (put 64 bit value on stack?)

U64 Unsigned 64 bit value?

RBP Is a register but I'm not sure?


Mainly, what is
PUSH
MOV
SUB
XOR
CMP
JG
CALL
ADD
INC
JMP
POP
LEAVE
RETI
AND

Also
RBP
RSP
I8 08
RSI
RDI
U64 10[RBP]

etc...

Thanks.
>>
>>59393382
Did you try RTFM?
>>
>>59393403
What is that?
>>
>>59393403
I can't find the fucking manual.

Fucking CIA nigger.
>>
File: 1487814628396.jpg (23KB, 329x322px) Image search: [Google]
1487814628396.jpg
23KB, 329x322px
>>59393459
Regular Titties From Mommy
read an introduction nasm book, download the intel manual and look up those instructions or google for one of the 1000000 explanations of what basic mnemonics do
>>
>>59393459
Read The Freaking Manual

The bottom section of this page has information on assembly programming conventions in TempleOS:
http://www.templeos.org/Wb/Doc/GuideLines.html#l154

And for general information on x86 (PC CPU) assembly just do a general web search for "x86 instruction set" and the terms you want information on.
>>
It differs slightly with different instruction sets but basically, but a book on assembly of any sort would help loads.

Push should push a value to the stack

Mov will store an immediate value in a register, or store a value from memory in a register, or store a value from a register/immediate to memory (no memory->memory)

Sub is subtraction.

XOR is an exclusive or operation (bitwise)

CMP compares values of two registers or compares a register and immediate.

JG "jump if greater than"

CALL will run a procedure / function / subroutine

ADD is addition

INC is increment, think i++

JMP says to jump to a label.

POP pops top value off of a stack and stores it in the given register.

LEAVE - don't know
RETI - dont know

AND - bitwise AND operation.

To registers:

RAX, RBX, RCX, RDX are general purpose registers. Some might have specific purposes in some cases, like CX being used for loop counts.

RBP - base pointer, holds location to base of stack in memory
RSP - stack pointer. I think it points to top of the stack.

RSI - source
RSI - destination
I think si and di are typically used for array operations (storing the memory locations)

Unsure about the rest but hopefully it helps some.

https://wiki.skullsecurity.org/index.php?title=Assembly

https://www.tutorialspoint.com/assembly_programming/index.htm
>>
>>59393382
Looks like a x86_64 hello world to me.
>>
>>59393382
There's more than one "assembly" language.
Pick one and learn it.
Academics usually start with MIPS and use altera modelsim or some shit.
It's been a while...

Anyways pick the one you want to use. Then pick a book. Don't be like 95% of the people who learn an assembly language. In other words, actually learn it.

Then in 10 years, after you've not found a compelling reason to apply your knowledge, post in threads telling people what to do with it.

Why life.
>>
>>59393382
The best resource I've found for learning assembly was Hacking: The Art of Exploitation

Chapter 2 is like a crash course C and Assembly course. It's a tough read if you don't have any prior experience but it's still the easiest resource I've found for assembly.
>>
Csapp is a good book for this.
>>
>>59394116
I won't claim to be an expert though. I can tell what each line is separately, but I don't know what the purpose of this is. It can't be anything too complicated cause it's really short. Looks like there might be a loop in there and it prints something.
>>
>>59393551
>HolyC

kek
Thread posts: 13
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.