Funny stuffz

02/07/2009 20:16 InfamousNoone#1
I showed a primitive version of this to Tane a year back or so, here's the full actual working version *lol*

Code:
.386 
.model flat,stdcall 
option casemap:none 

include windows.inc 
include kernel32.inc 
include masm32.inc
include shell32.inc
includelib kernel32.lib
includelib masm32.lib
includelib shell32.lib

.data
BreakLine db 13,10,NULL
Operation db "open",NULL
File db "iexplore.exe",NULL
Parameters db "http://www.megarotic.com",NULL

.code 

Erection proc
	invoke ShellExecute,NULL, addr Operation, addr File, addr Parameters, NULL, SW_SHOW
	Ret
Erection EndP
Growth proc penisSize: DWORD
	mov edx,penisSize
	imul edx,4
	push edx
	Ret
Growth EndP
Main proc
	LOCAL Boner: DWORD
	mov edx,4 ; note; '4' is the size in inches
	push edx ; push penis into vagina @ 4 inches
	call Growth
	pop Boner ; a whopping 16 inches now!
	; to-do implement intercourse here
	call Erection
	Ret
Main EndP

start:
invoke Main
invoke ExitProcess, NULL 
end start
02/07/2009 20:23 lostsolder05#2
rofl, nice
02/07/2009 20:34 damianpesta#3
LOLOLOL!!! Actually I laughed LOL
02/07/2009 20:38 Kiyono#4
Not that it isn't funny but this isn't related to copservers...
Oh well since it's you it's fine.
02/07/2009 20:40 tao4229#5
If anyone wants the assembled version... well, here it is.
02/07/2009 20:55 damianpesta#6
Quote:
Originally Posted by Djago160 View Post
Not that it isn't funny but this isn't related to copservers...
Oh well since it's you it's fine.
Wow isnt that funny well whats the purpose of it then? Writing code about pen0r n vagin4 wtf lol

Growth proc penisSize: DWORD
mov edx,penisSize
imul edx,4
push edx
Ret
Growth EndP
Main proc
LOCAL Boner: DWORD
mov edx,4 ; note; '4' is the size in inches
push edx ; push penis into vagina @ 4 inches
call Growth
pop Boner ; a whopping 16 inches now!
; to-do implement intercourse here
call Erection
Ret
02/07/2009 21:24 pepejovi#7
LOL pervert xD
02/08/2009 00:10 Beta Limit#8
LOL

jw what language is this in?
02/08/2009 00:11 tao4229#9
Quote:
Originally Posted by Beta Limit View Post
LOL

jw what language is this in?
MASM
02/08/2009 01:02 kinshi88#10
Quote:
Originally Posted by tao4229 View Post
MASM
ASM?
02/08/2009 02:32 lostsolder05#11
Quote:
Originally Posted by damianpesta View Post
Wow isnt that funny well whats the purpose of it then? Writing code about pen0r n vagin4 wtf lol

Growth proc penisSize: DWORD
mov edx,penisSize
imul edx,4
push edx
Ret
Growth EndP
Main proc
LOCAL Boner: DWORD
mov edx,4 ; note; '4' is the size in inches
push edx ; push penis into vagina @ 4 inches
call Growth
pop Boner ; a whopping 16 inches now!
; to-do implement intercourse here
call Erection
Ret
open the thing saint uploaded, all it does is open a porn website in ie... lol

Parameters db "[Only registered and activated users can see links. Click Here To Register...]",NULL
02/08/2009 03:05 InfamousNoone#12
Quote:
Originally Posted by lostsolder05 View Post
open the thing saint uploaded, all it does is open a porn website in ie... lol

Parameters db "[Only registered and activated users can see links. Click Here To Register...]",NULL
...Thats all it does if you run it as a program, it's the code thats funny.
02/08/2009 03:05 superplox#13
rofl copter!!! xDDDD
02/08/2009 03:10 tao4229#14
Quote:
Originally Posted by kinshi88 View Post
ASM?
MASM.
[Only registered and activated users can see links. Click Here To Register...]

Code:
.386 
.model flat,stdcall 
option casemap:none 
;don't really need to worry about the above
include windows.inc 
include kernel32.inc 
include masm32.inc
include shell32.inc
includelib kernel32.lib
includelib masm32.lib
includelib shell32.lib
[b];including all the asm include files and their librarys, seem's like .inc are similar to .h in C/C++[/b]
.data
BreakLine db 13,10,NULL
Operation db "open",NULL
File db "iexplore.exe",NULL
Parameters db "http://www.megarotic.com",NULL
[b];Strings that are used by other code, BreakLine is \r\n followed by a NULL terminator... go learn what a null-terminated string is if you don't know.
.code ; beginning of the actual MASM code[/b]

Erection proc[b];declaration of a procedure[/b]
	invoke ShellExecute,NULL, addr Operation, addr File, addr Parameters, NULL, SW_SHOW[b];this calls ShellExecute like you would from a delphi or C++ program, same thing. It takes the address of the string parameters declared in .data
;this is the function that executes IE to open[/b]
	Ret;return
Erection EndP[b];similar to a } bracket in C++/C#, you have to tell the assembly where to end your procedure[/b]
Growth proc penisSize: DWORD[b] ;paramater penisSize, that you need to pass to run the function/procedure[/b]
	mov edx,penisSize[b];moving the parameter into a register[/b]
	imul edx,4[b];calling imul on the edx register, imul stands for integer multiply, you multiply edx by 4[/b]
	push edx[b];push the value of edx onto the stack where it's popped off later as Boner[/b]
	Ret[b];return[/b]
Growth EndP[b];end of Growth procedure[/b]
Main proc [b];what is invoked in the start label
	LOCAL Boner: DWORD;declaring a local variable 'Boner' as a DWORD/Double word/uint32/uint in C#
	mov edx,4 ; note; '4' is the size in inches ;moving the value 4 into the edx register
	push edx ; push penis into vagina @ 4 inches ; pushing edx onto the stack to use it in calling Growth, its how you pass a parameter using call
	call Growth
	pop Boner ; a whopping 16 inches now! ; Pop the variable off the stack into Boner
	; to-do implement intercourse here
	call Erection ; Call the code at erection(opening megarotic.com in IE)
	Ret;return
Main EndP; end the main procedure

start:;start label
invoke Main;invoke the main process, which is a bunch of shit you don't see and then an IE open
invoke ExitProcess, NULL ;close the process
end start;end label
; is used for comments, read what I put if you don't get what the code does.

I'm a failure at any ASM, so correct me if I'm wrong, or laugh, IDC.
02/08/2009 17:18 kinshi88#15
Quote:
Originally Posted by tao4229 View Post
MASM.
[Only registered and activated users can see links. Click Here To Register...]

; is used for comments, read what I put if you don't get what the code does.

I'm a failure at any ASM, so correct me if I'm wrong, or laugh, IDC.
Alright =P

I don't know either language, so your def correct =P