Function at 0x4c18a0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc2e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x604
push ebx
push esi
push edi
lea eax, [ebp - 0x610]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x80
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x590]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x4c1b5b
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x510]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x110]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [edx + 1]
and ecx, 3
cmp al, 0x3a
rep movsb byte es:[edi], byte [esi]
je 0x4c1b12
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
mov byte [ebp - 4], 1
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x4c19be
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x110]
cmp dl, 0x5c
mov byte [ebp + eax - 0x310], dl
jne 0x4c19bb
cmp eax, 2
jge 0x4c19be
inc eax
jmp 0x4c199b
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x4c19d9
mov cl, byte [ebp + edx - 0x110]
mov byte [ebp + edx - 0x210], cl
inc edx
jmp 0x4c19c4
mov byte [ebp + edi - 0x210], bl
xor esi, esi
cmp esi, eax
jge 0x4c1a08
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x10f]
cmp dl, 0x5c
je 0x4c19fe
mov byte [ebp + esi - 0x310], dl
jne 0x4c1a05
mov byte [ebp + esi - 0x310], bl
inc esi
jmp 0x4c19e2
mov byte [ebp + eax - 0x310], bl
lea edi, [ebp - 0x310]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x311]
mov cl, byte [ebp + ecx - 0x311]
cmp cl, 0x22
jne 0x4c1a34
mov byte [eax], bl
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp eax, esi
jge 0x4c1a57
cmp byte [ebp + eax - 0x210], 0x3a
je 0x4c1a57
inc eax
jmp 0x4c1a46
xor edx, edx
mov ecx, esi
sub ecx, eax
inc ecx
cmp edx, ecx
jge 0x4c1a76
lea ecx, [edx + eax]
inc edx
mov cl, byte [ebp + ecx - 0x211]
mov byte [ebp + edx - 0x411], cl
jmp 0x4c1a59
mov edx, esi
sub edx, eax
cmp eax, esi
mov byte [ebp + edx - 0x40f], bl
jne 0x4c1ab2
lea eax, [ebp - 0x190]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x190]
lea edx, [ebp - 0x410]
push ecx
push str._s_system32drivers
push edx
call fcn.004f175f
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x410]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x510]
push eax
push str._s_s
push edx
call fcn.004f175f
lea edi, [ebp - 0x510]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 4], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x110]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x110]
push eax
call fcn.004abbf0
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or ax, 0xffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret