5k3l3t0r Posted January 28, 2007 Posted January 28, 2007 hi alli need help on how to get regkeys...i know how to set but i don't know how to get...can someone help mee?bye, tkx5k3l3t0r
Killboy Posted January 28, 2007 Posted January 28, 2007 (edited) Quickly stolen from lena, sorry xDRegCreateKeyARegCloseKeyARegOpenKeyARegQueryValueARegQueryValueExARegDeleteKeyAAre you trying to reverse registry checks or are you trying to code that yourself ?In case you're coding, take a look at the MSDN, for reversing you can place BPs on almost all of them, mainly RegQueryValue(Ex)A does the job. Edited January 28, 2007 by KillBoy-PowerHead
5k3l3t0r Posted January 28, 2007 Author Posted January 28, 2007 hi...tkx for your answer...i,m coding...bye,5k3l3t0r
5k3l3t0r Posted January 28, 2007 Author Posted January 28, 2007 (edited) hi KillBoy-PowerHea...could you help me a litle more?supose i have a button - ID 1015 and a edittext ID 1014 and what i need is when i click my butt the editbox show the value of a reg keyi use this:.elseif eax==1015invoke RegQueryValue,HKEY_CURRENT_USER,addr RegSubkey2,offset buffer,100invoke SetDlgItemText,hWnd,1014,offset buffer but... it doesn?t work, could you hellp me? Edited January 28, 2007 by 5k3l3t0r
GaBoR Posted January 28, 2007 Posted January 28, 2007 Use RegQueryValueEx, here is a demo(ASM) that uses registry functions:http://www.sendspace.com/file/e2gokk
3f4dz6tgds5dq Posted March 2, 2008 Posted March 2, 2008 i'm a noob in asm i need help for making reg patch in asmi search an exemple, i dont know RegCreateKeyAsomeone can explain me how to create a new key in registre (REG_SZ) on masm32 ?
Killboy Posted March 2, 2008 Posted March 2, 2008 Is it so hard to use google... http://www.winasm.net/forum/index.php?showtopic=1022
Loki Posted March 2, 2008 Posted March 2, 2008 MSDN will also help you whenever you dont know the details around a particular API - its an unbeatable reference.If you want a reference with ASM examples for patchers and other things, check out Goppit's tutorial over at ARTeam and Icezilion's tutorials in MASM.
BlacKaT Posted March 2, 2008 Posted March 2, 2008 MSDN will also help you whenever you dont know the details around a particular API - its an unbeatable reference.If you want a reference with ASM examples for patchers and other things, check out Goppit's tutorial over at ARTeam and Icezilion's tutorials in MASM. ASM my preferred lang. and MSDN is useless for me :{ (most times) i usually end up passing the source im working on to my buddy. and he helps me out
STN Posted March 3, 2008 Posted March 3, 2008 MSDN will also help you whenever you dont know the details around a particular API - its an unbeatable reference.exactly!. i'm a noob in asm i need help for making reg patch in asmi search an exemple, i dont know RegCreateKeyAsomeone can explain me how to create a new key in registre (REG_SZ) on masm32 ?Here's an example i found lying around on my hdd. Contains what you need(RegCreateKey,RegOpenKey etc.)_http://www.zshare.net/download/83985761641cc6/
starzboy Posted March 3, 2008 Posted March 3, 2008 To access the registry you have to open the registry first.You can open the registry by :RegOpenKey -- If the Key path exists.orRegCreateKey -- Key will be created if it does not exists.If this function is a success the we get a 0 in eax.Example:mov cbData,512h ; cbdata is a local dword.invoke RegOpenKeyEx,HKEY_LOCAL_MACHINE,chr$("SOFTWARE\crap\crap1"),0,KEY_READ,addr hKey ; create the key.cmp eax,00h jne _error ; jump to error if not 0.mov hKey,eax ; store key handle = 0invoke RegQueryValueEx,hKey,chr$("Crappier"),0,0,addr buffer,addr cbData ; get the value data into buffer.invoke RegCloseKey,hKey ; close handle_error:Hope it helps.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now