Function at 0x46b4c4
Capabilities:
Delete file
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
mov eax, 0x49a92a
call fcn.00496f64
sub esp, 0x658
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0xa
xor ebx, ebx
mov dword [ebp - 0x2c], edi
and dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x40]
push edi
mov dword [ebp - 0x1c], ebx
call fcn.00408aa7
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x40]
call fcn.00408b65
mov edx, 0x4a820c
mov ecx, eax
call fcn.00406c7d
mov esi, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00408b65
mov edx, str.cache
mov ecx, eax
call fcn.00406c7d
mov edx, str..files
mov dword [ebp - 0x4c], eax
mov ecx, esi
call fcn.00406c7d
mov edx, str..packages
mov dword [ebp - 0x50], eax
mov ecx, esi
call fcn.00406c7d
mov edx, str.filedb
mov dword [ebp - 0x80], eax
mov ecx, esi
call fcn.00406c7d
push 0x103
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x55b]
push ebx
push eax
mov byte [ebp - 0x55c], bl
call fcn.0042a910
add esp, 0xc
lea eax, [edi + 0x30c]
lea esi, [edi + 0x208]
push eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x55c]
push str._Smupdb_s__S
push eax
call edi
and dword [ebp - 0x34c], ebx
lea eax, [ebp - 0x348]
add esp, 0x14
push 0x13c
push ebx
push eax
call fcn.0042a910
add esp, 0xc
mov byte [ebp - 0x454], bl
lea eax, [ebp - 0x453]
push 0x103
push ebx
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x454]
push esi
mov esi, dword [ebp - 0x44]
push 0x4a5edc
push esi
push str._s_s_s_
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x46b6fb
lea edx, [ebp - 0x320]
mov ecx, esi
call fcn.00406c7d
xor ecx, ecx
mov dword [ebp - 0x20], eax
push ecx
push ecx
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x46b6cf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x46b6cf
lea esi, [eax + 1]
push esi
call fcn.0040627a
pop ecx
push esi
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.0042a910
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x24], ebx
push ebx
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0xc
lea ecx, [ebp - 0x7c]
push esi
push edi
call fcn.004641dd
push ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
push ebx
push 1
call dword [eax + 0x18]
test eax, eax
je 0x46b6bd
mov edi, dword [ebp - 0x14]
inc ebx
lea ecx, [ebp - 0x7c]
push 0
push 0
inc edi
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x7c]
call dword [eax + 0x18]
test eax, eax
jne 0x46b6a3
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.0046415e
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call fcn.0042490f
pop ecx
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [ebp - 0x44]
test eax, eax
jne 0x46b608
mov dword [ebp - 0x1c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x46b7cb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x46b7c1
lea esi, [eax + 1]
push esi
call fcn.0040627a
pop ecx
push esi
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.0042a910
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x20], ebx
push ebx
mov ebx, dword [ebp - 0x34]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0xc
lea ecx, [ebp - 0x7c]
push ebx
push edi
call fcn.004641dd
xor ebx, ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
push ebx
push ebx
push 1
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x18]
test eax, eax
je 0x46b7b3
mov esi, dword [ebp - 0x14]
inc ebx
lea ecx, [ebp - 0x7c]
push 0
push 0
inc esi
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x7c]
call dword [eax + 0x18]
test eax, eax
jne 0x46b793
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.0046415e
jmp 0x46b7c4
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x46b9b4
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x320]
call fcn.00406c7d
xor ecx, ecx
mov dword [ebp - 0x38], eax
push ecx
push ecx
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x46b97b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x46b97b
lea esi, [eax + 1]
push esi
call fcn.0040627a
pop ecx
push esi
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.0042a910
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x20], ebx
push ebx
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0xc
lea ecx, [ebp - 0x7c]
push esi
push edi
call fcn.004641dd
push ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
push ebx
push 1
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x46b963
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
push 1
push str.shared
push esi
call dword [eax + 0x14]
test eax, eax
jne 0x46b947
push 0x103
push eax
mov byte [ebp - 0x18c], al
lea eax, [ebp - 0x18b]
push eax
call fcn.0042a910
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
add esp, 0xc
push 0
push str.location
push esi
call dword [eax + 0x18]
mov esi, eax
push str.systemcomponents
push esi
call fcn.00424ef0
pop ecx
pop ecx
test eax, eax
je 0x46b8f8
push 0x5c
push esi
call fcn.004252e0
pop ecx
pop ecx
lea esi, [eax + 1]
push esi
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x18c]
push 0x4a5edc
push esi
push str._S_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18c]
call fcn.0045b5d6
push dword [ebp - 0x14]
lea eax, [edi + ebx]
push eax
push 0x404
push dword [esi + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
lea ecx, [ebp - 0x7c]
push 0
push 0
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x7c]
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x46b893
add dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.0046415e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
push esi
call edi
mov ecx, esi
call fcn.0045b5d6
push esi
call fcn.0042490f
pop ecx
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46b7f1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x46bcb3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x46bcaa
lea esi, [eax + 1]
push esi
call fcn.0040627a
pop ecx
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x48], ebx
call fcn.0042a910
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x38]
and dword [ebp - 0x38], 0
add esp, 0xc
push 0
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0xc
lea ecx, [ebp - 0x7c]
push esi
push ebx
call fcn.004641dd
xor ebx, ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
push ebx
push ebx
push 1
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x46bc95
xor eax, eax
inc eax
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
push 0x4a513e
push str.hash
push esi
call dword [eax + 0x18]
push 0x103
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18b]
push 0
push eax
mov byte [ebp - 0x18c], 0
call fcn.0042a910
add esp, 0xc
lea ecx, [ebp - 0x40]
push esi
call fcn.00408b65
push eax
lea eax, [ebp - 0x18c]
push 0x4a563c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call edi
lea ecx, [ebp - 0x18c]
call fcn.0045b5d6
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0x404
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x103
lea eax, [ebp - 0x663]
mov byte [ebp - 0x664], 0
push 0
push eax
call fcn.0042a910
add esp, 0xc
push 0x5c
push esi
call fcn.004252e0
push 0x2e
push esi
mov dword [ebp - 0x30], eax
call fcn.004252e0
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x46bbf4
cmp dword [ebp - 0x30], 0
je 0x46bbf4
push 0x3f
lea eax, [ebp - 0x1cb]
mov byte [ebp - 0x1cc], 0
push 0
push eax
call fcn.0042a910
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x20], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x46bb49
sub edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1cc]
push 0x40
push eax
call fcn.0045a418
lea ecx, [ebp - 0x20c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.0045b278
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
inc ecx
mov byte [eax], 0
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
lea eax, [ebp - 0x664]
push str._s._s._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x24]
add esp, 0x14
mov byte [eax], 0x2e
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x18c]
push 0x4a563c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call edi
lea ecx, [ebp - 0x18c]
call fcn.0045b5d6
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0x404
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x10
push esi
push str.systemcomponents
call fcn.004279bb
add esp, 0xc
test eax, eax
jne 0x46bc55
lea eax, [esi + 0x11]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x18c]
push str._S_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call edi
lea ecx, [ebp - 0x18c]
call fcn.0045b5d6
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push esi
push 0x404
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x46bc58
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push esi
push 0x404
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x7c]
push 0
inc ebx
inc esi
add eax, esi
mov dword [ebp - 0x28], esi
push 0
push eax
mov eax, dword [ebp - 0x7c]
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x46ba5b
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x48]
call fcn.0042490f
pop ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.0046415e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x50]
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x46be77
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x46be68
lea esi, [edi + 1]
push esi
call fcn.0040627a
pop ecx
push esi
push 0
push eax
mov dword [ebp - 0x30], eax
call fcn.0042a910
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
and dword [ebp - 0x48], 0
add esp, 0xc
push 0
push eax
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
push ecx
push edi
push esi
lea ecx, [ebp - 0x7c]
call fcn.00463c54
mov dword [ebp - 0x7c], 0x4a604c
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00463686
mov ecx, eax
test ecx, ecx
je 0x46bd66
mov ebx, dword [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46bd46
sub ecx, edx
je 0x46bd60
lea ecx, [ebp - 0x7c]
inc ebx
call fcn.0046364f
mov ecx, eax
test ecx, ecx
jne 0x46bd43
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
call fcn.00463686
mov esi, eax
test esi, esi
je 0x46be50
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46bd83
sub ecx, edx
je 0x46be50
push 0x103
mov byte [ebp - 0x18c], al
lea eax, [ebp - 0x18b]
push 0
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x18c]
push esi
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x4a563c
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18c]
call fcn.0045b5d6
push 0x10
push esi
push str.systemcomponents
call fcn.004279bb
add esp, 0xc
test eax, eax
jne 0x46be25
lea eax, [esi + 0x10]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x18c]
push dword [ebp - 0x40]
push 0x4a563c
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18c]
call fcn.0045b5d6
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
inc ebx
push ebx
push 0x404
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x7c]
call fcn.0046364f
mov esi, eax
test esi, esi
jne 0x46bd7e
push dword [ebp - 0x30]
call fcn.0042490f
pop ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.00463b51
mov esi, dword [ebp - 0x50]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x55c]
push eax
call edi
push esi
call edi
push dword [ebp - 0x80]
call edi
mov esi, dword [ebp - 0x44]
xor dl, dl
mov ecx, esi
call fcn.0045b475
mov ecx, dword [ebp - 0x4c]
xor dl, dl
call fcn.0045b475
push dword [ebp - 0x80]
call fcn.0042490f
pop ecx
push dword [ebp - 0x50]
call fcn.0042490f
pop ecx
push esi
call fcn.0042490f
pop ecx
push dword [ebp - 0x4c]
call fcn.0042490f
pop ecx
call fcn.0046c705
mov esi, eax
test esi, esi
je 0x46bede
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46bed0
sub ecx, edx
je 0x46bede
push esi
call edi
push esi
call fcn.00406283
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00408b65
mov edx, str.systemcomponents
mov ecx, eax
call fcn.00406c7d
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00408b7f
mov dl, 1
mov ecx, edi
mov esi, eax
call fcn.0045b475
mov dl, 1
mov ecx, esi
call fcn.0045b475
push esi
call fcn.00406283
pop ecx
push edi
call fcn.0042490f
mov eax, dword [ebp - 0x2c]
pop ecx
push dword [ebp - 0x14]
push ebx
push 0x405
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x40]
call fcn.00408b09
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret