|
-
Oct 11th, 2003, 01:49 PM
#1
Thread Starter
New Member
Need to find a way to convert something
I have ASM source code for a game client.
Problem is, I don't know ASM. There are a few sections in particular that I'm trying to understand and convert to VB so that I can turn it into either an ActiveX DLL or some other kind of class that can be called directly from VB apps.
As far as converters, I've found things to convert VB into just about any language possible, but nothing to convert ASM to VB.
If there is anyone out there that knows VB as well as ASM, please help? Below is an example ( a piece of the coding ). I am pretty sure I've figured out that this is just a bunch of character strings, add together. It's hard to explain directly here. If anyone has any questions or would like to know more, please ask.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; login_variables begin
login_var dd 0000007Dh
login_var2 dd 00000000h
;; login_variables end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; login_packet1 begin
login1_begin db 1Bh, 1Bh
login1_algo db 00h, 73h
login1_id db 00h, 00h
db 00h, 80h, 0FFh, 0F2h
db 00h, 0Fh, 00h, 1Eh, 01h, 09h, 03h, 69h, 77h, 70h, 34h, 32h, 35h, 00h, 00h, 00h
db 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
db 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
db 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 44h, 41h, 52h, 4Bh, 4Eh, 45h, 53h
db 53h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
account1_begin db 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
db 00h, 00h, 00h, 00h
password1_begin db 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
db 00h, 00h, 00h, 00h
login_BYTEs db 34h, 03h
;; login_packet1 end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
~Shagz
Last edited by Shags; Oct 11th, 2003 at 02:45 PM.
-
Oct 11th, 2003, 05:11 PM
#2
Fanatic Member
Are these characters 8 bit or 16 bit?
If you know that the data that you are looking at is character strings (and that they are 8-bit), then look up each pair of hex numbers under an ASCII chart.
I really do not know if you need to have a ASM to VB converter to do this.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Oct 11th, 2003, 05:46 PM
#3
Thread Starter
New Member
Yea, The character strings in it I can prolly figure out on my own. but there is some manipulation in them, the "algorithim" that you see of piece of in there.
This app is basically a client / server application. the code clip seen here is from the client side. Sorta hard to explain on boards without givving the world my user pass for the server but I'll tyr to give some examples:
client sends:
s €ÿò keywrd gameid usrname psswrd Æ
The server will send back:
ÿ€ ‚4 æ(
meaning that the account was accepted, the recieved respond is always the same length in size, but the 13th, 38th and 39th byte is different. So :
ÿ€ ‚4 æ(
ÿ€ ‚V rz
ÿ€ ‚_ ˆ[
ÿ€ ‚` nt
all 4 of those mean account accepted. But i believe the differences in the strings are part of that algorithm.
I have source code for a working client for the server, but it was written with RadASM. The only part I need to figure out from the asm, is exactly what the algorithim does (in english). The person who gave me the asm code, is sorta the smart-ass type, and everytime I ask him to explain it in english to me, he tells me "read the source" .. lol..
I really don't mind rewritting it myself from scratch in VB, that was my original intention to begin with. But I just need someone who understands asm to explain to me what is going on in this source.
btw, I noticed you on a previous post from someone else when i started this thread, and I added your AIM to my buddylist, hopeing to ask you directly. But i don't see you online. My AIM is on my profile. If you think this would go quicker on IM's.
~Shagz
-
Oct 11th, 2003, 06:40 PM
#4
Fanatic Member
I have little time, but if you post the source, I might be able to deciper it.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Oct 21st, 2003, 05:25 AM
#5
What you posted now is only some variable declarations.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 21st, 2003, 06:53 PM
#6
Fanatic Member
I know. I am, right now, going through this badly written, ill-documented code.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Oct 22nd, 2003, 01:05 AM
#7
He sent it by email? Mind posting it here too?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 22nd, 2003, 08:03 PM
#8
Fanatic Member
I think I got a handle on it right now.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Oct 24th, 2003, 12:59 PM
#9
Thread Starter
New Member
It was some rather large source, ... Evidently, the code was so badly written that in order to figure it out.. Darkwraith had to go through the whole thing.
Basically, this thread is <resolved>. 5+ Stars to Darkwraith.
~Shagz
-
Oct 24th, 2003, 02:58 PM
#10
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|