Function at 0x408aa2
Capabilities:
Copy file
Create directory
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call fcn.004c8af7
pop ecx
push eax
call fcn.004cb22c
mov dword [esp], 0x20000
call fcn.004c8d06
mov dword [esp + 0x14], eax
pop ecx
test eax, eax
je 0x408daa
lea edi, [eax + 0x80]
mov ecx, 0x104
sub eax, 0xffffff00
mov esi, eax
add eax, ecx
mov ebx, eax
mov dword [esp + 0x14], esi
add eax, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
add eax, 0x400
push ecx
mov dword [esp + 0x20], eax
add eax, 0x400
push esi
push str._SystemDrive_
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, esi
call fcn.00408249
mov edx, ebx
mov ecx, esi
call fcn.00408303
mov ecx, dword [esp + 0x10]
call fcn.004083b9
push eax
movsx eax, byte [ebx]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
dec eax
push eax
push esi
mov esi, dword [esp + 0x2c]
push str._s_c__K7DCPTFILEPTRN____s
push esi
call ebx
add esp, 0x14
inc esi
mov ecx, edi
add esi, eax
call fcn.004083b9
mov ecx, dword [esp + 0x10]
push eax
call fcn.004083b9
push eax
call fcn.004cb20b
push 5
pop ecx
xor edx, edx
div ecx
movsx eax, byte [edx + 0x4ffcfc]
push eax
push dword [esp + 0x20]
push str._s_c_s___K7DCPTFILEPTRN____s
push esi
call ebx
add esp, 0x18
inc eax
mov ecx, edi
add esi, eax
call fcn.004083b9
mov ecx, dword [esp + 0x10]
push eax
call fcn.004083b9
push eax
call fcn.004cb20b
mov edi, dword [esp + 0x1c]
and eax, 3
movsx eax, byte [eax + str.xyz]
push eax
push edi
push str._s_c_s___K7DCPTFILEPTRN____s
push esi
call ebx
add esp, 0x18
inc eax
add esi, eax
push 0x104
push edi
push str._SystemDrive_Users
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, edi
call fcn.00408249
mov edi, dword [esp + 0x28]
mov edx, edi
mov ecx, dword [esp + 0x14]
call fcn.00408303
mov ecx, dword [esp + 0x10]
call fcn.004083b9
push eax
movsx eax, byte [edi]
mov edi, dword [esp + 0x18]
dec eax
push eax
push edi
push str._s_c__K7DCPTFILEPTRN___s
push esi
call ebx
mov ecx, dword [esp + 0x24]
add esp, 0x14
inc eax
add esi, eax
call fcn.004083b9
push eax
call fcn.004cb20b
and eax, 3
movsx eax, byte [eax + str.xyz]
push eax
push edi
push str._s_c_s__K7DCPTFILEPTRN__
push esi
call ebx
add esp, 0x14
lea edx, [esp + 0x24]
xor ebx, ebx
lea ecx, [eax + 1]
add ecx, esi
mov esi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x14], ecx
sub eax, ecx
add eax, 0x20000
mov byte [ecx], bl
mov dword [esp + 0x24], eax
lea edi, [eax + 1]
call fcn.00406eea
test eax, eax
je 0x408c5f
add edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp byte [eax], bl
je 0x408d9e
push edi
call fcn.004c8d06
mov dword [0x52a8e4], eax
pop ecx
test eax, eax
je 0x408d9e
push edi
push dword [esp + 0x24]
push eax
call fcn.0049f810
mov edi, dword [0x52a8e4]
add esp, 0xc
jmp 0x408d93
push 0x104
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x14]
call fcn.0040847a
mov ecx, esi
call fcn.004083b9
push str.CaptionIcon32x32.ico
push 0x51e708
push 0x50774c
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_wsprintfW]
push str..ico
push esi
push dword [esp + 0x2c]
push str._S_S_s
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x3c
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0x34
mov dword [esp + 0x44], str.This_directory_contains_bait_decoy_files_that_assists_in_early_ransomware_detection
push str..ico
push esi
push str._S_s
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x28]
push 0x104
push dword [esp + 0x28]
mov dword [esp + 0x6c], eax
push dword [esp + 0x34]
mov dword [esp + 0x7c], eax
call fcn.004c9d56
add esp, 0x1c
lea eax, [esp + 0x2c]
push 2
push dword [esp + 0x20]
push eax
call dword [0x52a8f4]
push edi
call fcn.004c8d20
inc edi
pop ecx
add edi, eax
lock inc dword [0x52a8f0]
cmp byte [edi], bl
jne 0x408c98
xor ebx, ebx
inc ebx
push esi
call fcn.004c8ceb
pop ecx
cmp ebx, 1
je 0x408daf
call fcn.00408f54
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret