Function at 0x401220
Capabilities:
Capture network configuration via ipconfig
Copy file
Delete file
Execute command
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403a5a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x134
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], 0
push 0x40430c
mov byte [ebp - 0x135], 0x30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 4
mov edx, 0x404310
call fcn.00402570
push 0x402790
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._1_
call fcn.00402570
push 0x402790
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_istream_char__struct_std::char_traits_char___std::cin]
lea edx, [ebp - 0x135]
call fcn.004027c0
mov al, byte [ebp - 0x135]
cmp al, 0x30
je 0x40178b
cmp al, 0x31
jne 0x4016ca
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x404370
call fcn.00402570
push 0x402790
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 0
push str.C:WindowsSystem32driversetchosts.bakup
push str.C:WindowsSystem32driversetchosts
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x404380
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x3e8
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x404384
call fcn.00402570
push 0x402790
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 0x3e8
call esi
push 0x404398
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
lea eax, [ebp - 0x128]
push 0xc0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x4044f4
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x118], 0x404498
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x12c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x110]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x110]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xc8], 0
mov byte [ebp - 0xd3], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x407600]
mov ecx, dword [0x407604]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xd8], 0
push 0x40
push 0xa
push str.C:WindowsSystem32driversetchosts
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_char_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40158c
lea ecx, [ebp - 0x110]
mov byte [ebp - 0xc8], 1
mov byte [ebp - 0xd3], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
lea eax, [ebp - 0x134]
mov dword [ebp - 0x12c], 0
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov edx, dword [ebp - 0x134]
add esp, 0x10
mov ecx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x12c]
push edx
push ecx
push eax
push edx
push ecx
push eax
lea ecx, [ebp - 0x110]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____char____int___char____char____int__]
mov eax, dword [0x407600]
mov ecx, dword [0x407604]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0xcc], ecx
lea ecx, [ebp - 0x110]
push eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xd8], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004028b0
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x40153e
mov dword [ebp - 0xd8], 0
jmp 0x401550
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xd8], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x401571
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x401571
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0
push 0
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x4015a5
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, str._fuck_speed_start
lea ecx, [ebp - 0x118]
call fcn.00402570
push 0x402790
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 edx, str._________________________________________
lea ecx, [ebp - 0x118]
call fcn.00402570
push 0x402790
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 edx, str.47.74.196.250
lea ecx, [ebp - 0x118]
call fcn.00402570
mov edx, 0x404400
mov ecx, eax
call fcn.00402570
mov edx, str.bigota.d.miui.com
mov ecx, eax
call fcn.00402570
push 0x402790
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 edx, str.47.74.196.250
lea ecx, [ebp - 0x118]
call fcn.00402570
mov edx, 0x404400
mov ecx, eax
call fcn.00402570
mov edx, str.hugeota.d.miui.com
mov ecx, eax
call fcn.00402570
push 0x402790
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 edx, str._________________________________________
lea ecx, [ebp - 0x118]
call fcn.00402570
push 0x402790
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 edx, str._fuck_speed_end
lea ecx, [ebp - 0x118]
call fcn.00402570
push 0x402790
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_____]
lea ecx, [ebp - 0x110]
call fcn.004024e0
test eax, eax
jne 0x4016aa
push eax
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str._echo_off__Ipconfig__flushdns
call esi
add esp, 4
lea ecx, [ebp - 0x128]
call fcn.004017c0
jmp 0x401796
cmp al, 0x32
jne 0x401790
push str.C:WindowsSystem32driversetchosts
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
test eax, eax
jne 0x401784
movups xmm0, xmmword [str.C:WindowsSystem32driversetchosts.bakup]
mov eax, dword [0x4042cc]
mov dword [ebp - 0x40], eax
mov eax, dword [0x4042f0]
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x1c], eax
movups xmm0, xmmword [0x4042b4]
mov ax, word [0x4042f4]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x3c]
movups xmmword [ebp - 0x58], xmm0
push eax
movq xmm0, qword [0x4042c4]
lea eax, [ebp - 0x68]
movq qword [ebp - 0x48], xmm0
movups xmm0, xmmword [str.C:WindowsSystem32driversetchosts]
push eax
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x4042e0]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
test eax, eax
je 0x40177d
push str.Error_moving_file
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
mov edx, 0x404470
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00402570
push 0x402790
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_____]
jmp 0x401790
mov edx, 0x40445c
jmp 0x401763
mov edx, 0x404480
jmp 0x401763
call main
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.pause
call esi
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402caf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret