Function at 0x40eba0
Capabilities:
Delete file
Enumerate files on windows
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2800
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004c05c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
xor eax, eax
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ec24
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.00403e30
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov eax, edx
sub eax, ecx
cmp eax, 0x19
jb 0x40ec8f
lea edi, [ecx + 0x19]
mov dword [ebp - 0x228], edi
lea esi, [ebp - 0x238]
cmp edx, 8
cmovae esi, dword [ebp - 0x238]
push 0x32
push str.MicrosoftWindowsThemes
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40ecb0
mov byte [ebp - 0x4e4], 0
push 0x19
push str.MicrosoftWindowsThemes
push dword [ebp - 0x4e4]
push 0x19
lea ecx, [ebp - 0x238]
call fcn.00404fc0
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x5010bc
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x290]
call fcn.004048c0
add esp, 4
push 0x5052c0
lea ecx, [ebp - 0x500]
call fcn.00402f10
push eax
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x278]
call fcn.00419580
add esp, 4
mov ecx, dword [ebp - 0x4ec]
cmp ecx, 8
jb 0x40ed3f
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x500]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ed35
add ecx, 0x23
mov dword [ebp - 0x23c], ecx
mov edx, dword [edx - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f008
push ecx
push edx
call fcn.004bdd39
add esp, 8
mov dword [ebp - 0x4f0], 0
mov dword [ebp - 0x4ec], 7
xor eax, eax
mov word [ebp - 0x500], ax
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x4e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ee84
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
lea eax, [ebp - 0x4e0]
push eax
push esi
call edi
test eax, eax
je 0x40ee7d
test byte [ebp - 0x4e0], 0x10
jne 0x40ed90
lea eax, [ebp - 0x4b4]
push eax
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x260]
call fcn.004048c0
add esp, 4
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov dword [ebp - 0x4e8], ebx
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x40ee5b
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x260]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ee51
add ecx, 0x23
mov dword [ebp - 0x240], ecx
mov edx, dword [edx - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f00d
push ecx
push edx
call fcn.004bdd39
add esp, 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
xor eax, eax
mov word [ebp - 0x260], ax
jmp 0x40ed90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x264]
cmp ecx, 8
jb 0x40eed0
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x278]
mov eax, edx
cmp ecx, 0x1000
jb 0x40eec6
add ecx, 0x23
mov dword [ebp - 0x244], ecx
mov edx, dword [edx - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f012
push ecx
push edx
call fcn.004bdd39
add esp, 8
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
xor eax, eax
mov word [ebp - 0x278], ax
mov ecx, dword [ebp - 0x27c]
cmp ecx, 8
jb 0x40ef39
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x290]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ef2f
add ecx, 0x23
mov dword [ebp - 0x248], ecx
mov edx, dword [edx - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f017
push ecx
push edx
call fcn.004bdd39
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
xor eax, eax
mov word [ebp - 0x290], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x40ef9d
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x238]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef93
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f01c
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov eax, ebx
jmp 0x40efec
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
call fcn.004c8da3
call fcn.004c8da3
call fcn.004c8da3
call fcn.004c8da3
call fcn.004c8da3
call fcn.004c8da3
int3