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 39 40 41 42 43 44 45 46 47 48 49 50
| # ... │ 0x004012fd 807c240663 cmp byte [rsp + 6], 0x63 ; 'c' │┌─< 0x00401302 7515 jne 0x401319 ││ 0x00401304 807c240749 cmp byte [rsp + 7], 0x49 ; 'I' ┌───< 0x00401309 750e jne 0x401319 │││ 0x0040130b 807c24084d cmp byte [rsp + 8], 0x4d ; 'M' ┌────< 0x00401310 7507 jne 0x401319 ││││ 0x00401312 807c240947 cmp byte [rsp + 9], 0x47 ; 'G' ┌─────< 0x00401317 7414 je 0x40132d │└└─└─> 0x00401319 488d3df60d.. lea rdi, str.ERROR:_Invalid_magic_number_ ; 0x402116 ; "ERROR: Invalid magic number!" ┌─┌┌─┌─> 0x00401320 e81bfeffff call sym.imp.puts ;[6] ┌────└──> 0x00401325 83cfff or edi, 0xffffffff ; -1 ╎╎│╎╎ ╎ 0x00401328 e8d3feffff call sym.imp.exit ;[7] ╎╎└─────> 0x0040132d 48837c240a01 cmp qword [rsp + 0xa], 1 ╎╎ ╎╎ ╎ 0x00401333 488d3df90d.. lea rdi, str.ERROR:_Unsupported_version_ ; 0x402133 ; "ERROR: Unsupported version!" ╎└──────< 0x0040133a 75e4 jne 0x401320 ╎ ╎╎ ╎ 0x0040133c 66837c24122e cmp word [rsp + 0x12], 0x2e ; '.' ╎ ╎╎ ╎ 0x00401342 488d3d060e.. lea rdi, str.ERROR:_Incorrect_width_ ; 0x40214f ; "ERROR: Incorrect width!" ╎ └────< 0x00401349 75d5 jne 0x401320 ╎ ╎ ╎ 0x0040134b 837c241414 cmp dword [rsp + 0x14], 0x14 ╎ ╎ ╎ 0x00401350 488d3d100e.. lea rdi, str.ERROR:_Incorrect_height_ ; 0x402167 ; "ERROR: Incorrect height!" ╎ └───< 0x00401357 75c7 jne 0x401320 ╎ ╎ 0x00401359 bf98030000 mov edi, 0x398 ; 920 ╎ ╎ 0x0040135e e85dfeffff call sym.imp.malloc ;[8] ╎ ╎ 0x00401363 488d3d160e.. lea rdi, str.ERROR:_Failed_to_allocate_memory_for_the_image_data_ ; 0x402180 ; "ERROR: Failed to all ╎ ╎ 0x0040136a 4889c3 mov rbx, rax ╎ ╎ 0x0040136d 4885c0 test rax, rax ╎ └─< 0x00401370 74ae je 0x401320 ╎ 0x00401372 ba98030000 mov edx, 0x398 ; 920 ╎ 0x00401377 4889c6 mov rsi, rax ╎ 0x0040137a 4183c8ff or r8d, 0xffffffff ; -1 ╎ 0x0040137e 31ff xor edi, edi ╎ 0x00401380 488d0d2e0e.. lea rcx, str.ERROR:_Failed_to_read_data_ ; 0x4021b5 ; "ERROR: Failed to read data!" ╎ 0x00401387 e83f020000 call sym.read_exact ;[5] ╎ 0x0040138c 0fb7542412 movzx edx, word [rsp + 0x12] ╎ 0x00401391 0faf542414 imul edx, dword [rsp + 0x14] ╎ 0x00401396 31c0 xor eax, eax ╎ ┌─> 0x00401398 39c2 cmp edx, eax ╎ ┌──< 0x0040139a 762f jbe 0x4013cb ╎ │╎ 0x0040139c 0fb60c03 movzx ecx, byte [rbx + rax] ╎ │╎ 0x004013a0 48ffc0 inc rax ╎ │╎ 0x004013a3 8d71e0 lea esi, [rcx - 0x20] ╎ │╎ 0x004013a6 4080fe5e cmp sil, 0x5e ; '^' ; 94 ╎ │└─< 0x004013aa 76ec jbe 0x401398 ╎ │ 0x004013ac 488b3d8d2c.. mov rdi, qword [obj.stderr] ; obj.stderr__GLIBC_2.2.5 ╎ │ ; [0x404040:8]=0 ╎ │ 0x004013b3 488d15170e.. lea rdx, str.ERROR:_Invalid_character_0x_x_in_the_image_data__n ; str.ERROR:_Invalid_character_0x_x_ ╎ │ ; 0x4021d1 ; "ERROR: Invalid character 0x%x in the image data!\n" ╎ │ 0x004013ba be01000000 mov esi, 1 ╎ │ 0x004013bf 31c0 xor eax, eax
|