Hex Rays + OpenAI wen?
Hex Rays + OpenAI wen? Перевести твит mov DWORD PTR [rbp-4], eax mov rax, QWORD PTR [rbp-32] mov edx, DWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rbp-4], edx mov rax, QWORD PTR [rbp-32] mov edx, DWORD PTR [rbp-4] mov DWORD PTR [rax], edx nop pop rbp void func(int *a, int *b) { int temp; *a = *b; *b = temp; } void func1(int *a, int n) { for (int i = 0; i < n; i++) { for (int j = 0; j < n - i - 1; j++) { if (a[j] > a[j + 1]) { func(&a[j], &a[j + 1]); } } } } void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } void bubble_sort(int *arr, int n) { for (int i = 0; i < n - 1; i++) { for (int j = 0; j < n - i - 1; j++) { if (arr[j] > arr[j + 1]) { swap(&arr[j], &arr[j + 1]); } } } } what do you think the code above does? the code seems to implement three functions: `func()`, `func1`, and `func2`. `func` is a swap function that swaps the values of two integers using pointers. `func1` takes a pointer to an integer array and an integer as arguments and sorts the array in ascending order using the bubble sort algorithm. `func2` takes a pointer to an integer array and an integer as arguments and prints the values in the array.
На изображении показан скриншот твита с вопросом «Hex Rays + OpenAI wen?» и фрагментами ассемблерного и C-кода. Шутка в том, что Hex-Rays декомпилирует машинный код, а OpenAI якобы сможет объяснить или восстановить смысл запутанного кода; подпись выражает ожидание такого сочетания инструментов. Такой мем отправляют как реакцию на сложный, непонятный или реверс-инжиниринговый код. EN: The image shows a tweet asking “Hex Rays + OpenAI wen?” alongside assembly and C code snippets. The joke is that Hex-Rays decompiles machine code, while OpenAI could supposedly explain or reconstruct the meaning of confusing code; the caption expresses anticipation for combining the two tools. This meme is used as a reaction to difficult, opaque, or reverse-engineered code.
- @ithueti / 8335 2022-12-02
- Type
- image
- Size
- 800×740 · 72.4 KiB
- Mood
- ироничный, абсурдный
- Language
- en
- Added