Skip to content

Instantly share code, notes, and snippets.

@anch0vy
Created June 10, 2015 06:30
Show Gist options
  • Save anch0vy/273eca1cd55bf7b075b9 to your computer and use it in GitHub Desktop.
Save anch0vy/273eca1cd55bf7b075b9 to your computer and use it in GitHub Desktop.
def wtf(r):
global dontknow_table
for x in range(len(dontknow_table)):
dontknow_table[x]^=xor_table[r]
r3=0x0
while 1:
r7 = [input[r3:r3+2][::-1] - 0x3332][::-1]
r7 = ~r7
if r7==0x3133: #input[r3:r3+2]==0
break
r6=r7 & 0xff00 >> 8
r7=r7 & 0xff
r7=r7^r6
r7=dontknow_table[r7*2:r7*2+2]
r6=stack.pop()
r7=r7^r6
stack.append(r6) #이게 스택에 남음!
stack.append(r7)
WTF(r3)
r3=r3+1
for x in range(0x3a/2):
r5=dontknow_table2[x]
r3=stack.pop()
if r5!=r3:
r3,r2=0,0
exit()
if r3==0x5a4d:
r3,r2=0xdead,0xbeef
exit()
else:
r3,r2=0,0
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment