Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Linux SYS_WRITE vs Win WriteFile from kernel32.lib
Créé
il y a 5 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
7 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
12 lignes
Copier tout
17 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
18 lignes
Copier tout
inst_146:
inst_146:
;; native write
;; native write
Copier
Copié
Copier
Copié
sub rsp, 40 ; 32 bytes of shadow space + 8 bytes for fifth argument
mov ecx, STD_OUTPUT_HANDLE
call GetStdHandle
mov DWORD [stdout_handler], eax
xor r9, r9 ; 4 arg - r9 - lpNumberOfBytesWritten
mov r11, [stack_top]
mov r11, [stack_top]
sub r11, BM_WORD_SIZE
sub r11, BM_WORD_SIZE
Copier
Copié
Copier
Copié
mov
rdx
, [r11]
; 3 arg
mov
r8
, [r11]
; 3 arg
- r8 - buffer size
sub r11, BM_WORD_SIZE
sub r11, BM_WORD_SIZE
Copier
Copié
Copier
Copié
mov
rsi
, [r11]
mov
rdx
, [r11]
add
rsi
, memory
; 2 arg
add
rdx
, memory
; 2 arg
- rdx - buffer pointer
mov
rdi, STDOUT
; 1 arg
xor ecx, ecx
mov rax, SYS_WRITE
mov
ecx, dword [stdout_handler]
; 1 arg
- rcx - handler
mov [stack_top], r11
mov [stack_top], r11
Copier
Copié
Copier
Copié
sys
call
call
WriteFile
add rsp, 40
Différences enregistrées
Texte d'origine
Ouvrir un fichier
inst_146: ;; native write mov r11, [stack_top] sub r11, BM_WORD_SIZE mov rdx, [r11] ; 3 arg sub r11, BM_WORD_SIZE mov rsi, [r11] add rsi, memory ; 2 arg mov rdi, STDOUT ; 1 arg mov rax, SYS_WRITE mov [stack_top], r11 syscall
Texte modifié
Ouvrir un fichier
inst_146: ;; native write sub rsp, 40 ; 32 bytes of shadow space + 8 bytes for fifth argument mov ecx, STD_OUTPUT_HANDLE call GetStdHandle mov DWORD [stdout_handler], eax xor r9, r9 ; 4 arg - r9 - lpNumberOfBytesWritten mov r11, [stack_top] sub r11, BM_WORD_SIZE mov r8, [r11] ; 3 arg - r8 - buffer size sub r11, BM_WORD_SIZE mov rdx, [r11] add rdx, memory ; 2 arg - rdx - buffer pointer xor ecx, ecx mov ecx, dword [stdout_handler] ; 1 arg - rcx - handler mov [stack_top], r11 call WriteFile add rsp, 40
Trouver la différence