Demo entry 5397965

assembly

   

Submitted by anonymous on Jun 23, 2016 at 02:35
Language: NASM. Code size: 1.5 kB.

.text:0000000000437177 loc_437177:
.text:0000000000437177 mov     eax, [rbp+counter_?]
.text:000000000043717D movsxd  rsi, eax
.text:0000000000437180 mov     rax, [rbp+var_3C0]
.text:0000000000437187 add     rax, 8
.text:000000000043718B mov     rax, [rax]       ; rax = arg1
.text:000000000043718E mov     [rbp+var_3C8], 0FFFFFFFFFFFFFFFFh
.text:0000000000437199 mov     rdx, rax
.text:000000000043719C mov     eax, 0
.text:00000000004371A1 mov     rcx, [rbp+var_3C8]
.text:00000000004371A8 mov     rdi, rdx        ; rdi = arg1
.text:00000000004371AB repne scasb             ; strlen(arg1)
.text:00000000004371AD mov     rax, rcx
.text:00000000004371B0 not     rax
.text:00000000004371B3 sub     rax, 1
.text:00000000004371B7 cmp     rsi, rax        ; check if counter < 11
.text:00000000004371BA setb    al
.text:00000000004371BD test    al, al
.text:00000000004371BF jnz     short arg1_xor_0x56 ; if counter < 11 jump to for

.text:0000000000437149 for_arg1_xor_0x56
.text:0000000000437149 mov     eax, [rbp+counter_?]
.text:000000000043714F cdqe
.text:0000000000437151 add     rax, [rbp+arg1_2]
.text:0000000000437158 mov     edx, [rbp+counter_?]
.text:000000000043715E movsxd  rdx, edx
.text:0000000000437161 add     rdx, [rbp+arg1_2]
.text:0000000000437168 movzx   edx, byte ptr [rdx]
.text:000000000043716B xor     edx, 56h             ; xor with 0x56
.text:000000000043716E mov     [rax], dl
.text:0000000000437170 add     [rbp+counter_?], 1
; jumps back to top

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).