Function at 0x40aec3
Capabilities:
Encrypt data using rc4 ksa
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44655a
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x460544]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
call fcn.0041abf2
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x44]
push 0x44fa2c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40b16a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x40b16a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x40b16a
push dword [esp + 0x24]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40b16a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x40b160
push dword [esp + 0x24]
push esi
push eax
call fcn.0042cad0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x30], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40b156
lea esi, [esp + 0x5c]
call fcn.0040a8a1
mov dword [esp + 0x98], ebx
push dword [esp + 0x24]
mov eax, esi
push eax
call fcn.0040aa1d
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
or dword [esp + 0x7c], 0xffffffff
push 0x2c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x85], bl
mov byte [esp + 0x84], bl
call fcn.0042bdc0
add esp, 0xc
push 0x20
pop eax
push dword [ebp + 8]
mov word [esp + 0x42], ax
xor eax, eax
inc eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x40], ax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push esi
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x40], eax
push eax
call edi
push dword [esp + 0x44]
call fcn.0040e255
pop ecx
push ebx
lea ecx, [esp + 0x34]
push ecx
push eax
push esi
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x38], eax
push dword [esp + 0x40]
call edi
cmp dword [esp + 0x44], ebx
jbe 0x40b0de
mov eax, dword [esp + 0x20]
or dword [esp + 0x18], 0xffffffff
sub dword [esp + 0x18], eax
lea ecx, [eax + 1]
movzx edx, byte [ecx + 2]
movzx eax, byte [ecx - 1]
imul eax, edx
cdq
mov edi, 0xff
idiv edi
movzx edx, byte [ecx + 2]
mov byte [ecx - 1], al
movzx eax, byte [ecx]
imul eax, edx
cdq
idiv edi
movzx edx, byte [ecx + 2]
mov byte [ecx], al
movzx eax, byte [ecx + 1]
imul eax, edx
cdq
idiv edi
add ecx, 4
mov byte [ecx - 3], al
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, dword [esp + 0x44]
jb 0x40b099
mov edi, dword [esp + 0x28]
push ebx
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x28]
push esi
push ebx
push dword [esp + 0x28]
push edi
call dword [sym.imp.GDI32.dll_SetDIBits]
push dword [esp + 0x20]
call fcn.0040e260
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
push edi
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0xff
mov byte [esp + 0x23], 1
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
push esi
push dword [esp + 0x34]
push ebx
push ebx
push edi
push esi
push dword [esp + 0x48]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x5c]
call fcn.0040a90b
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret