Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to call readfile in asm code?

Featured Replies

Posted

hi,


 


I want to create loader and need to change BytesToRead to 0 but how to call readfile in asm code



0012F130   0132A275  /CALL to ReadFile
0012F134   0000015C  |hFile = 0000015C (window)
0012F138   02724FF8  |Buffer = 02724FF8
0012F13C   000002F8  |BytesToRead = 2F8 (760.)
0012F140   0012F660  |pBytesRead = 0012F660
0012F144   00000000  \pOverlapped = NULL

thanks


Like this:


PUSH 0                                ; pOverlapped
PUSH EAX                              ; pBytesRead
PUSH 0                                ; BytesToRead
LEA EAX, DWORD PTR SS:[BufferAddress] ; Buffer
PUSH EDI                              ; hFile
CALL DWORD PTR DS:[kernel32.ReadFile]
  • Author

yes like that thank you.



PUSH 0x0 ; /pOverlapped = NULL
LEA EAX,DWORD PTR DS:[0x12F660] ; |
PUSH EAX ; |pBytesRead
MOV EAX,DWORD PTR DS:[EAX] ; |2F8
PUSH EAX ; |BytesToRead
MOV EAX,DWORD PTR DS:[0x2724FF8] ; |
PUSH EAX ; |Buffer
MOV EAX,0x15C ; |15C
PUSH EAX ; |hFile
CALL kernel32.ReadFile ; \ReadFile

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.