Assembly code help

i know that this site is for c++ but i don't know where else to ask my question. i am working on a lab and it involves working with assembly code. The code is taking a string and I'm pretty positive the string must be 6 characters long, i used the debugger and found a string six characters long and goes as followed "oilers". The issue is i don't know what i am supposed to do to the string to get my answer. i thought i had to convert it into ascii value and then mod those values by 15 but that didn't work and now i am out of ideas. Here is the code, so please if anyone can try and steer me in the right direction.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
   0x08048d3c <+0>:	push   %ebp
   0x08048d3d <+1>:	mov    %esp,%ebp
   0x08048d3f <+3>:	push   %edi
   0x08048d40 <+4>:	push   %esi
   0x08048d41 <+5>:	push   %ebx
   0x08048d42 <+6>:	sub    $0x2c,%esp
   0x08048d45 <+9>:	mov    0x8(%ebp),%eax
   0x08048d48 <+12>:	mov    %eax,(%esp)
   0x08048d4b <+15>:	call   0x8048f70 <string_length>
   0x08048d50 <+20>:	cmp    $0x6,%eax
   0x08048d53 <+23>:	je     0x8048d5a <phase_5+30>
   0x08048d55 <+25>:	call   0x8049188 <explode_bomb>
   0x08048d5a <+30>:	mov    $0x0,%eax
   0x08048d5f <+35>:	lea    -0x1f(%ebp),%ecx
   0x08048d62 <+38>:	mov    $0x804a1a4,%edx
   0x08048d67 <+43>:	mov    0x8(%ebp),%ebx
   0x08048d6a <+46>:	movsbl (%ebx,%eax,1),%esi
   0x08048d6e <+50>:	and    $0xf,%esi
   0x08048d71 <+53>:	movzbl (%edx,%esi,1),%esi
   0x08048d75 <+57>:	mov    %esi,%ebx
   0x08048d77 <+59>:	mov    %bl,(%ecx,%eax,1)
   0x08048d7a <+62>:	add    $0x1,%eax
   0x08048d7d <+65>:	cmp    $0x6,%eax
   0x08048d80 <+68>:	jne    0x8048d67 <phase_5+43>
   0x08048d82 <+70>:	movb   $0x0,-0x19(%ebp)
   0x08048d86 <+74>:	movl   $0x804a171,0x4(%esp)
   0x08048d8e <+82>:	lea    -0x1f(%ebp),%eax
   0x08048d91 <+85>:	mov    %eax,(%esp)
   0x08048d94 <+88>:	call   0x8048f8b <strings_not_equal>
   0x08048d99 <+93>:	test   %eax,%eax
   0x08048d9b <+95>:	je     0x8048da2 <phase_5+102>
   0x08048d9d <+97>:	call   0x8049188 <explode_bomb>
   0x08048da2 <+102>:	add    $0x2c,%esp
   0x08048da5 <+105>:	pop    %ebx
   0x08048da6 <+106>:	pop    %esi
   0x08048da7 <+107>:	pop    %edi
   0x08048da8 <+108>:	pop    %ebp
   0x08048da9 <+109>:	ret    


after dissembling some more of the code i found another string "aduier"
Last edited on
¿What do you want to do?
Im supposed to satisfy a password to defuse a bomb and the answer has something to do with the two strings, i tried converting them to binary and then anding them together and that didnt work. i honestly have no idea what to do
Cut the red wire, xP
Topic archived. No new replies allowed.