Function at 0x404da7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Move file
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c4
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x35f]
push ebx
push eax
mov byte [ebp - 0x360], bl
call fcn.0040a870
push esi
lea eax, [ebp - 0x56f]
push ebx
push eax
mov byte [ebp - 0x570], bl
call fcn.0040a870
push esi
lea eax, [ebp - 0x467]
push ebx
push eax
mov byte [ebp - 0x468], bl
call fcn.0040a870
push esi
lea eax, [ebp - 0x77f]
push ebx
push eax
mov byte [ebp - 0x780], bl
call fcn.0040a870
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
add esp, 0x30
lea eax, [ebp - 0x360]
push eax
push ebx
push ebx
push 0x21
push ebx
call esi
test eax, eax
jge 0x404e34
lea eax, [ebp - 0x360]
push eax
push 1
push ebx
push 0x21
push ebx
call esi
lea eax, [ebp - 0x570]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jge 0x404e55
lea eax, [ebp - 0x570]
push eax
push 1
push ebx
push 0x1a
push ebx
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x360]
push eax
push str._s
mov edi, 0x104
lea eax, [ebp - 0x468]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x405048
push str.FreeWorkz
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea ecx, [ebp - 0x22c]
sub eax, ecx
setns byte [ebp - 1]
test byte [ebp - 0x258], 0x10
je 0x404fcd
push 0x412218
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404fcd
push 0x41221c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404fcd
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x360]
push eax
push str._s_s
lea eax, [ebp - 0x780]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x8c0]
push eax
lea eax, [ebp - 0x780]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x404fcd
push str.FreeWorkz
lea eax, [ebp - 0x894]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea ecx, [ebp - 0x894]
sub eax, ecx
js 0x404fac
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.0040a870
lea eax, [ebp - 0x894]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x360]
push eax
push str._s_s_s
lea eax, [ebp - 0x118]
push edi
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x8c0]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404f34
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 1], bl
je 0x405027
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.0040a870
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x360]
push eax
push 0x4112c0
lea eax, [ebp - 0x118]
push edi
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404e99
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.content.freeworkzgames.com
lea eax, [ebp - 0x570]
push eax
push 0x412238
lea eax, [ebp - 0x468]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40511d
push 0x412218
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4050fc
push 0x41221c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4050fc
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.0040a870
lea eax, [ebp - 0x22c]
push eax
push str.content.freeworkzgames.com
lea eax, [ebp - 0x570]
push eax
push str._sMacromediaFlash_Playermacromedia.com_support_flashplayer_sys_s_s
lea eax, [ebp - 0x118]
push edi
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405086
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.content.freeworkzgames.com
lea eax, [ebp - 0x570]
push eax
push str._sMacromediaFlash_Playermacromedia.com_support_flashplayer_sys_s
lea eax, [ebp - 0x468]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.00401294
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x40516d
lea ecx, [ebp - 0x10]
push ecx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
je 0x4051b1
lea eax, [ebp - 0x10]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4051b1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x4051a0
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], ebx
je 0x4051aa
push dword [ebp - 0xc]
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push 0x103
lea eax, [ebp - 0x677]
push ebx
push eax
mov byte [ebp - 0x678], bl
call fcn.0040a870
push str.freeworkz
lea eax, [ebp - 0x360]
push eax
push str.cmd.exe__c_del___s_s___F__Q__S
lea eax, [ebp - 0x678]
push edi
push eax
call esi
add esp, 0x20
lea ecx, [ebp - 0x678]
call fcn.004057cb
push eax
mov eax, ecx
push eax
push 1
push ebx
push str.freeworkz_cookies_remove
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405218
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x4051ac
mov bl, 1
jmp 0x40520b