Function at 0x1001dcb0
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Get file size
Move file
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x100509eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6a8
mov eax, dword [0x100778dc]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov dword [esp + 0x6a8], eax
mov al, byte [esp + 0x6c0]
test al, al
push esi
mov esi, dword [esp + 0x6c0]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1001dd4f
push esi
call ebx
test eax, eax
push esi
je 0x1001dd37
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1001dd41
call edi
cmp eax, 3
jne 0x1001dd4f
xor eax, eax
mov ecx, dword [esp + 0x6b4]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6a8]
pop ebx
call fcn.1004189e
add esp, 0x6b4
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1001dd48
mov eax, 1
jmp 0x1001dd13
call edi
cmp eax, 2
je 0x1001dd11
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1001de36
push 0x104
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x1001dd11
cmp eax, 0x104
ja 0x1001dd11
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
je 0x1001de40
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.100264f0
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x6bc], 0
jne 0x1001ddd0
call edi
mov dword [esp + 0x6bc], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.10026790
jmp 0x1001dd11
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x354]
push str.DeleteDir__s
push eax
call esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x23c]
push str.command.com__c_rd__s
push edx
call esi
add esp, 0x18
push 0
push 0
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x35c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10026670
test al, al
lea ecx, [esp + 0xc]
mov dword [esp + 0x6bc], 0xffffffff
je 0x1001ddc6
call fcn.10026790
mov eax, 2
jmp 0x1001dd13
lea edx, [esp + 0x24]
push edx
push str.NUL_s_r_n
lea eax, [esp + 0x47c]
push 0x23a
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov edx, dword [0x10054adc]
mov ecx, dword [str._Rename__r_n]
add esp, 0x10
mov edi, eax
mov ax, word [0x10054ae0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov cl, byte [0x10054ae2]
push 0x104
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x14], edi
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], cl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [str.WinInit.ini]
push eax
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x1001dd11
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
lea eax, [edi + ebp + 0xa]
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x1001dfc7
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1001dfbc
lea ecx, [esp + 0x478]
push ecx
push ebx
mov byte [ebx + ebp], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1001dfb5
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1001df6e
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + ebp]
push 0x10054ad4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebp, eax
mov eax, ebp
jmp 0x1001df91
push 0xa
push eax
call fcn.10041f40
mov esi, eax
inc esi
mov ecx, ebx
sub ecx, esi
add ecx, ebp
push ecx
lea edx, [esi + edi]
push esi
push edx
call fcn.10040e60
add esp, 0x14
sub esi, ebx
mov eax, esi
mov ecx, edi
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x478]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
add ebp, eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
pop ebp
jmp 0x1001dd13