Function at 0x401c60
Capabilities:
Acquire debug privileges
Check if file exists
Enumerate processes
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404b20
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0
push eax
xorps xmm0, xmm0
push 0x28
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401d03
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401cf7
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push 2
mov dword [ebp - 0x328], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x324], eax
cmp eax, 0xffffffff
je 0x40212e
push 0x228
lea eax, [ebp - 0x260]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x264], 0x22c
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401da4
nop word [eax + eax]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x401d6a
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x401d98
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401d60
jmp 0x401da4
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x328], eax
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x40212e
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.OpenProcess_failed:_0x
push 0x403760
push eax
push 0x401c40
call fcn.00403530
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea eax, [esi - 2]
jmp 0x402173
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x401e2b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401e8a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Dll_file_doesnt_exist:
call fcn.00403530
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x401e51
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004039e0
add esp, 4
mov ecx, eax
push 0x403760
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffc
jmp 0x402173
push 0xb8
lea eax, [ebp - 0x320]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 7
jbe 0x401ea8
mov edi, dword [edi]
sub esp, 0xc
lea ecx, [ebp - 0x320]
push edi
call fcn.004032f0
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x324], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x314], 6
je 0x401f77
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Opening_the_file_failed:
push 0x403760
push dword [ebp + eax - 0x314]
call fcn.00403530
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x310]
call fcn.00403260
test eax, eax
jne 0x401f4b
push eax
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x320]
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_]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x320]
mov esi, 0xfffffffb
call fcn.00402190
mov eax, esi
jmp 0x402173
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x320]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
adc ecx, dword [ebp - 0x24]
test ecx, ecx
jg 0x402010
jl 0x401fa0
cmp eax, 0x1000
jae 0x402010
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Filesize_invalid.
push 0x403760
call fcn.00403530
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x310]
call fcn.00403260
test eax, eax
jne 0x401fe4
push eax
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x320]
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_]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x320]
mov esi, 0xfffffffa
call fcn.00402190
mov eax, esi
jmp 0x402173
push eax
call fcn.00403ca5
add esp, 4
lea ecx, [ebp - 0x320]
mov edi, eax
push 0
push 0
push 0
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__::seekg_long_long___int64___int_]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
adc ecx, dword [ebp - 0x24]
push ecx
push edx
push edi
lea ecx, [ebp - 0x320]
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__::read_char___long_long___int64__]
lea ecx, [ebp - 0x310]
call fcn.00403260
test eax, eax
jne 0x40206f
push eax
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x320]
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 ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Mapping...
push 0x403760
call fcn.00403530
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
sub esp, 0x1c
mov edx, edi
mov ecx, esi
call fcn.00401050
add esp, 0x1c
push edi
test al, al
jne 0x4020f1
call fcn.00403c62
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Error_while_mapping.
push 0x403760
call fcn.00403530
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x320]
mov esi, 0xfffffff8
call fcn.00402190
mov eax, esi
jmp 0x402173
call fcn.00403c62
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, 0x4057bc
push 0x403760
call fcn.00403530
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x320]
xor esi, esi
call fcn.00402190
mov eax, esi
jmp 0x402173
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Process_not_found:
call fcn.00403530
cmp dword [esi + 0x14], 7
mov edx, esi
jbe 0x402148
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004039e0
add esp, 4
mov ecx, eax
push 0x403760
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
or eax, 0xffffffff
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.00403c54
mov esp, ebp
pop ebp
ret