Function at 0x401a90
Capabilities:
Check if file exists
Execute command
Get file attributes
Hide graphical window
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404fe2
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x401ad6
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x294]
call fcn.00401250
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 0
call fcn.00401590
test al, al
jne 0x401b2c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.__FAILED___Invalid_HWID.
call fcn.004033a0
push 0x4038b0
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
mov esi, 1
jmp 0x4022aa
lea ecx, [ebp - 0x27c]
call fcn.004016c0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov byte [ebp - 4], 1
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403100
push dword [ebp - 0x29c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
mov edi, dword [ebp - 0x21c]
cmp edi, 8
mov esi, dword [ebp - 0x230]
mov edx, dword [ebp - 0x220]
setae byte [ebp - 0x295]
cmovae ecx, esi
push 2
sub esp, 8
call fcn.00403ad0
add esp, 0x10
cmp eax, 0xffffffff
je 0x401d9e
mov dword [ebp - 0x2b4], 0
xor ecx, ecx
mov byte [ebp - 4], 3
mov word [ebp - 0x2b4], cx
lea ecx, [eax + 1]
cmp dword [ebp - 0x220], ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x2a4], 0
cmovb ecx, dword [ebp - 0x220]
cmp byte [ebp - 0x295], 0
push ecx
cmovne eax, esi
mov dword [ebp - 0x2a0], 7
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403100
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x2b4]
lea ecx, [ebp - 0x248]
call fcn.004038e0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x401cf3
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x401cae
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ca4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d82
push edx
push ecx
call fcn.0040410d
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x401d2f
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d82
push edx
push ecx
call fcn.0040410d
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x401d92
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d88
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040410d
add esp, 8
mov esi, dword [ebp - 0x230]
mov edi, dword [ebp - 0x21c]
cmp edi, 8
lea eax, [ebp - 0x230]
cmovae eax, esi
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x401df1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.__FAILED___Failed_to_rename_executable.
call fcn.004033a0
push 0x4038b0
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
mov esi, 1
jmp 0x4021f4
mov dword [ebp - 0x248], 0
push 8
xor eax, eax
mov dword [ebp - 0x238], 0
push str.team.dll
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 3
call fcn.00403100
push dword [ebp - 0x29c]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x220]
mov edx, esi
cmovae ecx, dword [ebp - 0x230]
setae byte [ebp - 0x295]
push 2
sub esp, 8
call fcn.00403ad0
add esp, 0x10
mov dword [ebp - 0x2b4], 0
xor ecx, ecx
mov byte [ebp - 4], 9
mov word [ebp - 0x2b4], cx
lea ecx, [eax + 1]
cmp esi, ecx
mov dword [ebp - 0x2a4], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x2a0], 7
cmovb ecx, esi
cmp byte [ebp - 0x295], 0
push ecx
cmovne eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x2b4]
push eax
call fcn.00403100
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x2b4]
lea ecx, [ebp - 0x264]
call fcn.004038e0
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x2a0]
cmp edx, 8
jb 0x401f1d
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401f13
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040410d
add esp, 8
xor eax, eax
mov dword [ebp - 0x2a4], 0
cmp dword [ebp - 0x250], 8
mov word [ebp - 0x2b4], ax
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push eax
mov dword [ebp - 0x2a0], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401f8f
mov edx, str.__FAILED___DLL_file_team.dll_does_not_exist_in_the_current_directory.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.004033a0
push 0x4038b0
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
mov esi, 1
jmp 0x402157
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.Point_Blank
call esi
test eax, eax
jne 0x401fb5
push str.Point_Blank
push eax
call esi
test eax, eax
jne 0x401fb5
mov edx, str.__FAILED___Could_not_find_the_target_window.
jmp 0x401f5f
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
jne 0x401fda
mov edx, str.__FAILED___Could_not_get_the_thread_ID_of_the_target_window.
jmp 0x401f5f
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
push 1
cmovae eax, dword [ebp - 0x264]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x402009
mov edx, str.__FAILED___The_DLL_team.dll_could_not_be_loaded.
jmp 0x401f5f
push str.NextHook
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x402020
mov edx, str.__FAILED___The_function_NextHook_was_not_found_in_the_DLL.
jmp 0x40203a
push esi
push edi
push eax
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [ebp - 0x29c], eax
test eax, eax
jne 0x402071
mov edx, str.__FAILED___Couldnt_set_the_hook_with_SetWindowsHookEx.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.004033a0
push 0x4038b0
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
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 1
jmp 0x402157
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.__OK___Hook_set_and_triggered.
call fcn.004033a0
push 0x4038b0
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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str._______Press_any_key_to_unhook__This_will_unload_the_DLL_.
call fcn.004033a0
push 0x4038b0
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___nul
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
push dword [ebp - 0x29c]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test esi, esi
jne 0x402112
mov edx, str.__FAILED___Could_not_remove_the_hook.
call fcn.004033a0
push 0x4038b0
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_____]
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.pause
call eax
add esp, 4
mov esi, 1
jmp 0x402157
mov edx, str.__OK___Hook_removed_successfully.
call fcn.004033a0
push 0x4038b0
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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.__OK___Press_any_key_to_exit.
call fcn.004033a0
push 0x4038b0
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_____]
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.pause___nul
call eax
add esp, 4
xor esi, esi
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x402197
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40218d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d6
push edx
push ecx
call fcn.0040410d
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
cmp edx, 8
jb 0x4021f4
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d6
push edx
push ecx
call fcn.0040410d
add esp, 8
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x402234
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40222a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d6
push edx
push ecx
call fcn.0040410d
add esp, 8
mov edx, dword [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x40228d
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402283
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d6
push edx
push ecx
call fcn.0040410d
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov edx, dword [ebp - 0x280]
cmp edx, 0x10
jb 0x4022e6
mov ecx, dword [ebp - 0x294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4022dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040410d
add esp, 8
mov eax, esi
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.004040ca
mov esp, ebp
pop ebp
ret