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] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 603 92,250 1 hour ago
Last Post: 0xnany
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 23 2,709 1 hour ago
Last Post: 0xnany
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 374 93,267 1 hour ago
Last Post: 0xnany
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 8 533 3 hours ago
Last Post: mrmanual
  [FREE] CPTS 12 FLAGS pulsebreaker 70 2,132 4 hours ago
Last Post: neurodot

Forum Jump:


 Users browsing this forum: 1 Guest(s)