Function at 0x401220
Capabilities:
Execute command
Get file attributes
Set console window title
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403dc9
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x404294
mov dword [ebp - 0x1c0], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xb0
lea eax, [ebp - 0x1b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1b8], 0x4044bc
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x1b4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1c0], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1b8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1bc], eax
lea eax, [ebp - 0x1b4]
mov ecx, eax
mov dword [ebp - 0x1c4], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b4]
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 - 0x16c], 0
mov byte [ebp - 0x177], 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 - 0x168], 0
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x17c], 0
push 0xb8
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x108], 0x4044c4
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x1c0], 3
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x108], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x10c], eax
lea eax, [ebp - 0xf8]
mov ecx, eax
mov dword [ebp - 0x1c4], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xf8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xb0], 0
mov byte [ebp - 0xbb], 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 - 0xac], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xc0], 0
mov byte [ebp - 4], 7
mov edx, 0x4042c4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004027f0
movups xmm0, xmmword [str.C:WindowsSystem32driversetchosts]
mov eax, dword [0x404324]
mov dword [ebp - 0x18], eax
mov ax, word [0x404328]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x38]
movups xmm0, xmmword [0x404314]
push eax
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c0], eax
test al, 1
je 0x401498
mov ecx, eax
lea eax, [ebp - 0x38]
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ecx
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xf8]
call fcn.004026b0
test eax, eax
lea ecx, [ebp - 0x108]
mov eax, dword [ebp - 0x108]
push 0
mov eax, dword [eax + 4]
je 0x4014cb
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x4014d5
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
push str.color_0A
mov byte [ebp - 4], 8
mov byte [ebp - 0x1b9], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
add esp, 4
mov eax, dword [eax + 4]
add ecx, eax
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.00402d30
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x4015bf
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov edi, dword [ebp - 0x50]
cmovae eax, edi
cmp dword [ebp - 0x40], 0x17
jne 0x401585
mov edx, str.127.0.0.1_dldir1.qq.com
mov esi, 0x13
nop
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x401585
add eax, 4
add edx, 4
sub esi, 4
jae 0x401560
mov cx, word [eax]
cmp cx, word [edx]
jne 0x401585
mov al, byte [eax + 2]
cmp al, byte [edx + 2]
je 0x401642
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.00402d30
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x401541
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 0xac], 0
lea ecx, [ebp - 0xf8]
je 0x40165e
mov esi, ecx
call fcn.004025e0
push dword [ebp - 0xac]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0xb0], cl
mov byte [ebp - 0xbb], cl
cmovne esi, ecx
lea ecx, [ebp - 0xf8]
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 - 0xac], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xc0], 0
test esi, esi
jne 0x4016b8
jmp 0x40169d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x404350
mov byte [ebp - 0x1b9], 1
call fcn.004027f0
jmp 0x4015c2
mov byte [ebp - 0xb0], 0
mov byte [ebp - 0xbb], 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 - 0xac], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp byte [ebp - 0x1b9], 0
jne 0x401809
push ecx
push 0xa
push str.C:WindowsSystem32driversetchosts
lea ecx, [ebp - 0x1b4]
call fcn.004026b0
test eax, eax
lea ecx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x1b8]
push 0
mov eax, dword [eax + 4]
je 0x4016f9
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x401703
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, str._n127.0.0.1_dldir1.qq.com
lea ecx, [ebp - 0x1b8]
call fcn.004027f0
mov edx, 0x4043b0
lea ecx, [ebp - 0x1b8]
call fcn.004027f0
cmp dword [ebp - 0x168], 0
lea ecx, [ebp - 0x1b4]
je 0x40179f
mov esi, ecx
call fcn.004025e0
push dword [ebp - 0x168]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x16c], cl
mov byte [ebp - 0x177], cl
cmovne esi, ecx
lea ecx, [ebp - 0x1b4]
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 - 0x168], 0
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x17c], 0
test esi, esi
jne 0x4017f9
jmp 0x4017de
mov byte [ebp - 0x16c], 0
mov byte [ebp - 0x177], 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 - 0x168], 0
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1b8]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4043b4
call fcn.004027f0
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4043f0
call fcn.004027f0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40442c
call fcn.004027f0
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [ebp - 0x3c]
add esp, 4
cmp eax, 0x10
jb 0x40187c
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x401872
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401872
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00403009
add esp, 8
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x108], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x10c], eax
lea ecx, [ebp - 0xf8]
call fcn.004023e0
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x1b8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1bc], eax
lea ecx, [ebp - 0x1b4]
call fcn.004023e0
lea ecx, [ebp - 0x1b0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402fcb
mov esp, ebp
pop ebp
ret