HTB Rev - Iterative Virus
by macavitysworld - Saturday March 23, 2024 at 04:33 AM
#1
HTB Reversing Challenge - Iterative Virus(Quick writeup)
  • Use the 'file' command to provide an overview of the file type.
  • Open the file in PEBear to find detailed information. Discover a strange section named ivir and Timestamp = deadc0de.
  • Open the program in IDA64 for code analysis.
  • The function retrieves a pointer to the linked list of modules through NtCurrentTeb() and accesses information about the process and the kernel32_GetProcAddress module.
  • The main function copies text strings to memory based on the input value and ensures the strings are terminated with a null character.
  • Rename variables to make the program clearer and easier to understand, create a memory-mapped view of the file.
  • Check conditions to determine if the file could be malicious or not, and perform necessary operations to create or modify sections in the file.
  • Encode data in the victim file and perform various operations to cause harm when the victim file is executed.
  • Import important functions from kernel32.dll and user32.dll and execute system API functions like GetUserNameA and MessageBoxA to perform specific tasks.



Flag#
Hidden Content
You must register or login to view this content.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 364 88,787 7 hours ago
Last Post: napo22
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 90 7,532 Yesterday, 05:26 AM
Last Post: dingaghost
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 2,353 03-28-2026, 03:30 AM
Last Post: lulaladrow
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 353 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - ALL Challenges you Stuck in osamy7593 2 651 03-27-2026, 04:24 PM
Last Post: catsweet



 Users browsing this thread: