label(notnull) newmem: //this is allocated memory, you have read,write,execute access //place your code here push rax push rcx push r11 push rdx push r8 push 0 xor rax, rax xor rcx, rcx call time pop rcx xor rcx, rcx mov ecx, eax push 0 call srand pop rcx call rand call rand and eax, 1 test eax, eax pop r8 pop rdx pop r11 pop rcx pop rax jnz notnull dec [r11+14] notnull: mov rcx, rsi originalcode: nop nop nop nop nop nop nop