View Single Post
  #188 (permalink)  
Old 05-01-2013, 12:00 PM
jzhou's Avatar
jzhou
Lurker
Offline
 
Join Date: Apr 2013
Posts: 1
Reputation: 0
jzhou is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Question Re: help unlocking mogul spc/msl code

Quote:
Originally Posted by isosdcftp View Post
I've looked at the code for GetSPC and it looks like it takes 2 parameters, not just one. The function starts like this
Code:
STMFD   SP!, {R4-R8,LR} - store register values
SUB     SP, SP, #0xA0 - initialize stack
MOV     R4, R0 - store parameter 1 to R4
MOV     R7, R1 - store parameter 2 to r7
So, there is another parameter that is needed, I'm going too look at the rest of the files today if I have enough time. Maybe I can figure out what those parameters are.

Also, I'm new to the CDMA scene, I'm from IDEN originally. Is there a good faq or text available to learn of what all these codes/acronyms are used for?

EDIT: Parameter 1 looks to be a structure, where the first dword is a pointer to a string of '1234', and the second dword is NOT 0.
Code:
.text:0010251C                 LDR     R1, =a1234_0    ; char * - Load address of string '1234'
.text:00102520                 LDR     R0, [R4]        ; char * - Load first DWORD in parameter1's structure
.text:00102524                 BL      strcmp - Compare both Strings
.text:00102528                 CMP     R0, #0 - Check return Value
.text:0010252C                 BNE     ReturnFALSE - If the strings are not the same jump to return 0
.text:00102530                 LDR     R0, [R4,#4] - load second dword in parameter1's structure
.text:00102534                 CMP     R0, #0 - check if 0
.text:00102538                 BEQ     SetErrorTo_0x1D30C_AndReturn - jump to set last error and return
How did you get the code from the dll or exe? Can I know the tool/decompiler you used? Thanks!
Reply With Quote