Function at 0x4fa470
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Persist via lnk shortcut
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x56fc40
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bda40]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
xor edi, edi
xor ebp, ebp
call fcn.00410610
mov dword [esp + 0x68], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x48]
inc eax
cmp eax, 2
mov dword [esp + 0x48], eax
jg 0x4fa99a
lea eax, [esp + 0x34]
push eax
call fcn.004fa3e0
add esp, 4
mov ecx, dword [esp + 0x74]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 1
call fcn.00406900
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov byte [esp + 0x70], 2
call fcn.004068e0
lea eax, [esp + 0x48]
push eax
call fcn.00403700
add esp, 8
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 3
call fcn.00406a40
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x44]
call fcn.004068e0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
call fcn.00406980
mov ebx, dword [esp + 0x70]
cmp ebx, edi
je 0x4fa976
lea ecx, [esp + 0x20]
call fcn.004070f0
test al, al
jne 0x4fa976
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x18]
push ecx
push 0x57f754
push 1
push edi
push 0x57f864
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x4fa7d6
cmp dword [esp + 0x84], edi
je 0x4fa5e1
lea ecx, [esp + 0x38]
call fcn.00410610
push str.LNKEVN
lea edx, [esp + 0x3c]
push str.___s__
push edx
mov byte [esp + 0x74], 5
call fcn.004089d0
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x38]
add esi, 0x50
call fcn.004072e0
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push eax
push ecx
call edx
lea ecx, [esp + 0x38]
mov esi, eax
mov byte [esp + 0x68], 4
call fcn.004072c0
jmp 0x4fa5f0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x4fa7d6
push ebx
lea ecx, [esp + 0x20]
call fcn.00406900
mov bl, 6
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], bl
call fcn.00406b60
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.00406cd0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 7
call fcn.00406980
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], bl
call fcn.004072c0
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
lea ecx, [esp + 0x1c]
add esi, 0x24
call fcn.004072e0
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esi]
push edx
call eax
cmp eax, edi
jl 0x4fa7c8
mov esi, dword [esp + 0x78]
cmp esi, edi
je 0x4fa6da
lea ecx, [esp + 0x28]
call fcn.00410610
push 0x104
push 0x104
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 8
call fcn.004070d0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00407110
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
mov edx, dword [esp + 0x7c]
push edx
lea ecx, [esp + 0x2c]
add esi, 0x44
call fcn.004072e0
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
push eax
call ecx
cmp eax, edi
lea ecx, [esp + 0x28]
jge 0x4fa6d1
call fcn.004072c0
jmp 0x4fa7c8
mov byte [esp + 0x68], bl
call fcn.004072c0
cmp dword [esp + 0x84], edi
jne 0x4fa70b
mov ecx, dword [esp + 0x80]
cmp ecx, edi
je 0x4fa70b
cmp ecx, 0x5a1bbc
je 0x4fa70b
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
cmp eax, edi
jl 0x4fa7c8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x57f894
push eax
mov eax, dword [ecx]
call eax
cmp eax, edi
jl 0x4fa7c8
lea ecx, [esp + 0x54]
push 0x1c
push ecx
call fcn.004fac60
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 9
call fcn.00406980
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], bl
call fcn.004072c0
push 0x5a22b0
lea ecx, [esp + 0x18]
call fcn.00407000
cmp ebp, edi
je 0x4fa790
lea edx, [esp + 0x58]
push edx
call fcn.004fa3e0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0xa
call fcn.00406980
lea ecx, [esp + 0x58]
mov byte [esp + 0x68], bl
call fcn.004072c0
xor ebp, ebp
push str.tempurl.lnk
lea ecx, [esp + 0x18]
call fcn.00406a60
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x18]
add esi, 0x18
call fcn.004072e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esi]
push eax
push ecx
call edx
cmp eax, edi
jl 0x4fa7c8
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 4
call fcn.004072c0
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4fa7e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4fa7f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x84], edi
je 0x4fa8ad
lea ecx, [esp + 0x30]
call fcn.00410610
lea ecx, [esp + 0x4c]
call fcn.00410610
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0xc
call fcn.004072e0
lea ebx, [esp + 0x4c]
lea edi, [esp + 0x30]
mov esi, eax
call fcn.004faa90
lea ecx, [esp + 0x3c]
call fcn.00410610
push str.LNKEVN
lea eax, [esp + 0x40]
push str.___s__
push eax
mov byte [esp + 0x74], 0xd
call fcn.004089d0
lea ecx, [esp + 0x48]
push ecx
mov edx, edi
push edx
call fcn.00406fa0
add esp, 0x14
test al, al
jne 0x4fa889
mov eax, dword [esp + 0x70]
push eax
mov ecx, edi
push ecx
call fcn.0042beb0
add esp, 8
test al, al
jne 0x4fa889
mov ebp, 1
jmp 0x4fa88b
xor ebp, ebp
lea ecx, [esp + 0x3c]
call fcn.004072c0
lea ecx, [esp + 0x4c]
call fcn.004072c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 4
call fcn.004072c0
xor edi, edi
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call fcn.004068e0
call fcn.00421060
add esp, 4
test al, al
je 0x4fa939
cmp dword [esp + 0x84], edi
je 0x4fa8f4
cmp ebp, edi
jne 0x4fa929
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
call fcn.004072e0
mov esi, eax
call fcn.004fa9c0
add esp, 4
jmp 0x4fa8f8
cmp ebp, edi
jne 0x4fa929
push 1
lea ecx, [esp + 0x44]
call fcn.004072e0
push eax
lea ecx, [esp + 0x1c]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4fa921
lea ebp, [eax + 1]
mov dword [esp + 0x24], edi
jmp 0x4fa929
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x14]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [esp + 0x40]
call fcn.004072c0
lea ecx, [esp + 0x44]
call fcn.004072c0
lea ecx, [esp + 0x20]
call fcn.004072c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 0
call fcn.004072c0
cmp ebp, edi
jne 0x4fa4b0
cmp dword [esp + 0x24], edi
je 0x4fa4b0
jmp 0x4fa99a
lea ecx, [esp + 0x40]
call fcn.004072c0
lea ecx, [esp + 0x44]
call fcn.004072c0
lea ecx, [esp + 0x20]
call fcn.004072c0
lea ecx, [esp + 0x34]
call fcn.004072c0
lea ecx, [esp + 0x14]
call fcn.004072c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret