Function at 0x412d00
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Get common file path
Persist via lnk shortcut

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push 0x45fc10
push eax
mov dword fs:[0], esp
mov eax, dword [edx + 0x1bc]
sub esp, 0x778
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x41342e
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 0x1c8]
cmp eax, ebp
jne 0x412d5d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x174]
push ecx
push eax
call fcn.00405ca0
add esp, 8
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
mov dword [esp + 0x790], ebp
push eax
push 5
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebp
jne 0x412df7
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x412df7
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x794], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41342e
or ebx, 0xffffffff
lea edi, [esp + 0x70]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x70]
mov cl, byte [esp + ecx + 0x6f]
cmp cl, 0x5c
je 0x412e17
mov byte [eax], 0x5c
mov edi, str.Universal_
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x70]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x70]
push ecx
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x174]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [esp + 0x30]
mov byte [esp + 0x790], 1
cmp eax, ebp
jne 0x412e8d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call fcn.00405f70
add esp, 4
test eax, eax
jne 0x412fa6
lea ecx, [esp + 0x40]
push str.deskIco_
lea edx, [esp + 0x54]
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [esp + 0x54]
mov byte [esp + 0x790], 2
cmp eax, ebp
jne 0x412eca
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.IMAGEHLP.dll_MakeSureDirectoryPathExists]
mov edi, dword [esp + 0x798]
mov esi, 9
mov ecx, dword [esp + 0x54]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp ecx, ebp
jne 0x412eed
mov ecx, edx
mov eax, dword [edi + 0x1c8]
cmp eax, ebp
jne 0x412ef9
mov eax, edx
push ebp
lea edx, [esp + 0x178]
push ebp
push edx
push ecx
push eax
call fcn.00402f40
add esp, 0x14
cmp eax, 1
je 0x412f1e
cmp eax, 0xfffffff4
je 0x412f1e
mov eax, esi
dec esi
test eax, eax
jne 0x412edd
mov esi, dword [esp + 0x30]
cmp esi, ebp
jne 0x412f2c
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x174]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x64]
push edx
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, ebp
jne 0x412f52
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
push 1
lea ecx, [esp + 0x64]
sete bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
je 0x412f8f
mov edi, 0x478924
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x478924
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x794], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ebx, 0xffffffff
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x798]
cmp eax, ebp
jne 0x412fe9
cmp dword [esi + 0x1ac], ebp
jne 0x412fe9
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x794], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x794], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41342e
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x24]
push ecx
push 0x466e80
push 1
push ebp
push 0x466e70
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
je 0x413038
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x794], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x794], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41342e
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0x466e90
mov edx, dword [eax]
push eax
call dword [edx]
cmp eax, ebp
jge 0x413085
mov eax, dword [esp + 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x794], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x794], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41342e
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x274]
mov byte [esp + 0x790], 3
push ecx
call fcn.00405e90
mov eax, dword [esi + 0x1b8]
add esp, 4
cmp eax, ebp
jne 0x4130bf
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00459d70
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebp
jne 0x4130da
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x378]
push 0x104
push ecx
push ebx
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [esi + 0x1ac], ebp
jne 0x413113
mov ecx, 0x82
lea esi, [esp + 0x378]
lea edi, [esp + 0x580]
rep movsd dword es:[edi], dword [esi]
jmp 0x413286
lea edi, [esp + 0x274]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41315e
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x274]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov edi, 0x471144
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x413189
call ebx
test esi, esi
jbe 0x4131d0
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4131d0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x471144
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x798]
add edx, 0x1a4
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, 0x4714d4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x413216
call ebx
test esi, esi
jbe 0x41325d
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41325d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x4714d4
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41326a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x580]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebp, ebp
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x378]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x41333f
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x4132da
mov al, byte [ecx - 1]
test al, al
je 0x4132d0
cmp al, 0xff
je 0x4132d0
dec al
mov byte [ecx - 1], al
jmp 0x4132da
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x41330a
mov al, byte [ecx - 1]
test al, al
je 0x413300
cmp al, 0xff
je 0x413300
dec al
mov byte [ecx - 1], al
jmp 0x41330a
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
je 0x41342e
mov al, byte [ecx - 1]
test al, al
je 0x413424
cmp al, 0xff
je 0x413424
dec al
mov byte [ecx - 1], al
jmp 0x41342e
cmp dword [esp + 0x34], ebp
je 0x41335f
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
jne 0x413353
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, dword [esp + 0x24]
push ebp
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x580]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebp
jne 0x4133aa
mov eax, dword [esp + 0x798]
cmp dword [eax + 0x1ac], ebp
je 0x4133aa
lea ecx, [esp + 0x378]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x4133ce
mov al, byte [ecx - 1]
test al, al
je 0x4133c4
cmp al, 0xff
je 0x4133c4
dec al
mov byte [ecx - 1], al
jmp 0x4133ce
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x4133fe
mov al, byte [ecx - 1]
test al, al
je 0x4133f4
cmp al, 0xff
je 0x4133f4
dec al
mov byte [ecx - 1], al
jmp 0x4133fe
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
je 0x41342e
mov al, byte [ecx - 1]
test al, al
je 0x413424
cmp al, 0xff
je 0x413424
dec al
mov byte [ecx - 1], al
jmp 0x41342e
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x788]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x784
ret