Function at 0x404e70
Capabilities:
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1294
call fcn.004189d0
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edx, edx
push 0x206
mov dword [ebp - 0x1290], eax
push edx
lea eax, [ebp - 0x826]
push eax
mov dword [ebp - 0x1288], esi
mov dword [ebp - 0x128c], ebx
mov dword [ebp - 0x1294], ecx
mov word [ebp - 0x828], dx
call fcn.00413700
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x828]
push str._sSMRTEATIME
push ecx
call edi
lea edx, [ebp - 0x828]
add esp, 0xc
push edx
call fcn.0040f941
add esp, 4
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1026]
push ecx
mov word [ebp - 0x1028], ax
call fcn.00413700
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00413700
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00413700
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push str._s.
push eax
mov dword [ebp - 0x1280], 0
call edi
add esp, 0xc
lea ecx, [ebp - 0x1278]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1284], eax
cmp eax, 0xffffffff
je 0x405233
jmp 0x404f9c
mov esi, dword [ebp - 0x1288]
mov ebx, dword [ebp - 0x128c]
lea eax, [ebp - 0x124c]
push eax
push esi
lea ecx, [ebp - 0x418]
push 0x41c7ec
push ecx
call edi
lea edx, [ebp - 0x124c]
push edx
push ebx
lea eax, [ebp - 0x210]
push 0x41c7ec
push eax
call edi
add esp, 0x20
mov ecx, 0x41c7e0
lea eax, [ebp - 0x124c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404ffc
test dx, dx
je 0x404ff8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404ffc
add eax, 4
add ecx, 4
test dx, dx
jne 0x404fd6
xor esi, esi
jmp 0x405001
sbb esi, esi
sbb esi, 0xffffffff
xor ebx, ebx
cmp esi, ebx
je 0x40520f
mov ecx, 0x41c7e4
lea eax, [ebp - 0x124c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40503c
cmp dx, bx
je 0x405038
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40503c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405016
xor eax, eax
jmp 0x405041
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405257
test byte [ebp - 0x1278], 0x10
jne 0x405257
lea ecx, [ebp - 0x124c]
push str.PolicyContainer.opt
push ecx
mov dword [ebp - 0x127c], ebx
call fcn.0040f6de
add esp, 8
test eax, eax
jne 0x40507e
mov dword [ebp - 0x127c], 1
lea edx, [ebp - 0x124c]
push str.RemoteService.opt
push edx
call fcn.0040f6de
add esp, 8
test eax, eax
jne 0x4050a0
mov dword [ebp - 0x127c], 1
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x127c]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
lea ecx, [ebp - 0x210]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x127c], 1
jne 0x4050fb
cmp esi, 0x50
je 0x405209
test edi, edi
jne 0x405209
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61e]
push eax
inc ebx
mov word [ebp - 0x620], dx
call fcn.00413700
add esp, 0xc
xor eax, eax
jmp 0x405130
movzx ecx, word [ebp + eax - 0x210]
mov word [ebp + eax - 0x620], cx
add eax, 2
test cx, cx
jne 0x405130
lea eax, [ebp - 0x620]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405151
push esi
sub eax, edx
push ebx
sar eax, 1
lea edx, [ebp - 0x124c]
mov ecx, 0x5f
push edx
mov word [ebp + eax*2 - 0x622], cx
lea eax, [ebp - 0x1028]
push 0x41d7e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1028]
add esp, 0x14
push ecx
call fcn.00402950
add esp, 4
lea edi, [ebp - 0x124c]
call fcn.00404cb0
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0041017d
add esp, 8
cmp ebx, 0x1e
je 0x4051d0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4050b2
mov eax, dword [ebp - 0x1280]
inc eax
push eax
push esi
push 0x1e
lea ecx, [ebp - 0x124c]
push ecx
lea edx, [ebp - 0x1028]
push 0x41d830
push edx
mov dword [ebp - 0x1280], eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1028]
push eax
call fcn.00402950
add esp, 0x1c
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x1284]
lea edx, [ebp - 0x1278]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x404f90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1280]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
cmp esi, ebx
je 0x40520f
mov ecx, 0x41c7e4
lea eax, [ebp - 0x124c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40528c
cmp dx, bx
je 0x405288
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40528c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405266
xor eax, eax
jmp 0x405291
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40520f
push 0x80
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1294]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x1290]
push eax
push ecx
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00404e70
add esp, 0x18
jmp 0x40520f