Function at 0x10015ec0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f993
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10070024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp byte [ebp + 8], 0
jne 0x10015fdd
mov edi, dword [eax]
test edi, edi
je 0x10016123
push 0xc
call fcn.10002aa4
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10015f45
push str.ExcelDna.ManagedHost
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1001612d
jmp 0x10015f47
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], esi
test esi, esi
je 0x1001612d
mov dword [ebp - 4], 1
mov ecx, dword [ebx]
test ecx, ecx
je 0x10015f6c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [ebx], 0
push dword [esi]
mov eax, dword [edi]
push edi
call dword [eax + 0xb0]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x10015fc7
mov eax, dword [esi]
test eax, eax
je 0x10015fa5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10015fbc
push eax
call fcn.10002dee
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10002a73
add esp, 8
mov dword [ebp + 8], 0
test edi, edi
js 0x10015fe0
cmp dword [ebx], 0
jne 0x1001610f
jmp 0x10015fe0
mov edi, dword [ebp + 8]
push str.ASSEMBLY
push str.EXCELDNA.MANAGEDHOST
push dword [0x1007b048]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10016026
mov edx, 0x86
push edi
push 0x76
lea ecx, [edx - 4]
call fcn.10015aa0
add esp, 8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [0x1007b048]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x1007b048]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
push edi
push ebx
push dword [esi + 0xc]
call fcn.10005620
add esp, 0xc
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
mov dword [ebp - 4], 2
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, dword [esi + 0x10]
xor edx, edx
test edi, edi
jle 0x100160a7
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 7
mov al, byte [eax + 0x10046324]
xor byte [ecx + edx], al
inc edx
cmp edx, edi
jl 0x10016091
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10016123
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi]
test ecx, ecx
je 0x100160c6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
mov dword [edi], 0
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xb4]
test eax, eax
jns 0x10016101
mov edx, 0x87
push eax
push 0x76
lea ecx, [edx - 5]
call fcn.10015aa0
add esp, 8
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1001600f
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004003
call fcn.10002850
push 0x8007000e
call fcn.10002850
int3