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.
Thanks @paw for the rank!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] CPTS 12 FLAGS pulsebreaker 66 1,731 2 minutes ago
Last Post: vlka
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 370 92,402 5 hours ago
Last Post: lifolifo007
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,201 8 hours ago
Last Post: kkkato
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,515 Yesterday, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 410 Yesterday, 10:36 PM
Last Post: op334

Forum Jump:


 Users browsing this forum: 1 Guest(s)