Function at 0x100158fc
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push 0x1c
pop eax
call fcn.1005ead0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 8
push dword [esi]
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi]
mov dword [ebp + 8], eax
mov ebx, 0xff00ff00
and dword [ebp + 8], ebx
call sub.MSVCR70.dll__lrotl
mov edi, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi]
push 8
push dword [esi + 4]
mov dword [ebp - 4], eax
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi + 4]
mov dword [ebp + 8], eax
and dword [ebp + 8], ebx
call sub.MSVCR70.dll__lrotl
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi + 4]
push 8
push dword [esi + 8]
mov dword [ebp + 0x10], eax
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi + 8]
mov dword [ebp + 8], eax
and dword [ebp + 8], ebx
call sub.MSVCR70.dll__lrotl
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi + 8]
push 8
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi + 0xc]
mov dword [ebp + 8], eax
and dword [ebp + 8], ebx
call sub.MSVCR70.dll__lrotl
mov ecx, dword [ebp + 8]
movzx edx, byte [ebp + 0x12]
and eax, 0xff00ff
or ecx, eax
movzx eax, byte [ebp - 0xf]
mov eax, dword [eax*4 + 0x10073960]
xor eax, dword [edx*4 + 0x10073560]
xor ecx, dword [edi + 0xc]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, dword [edx*4 + 0x10073160]
mov edx, ecx
mov esi, 0xff
and edx, esi
xor eax, dword [edx*4 + 0x10073d60]
movzx edx, byte [ebp - 0xe]
mov dword [ebp - 0x14], ecx
add esp, 0x40
xor eax, dword [edi + 0x10]
movzx ecx, ch
mov ecx, dword [ecx*4 + 0x10073960]
mov dword [ebp - 0xc], eax
xor ecx, dword [edx*4 + 0x10073560]
mov edx, dword [ebp + 0x10]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x10073160]
mov edx, dword [ebp - 4]
and edx, esi
xor ecx, dword [edx*4 + 0x10073d60]
movzx edx, byte [ebp - 3]
xor ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
movzx ecx, byte [ebp - 0x12]
mov ebx, dword [ecx*4 + 0x10073560]
xor ebx, dword [edx*4 + 0x10073960]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ebp - 2]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x10073160]
mov ecx, dword [ebp + 0x10]
and ecx, esi
xor ebx, dword [ecx*4 + 0x10073d60]
movzx ecx, byte [ebp + 0x11]
mov ecx, dword [ecx*4 + 0x10073960]
xor ecx, dword [edx*4 + 0x10073560]
mov edx, dword [ebp - 0x14]
xor ebx, dword [edi + 0x18]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x10073160]
mov edx, dword [ebp - 0x10]
and edx, esi
xor ecx, dword [edx*4 + 0x10073d60]
lea edx, [edi + 0x20]
xor ecx, dword [edi + 0x1c]
mov edi, dword [edi + 0xf0]
sar edi, 1
dec edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], edx
je 0x10015c75
mov dword [ebp - 0x1c], edi
movzx edi, byte [ebp - 6]
movzx edx, bh
mov dword [ebp + 0x10], edi
mov edi, dword [edx*4 + 0x10073960]
mov edx, dword [ebp + 0x10]
xor edi, dword [edx*4 + 0x10073560]
mov edx, eax
shr edx, 0x18
xor edi, dword [edx*4 + 0x10073160]
mov edx, ecx
and edx, esi
xor edi, dword [edx*4 + 0x10073d60]
mov edx, dword [ebp + 8]
xor edi, dword [edx]
movzx edx, ch
mov dword [ebp - 4], edi
movzx edi, byte [ebp - 0x16]
mov dword [ebp + 0x10], edi
mov edi, dword [edx*4 + 0x10073960]
mov edx, dword [ebp + 0x10]
xor edi, dword [edx*4 + 0x10073560]
mov edx, dword [ebp - 8]
shr edx, 0x18
mov dword [ebp + 0x10], edi
xor edi, dword [edx*4 + 0x10073160]
mov edx, eax
and edx, esi
xor edi, dword [edx*4 + 0x10073d60]
mov edx, dword [ebp + 8]
xor edi, dword [edx + 4]
movzx edx, byte [ebp - 0xe]
mov dword [ebp + 0x10], edi
movzx edi, ah
mov eax, dword [edx*4 + 0x10073560]
xor eax, dword [edi*4 + 0x10073960]
movzx edi, byte [ebp - 0xa]
mov edx, ebx
shr edx, 0x18
xor eax, dword [edx*4 + 0x10073160]
mov edx, dword [ebp - 8]
and edx, esi
xor eax, dword [edx*4 + 0x10073d60]
mov edx, dword [ebp + 8]
xor eax, dword [edx + 8]
movzx edx, byte [ebp - 7]
mov edx, dword [edx*4 + 0x10073960]
xor edx, dword [edi*4 + 0x10073560]
mov edi, dword [ebp + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x10073160]
and ebx, esi
xor edx, dword [ebx*4 + 0x10073d60]
movzx ebx, byte [ebp + 0x12]
xor edx, dword [edi + 0xc]
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10073960]
xor ecx, dword [ebx*4 + 0x10073560]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x10073160]
mov ebx, edx
and ebx, esi
xor ecx, dword [ebx*4 + 0x10073d60]
mov dword [ebp - 0x10], eax
xor ecx, dword [edi + 0x10]
movzx ebx, byte [ebp - 0xe]
mov dword [ebp - 0xc], ecx
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x10073960]
xor ecx, dword [ebx*4 + 0x10073560]
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x10073160]
mov ebx, dword [ebp - 4]
and ebx, esi
xor ecx, dword [ebx*4 + 0x10073d60]
movzx ebx, byte [ebp - 3]
xor ecx, dword [edi + 0x14]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
movzx ecx, byte [ebp - 0x12]
mov ecx, dword [ecx*4 + 0x10073560]
xor ecx, dword [ebx*4 + 0x10073960]
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x10073160]
mov ebx, dword [ebp + 0x10]
and ebx, esi
xor ecx, dword [ebx*4 + 0x10073d60]
shr edx, 0x18
xor ecx, dword [edi + 0x18]
movzx edi, byte [ebp - 2]
mov ebx, ecx
movzx ecx, byte [ebp + 0x11]
mov ecx, dword [ecx*4 + 0x10073960]
xor ecx, dword [edi*4 + 0x10073560]
and eax, esi
xor ecx, dword [edx*4 + 0x10073160]
mov dword [ebp - 0x18], ebx
xor ecx, dword [eax*4 + 0x10073d60]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0x1c]
add dword [ebp + 8], 0x20
dec dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
jne 0x10015ab5
movzx edx, byte [ebp - 6]
mov edi, dword [edx*4 + 0x10073d60]
shr eax, 0x18
mov eax, dword [eax*4 + 0x10073960]
movzx edx, bh
mov edx, dword [edx*4 + 0x10073160]
and edi, 0xff0000
and eax, 0xff000000
and edx, 0xff00
xor edi, edx
xor edi, eax
and ecx, esi
mov eax, dword [ecx*4 + 0x10073560]
and eax, esi
xor edi, eax
mov eax, dword [ebp + 8]
xor edi, dword [eax]
push 8
push edi
call sub.MSVCR70.dll__lrotr
and eax, 0xff00ff00
push 8
push edi
mov dword [ebp + 0x10], eax
call sub.MSVCR70.dll__lrotl
mov ecx, dword [ebp + 0x10]
and eax, 0xff00ff
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, byte [ebp - 0x16]
mov edi, dword [eax*4 + 0x10073d60]
movzx eax, byte [ebp - 0xf]
mov eax, dword [eax*4 + 0x10073160]
and eax, 0xff00
and edi, 0xff0000
xor edi, eax
mov eax, dword [ebp - 8]
shr eax, 0x18
mov eax, dword [eax*4 + 0x10073960]
and eax, 0xff000000
xor edi, eax
mov eax, dword [ebp - 0xc]
and eax, esi
mov eax, dword [eax*4 + 0x10073560]
and eax, esi
xor edi, eax
mov eax, dword [ebp + 8]
xor edi, dword [eax + 4]
push 8
push edi
call sub.MSVCR70.dll__lrotr
and eax, 0xff00ff00
push 8
push edi
mov dword [ebp + 0x10], eax
call sub.MSVCR70.dll__lrotl
mov ecx, dword [ebp + 0x10]
and eax, 0xff00ff
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
movzx eax, byte [ebp - 0xe]
mov edi, dword [eax*4 + 0x10073d60]
movzx eax, byte [ebp - 0xb]
mov eax, dword [eax*4 + 0x10073160]
and eax, 0xff00
and edi, 0xff0000
xor edi, eax
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x10073960]
and eax, 0xff000000
xor edi, eax
mov eax, dword [ebp - 8]
and eax, esi
mov eax, dword [eax*4 + 0x10073560]
and eax, esi
xor edi, eax
mov eax, dword [ebp + 8]
xor edi, dword [eax + 8]
push 8
push edi
call sub.MSVCR70.dll__lrotr
and eax, 0xff00ff00
push 8
push edi
mov dword [ebp + 0x10], eax
call sub.MSVCR70.dll__lrotl
mov ecx, dword [ebp + 0x10]
and eax, 0xff00ff
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ecx
movzx eax, byte [ebp - 0xa]
mov edi, dword [eax*4 + 0x10073d60]
movzx eax, byte [ebp - 7]
mov eax, dword [eax*4 + 0x10073160]
and eax, 0xff00
and edi, 0xff0000
xor edi, eax
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov eax, dword [eax*4 + 0x10073960]
and eax, 0xff000000
xor edi, eax
and ebx, esi
mov eax, dword [ebx*4 + 0x10073560]
and eax, esi
xor edi, eax
mov eax, dword [ebp + 8]
xor edi, dword [eax + 0xc]
push 8
push edi
call sub.MSVCR70.dll__lrotr
mov esi, eax
push 8
push edi
and esi, 0xff00ff00
call sub.MSVCR70.dll__lrotl
add esp, 0x40
and eax, 0xff00ff
or esi, eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax + 0xc], esi
pop esi
pop ebx
leave
ret