Function at 0x10015e42
Capabilities:
Encrypt data using aes
Reference aes constants

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]
and eax, 0xff00ff
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor eax, dword [edi]
push 8
push dword [esi + 4]
mov dword [ebp + 8], eax
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi + 4]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x14], ebx
call sub.MSVCR70.dll__lrotl
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi + 4]
push 8
push dword [esi + 8]
mov dword [ebp - 4], eax
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi + 8]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x14], ebx
call sub.MSVCR70.dll__lrotl
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi + 8]
push 8
push dword [esi + 0xc]
mov dword [ebp - 0x14], eax
call sub.MSVCR70.dll__lrotr
push 8
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], ebx
call sub.MSVCR70.dll__lrotl
mov ecx, eax
mov eax, dword [ebp - 0x10]
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [edi + 0xc]
movzx ecx, byte [ebp - 0x13]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0xe]
mov ebx, dword [eax*4 + 0x10074560]
xor ebx, dword [ecx*4 + 0x10074960]
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xa]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x10074160]
mov eax, dword [ebp - 4]
mov esi, 0xff
and eax, esi
xor ebx, dword [eax*4 + 0x10074d60]
movzx eax, byte [ebp - 0xf]
mov eax, dword [eax*4 + 0x10074960]
add esp, 0x40
xor ebx, dword [edi + 0x10]
mov dword [ebp - 0x18], ebx
xor eax, dword [ecx*4 + 0x10074560]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10074160]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
and edx, esi
xor eax, dword [edx*4 + 0x10074d60]
movzx edx, byte [ebp - 2]
xor eax, dword [edi + 0x14]
movzx edi, byte [ebp + 9]
mov dword [ebp - 0x1c], edi
mov edi, dword [edx*4 + 0x10074560]
mov edx, dword [ebp - 0x1c]
xor edi, dword [edx*4 + 0x10074960]
movzx edx, byte [ebp - 3]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x10074160]
mov ecx, dword [ebp - 0x10]
and ecx, esi
xor edi, dword [ecx*4 + 0x10074d60]
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx + 0x18]
movzx ecx, byte [ebp - 0x12]
mov ecx, dword [ecx*4 + 0x10074560]
xor ecx, dword [edx*4 + 0x10074960]
mov edx, dword [ebp - 0x10]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x10074160]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 8]
and edx, esi
xor ecx, dword [edx*4 + 0x10074d60]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx + 0x1c]
mov dword [ebp - 8], edi
lea edi, [edx + 0x20]
mov edx, dword [edx + 0xf0]
sar edx, 1
dec edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], edi
je 0x100161eb
mov dword [ebp - 0x1c], edx
jmp 0x10016014
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 2]
movzx edi, byte [ebp - 7]
mov dword [ebp + 8], edi
mov edi, dword [edx*4 + 0x10074560]
mov edx, dword [ebp + 8]
xor edi, dword [edx*4 + 0x10074960]
mov edx, ebx
shr edx, 0x18
xor edi, dword [edx*4 + 0x10074160]
mov edx, eax
and edx, esi
xor edi, dword [edx*4 + 0x10074d60]
mov edx, dword [ebp + 0x10]
xor edi, dword [edx]
movzx edx, ch
mov dword [ebp + 8], edi
movzx edi, byte [ebp - 0x16]
mov dword [ebp - 0x18], edi
mov edi, dword [edx*4 + 0x10074960]
mov edx, dword [ebp - 0x18]
xor edi, dword [edx*4 + 0x10074560]
mov edx, eax
shr edx, 0x18
xor edi, dword [edx*4 + 0x10074160]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edi
and edx, esi
xor edi, dword [edx*4 + 0x10074d60]
mov edx, dword [ebp + 0x10]
xor edi, dword [edx + 4]
movzx edx, byte [ebp - 0xa]
mov dword [ebp - 4], edi
movzx edi, bh
mov dword [ebp - 0x18], edi
mov edi, dword [edx*4 + 0x10074560]
mov edx, dword [ebp - 0x18]
xor edi, dword [edx*4 + 0x10074960]
movzx eax, ah
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
shr edi, 0x18
xor edx, dword [edi*4 + 0x10074160]
mov edi, ecx
and edi, esi
xor edx, dword [edi*4 + 0x10074d60]
mov edi, dword [ebp + 0x10]
xor edx, dword [edi + 8]
movzx edi, byte [ebp - 6]
mov dword [ebp - 0x18], eax
mov eax, dword [edi*4 + 0x10074560]
mov edi, dword [ebp - 0x18]
xor eax, dword [edi*4 + 0x10074960]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10074160]
mov ecx, dword [ebp + 0x10]
and ebx, esi
xor eax, dword [ebx*4 + 0x10074d60]
movzx ebx, dh
xor eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
movzx edi, byte [ebp - 0xe]
mov edi, dword [edi*4 + 0x10074560]
xor edi, dword [ebx*4 + 0x10074960]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x10074160]
mov ebx, dword [ebp - 4]
and ebx, esi
xor edi, dword [ebx*4 + 0x10074d60]
xor edi, dword [ecx + 0x10]
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10074960]
mov ebx, edi
movzx edi, byte [ebp + 0xa]
xor ecx, dword [edi*4 + 0x10074560]
mov edi, dword [ebp - 4]
shr edi, 0x18
xor ecx, dword [edi*4 + 0x10074160]
mov dword [ebp - 0x18], ebx
mov edi, edx
and edi, esi
xor ecx, dword [edi*4 + 0x10074d60]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x14]
movzx edi, byte [ebp + 9]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [ebp - 2]
mov ecx, dword [ecx*4 + 0x10074560]
xor ecx, dword [edi*4 + 0x10074960]
mov edi, dword [ebp + 0x10]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x10074160]
mov edx, eax
and edx, esi
xor ecx, dword [edx*4 + 0x10074d60]
movzx edx, byte [ebp - 3]
xor ecx, dword [edi + 0x18]
shr eax, 0x18
mov dword [ebp - 8], ecx
movzx ecx, byte [ebp - 0x12]
mov ecx, dword [ecx*4 + 0x10074560]
xor ecx, dword [edx*4 + 0x10074960]
add edi, 0x20
xor ecx, dword [eax*4 + 0x10074160]
mov eax, dword [ebp + 8]
and eax, esi
xor ecx, dword [eax*4 + 0x10074d60]
mov eax, dword [ebp - 0xc]
xor ecx, dword [edi - 4]
dec dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], edi
jne 0x10016011
movzx ecx, byte [ebp - 2]
movzx ecx, byte [ecx + 0x10075160]
mov dword [ebp + 8], ecx
xor edx, edx
mov ecx, ebx
shr ecx, 0x18
mov dh, byte [ecx + 0x10075160]
mov ecx, dword [ebp + 8]
and eax, esi
movzx eax, byte [eax + 0x10075160]
push 8
xor ecx, edx
movzx edx, byte [ebp - 7]
movzx edx, byte [edx + 0x10075160]
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
xor ecx, dword [edi]
push ecx
mov dword [ebp + 8], ecx
call sub.MSVCR70.dll__lrotr
push 8
push dword [ebp + 8]
mov edi, eax
and edi, 0xff00ff00
call sub.MSVCR70.dll__lrotl
and eax, 0xff00ff
or edi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
movzx eax, byte [ebp - 0x16]
movzx edi, byte [eax + 0x10075160]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor ecx, ecx
mov ch, byte [eax + 0x10075160]
movzx eax, byte [ebp - 3]
movzx eax, byte [eax + 0x10075160]
xor edi, ecx
shl edi, 8
xor edi, eax
mov eax, dword [ebp - 8]
and eax, esi
movzx eax, byte [eax + 0x10075160]
shl edi, 8
xor edi, eax
mov eax, dword [ebp + 0x10]
xor edi, dword [eax + 4]
push 8
push edi
call sub.MSVCR70.dll__lrotr
and eax, 0xff00ff00
push 8
push edi
mov dword [ebp + 8], eax
call sub.MSVCR70.dll__lrotl
mov ecx, dword [ebp + 8]
and eax, 0xff00ff
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ecx
movzx eax, byte [ebp - 0xa]
movzx edi, byte [eax + 0x10075160]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, ecx
mov ch, byte [eax + 0x10075160]
movzx eax, bh
movzx eax, byte [eax + 0x10075160]
xor edi, ecx
shl edi, 8
xor edi, eax
mov eax, dword [ebp - 4]
and eax, esi
movzx eax, byte [eax + 0x10075160]
shl edi, 8
xor edi, eax
mov eax, dword [ebp + 0x10]
xor edi, dword [eax + 8]
push 8
push edi
call sub.MSVCR70.dll__lrotr
and eax, 0xff00ff00
push 8
push edi
mov dword [ebp + 8], eax
call sub.MSVCR70.dll__lrotl
mov ecx, dword [ebp + 8]
and eax, 0xff00ff
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ecx
movzx eax, byte [ebp - 6]
movzx edi, byte [eax + 0x10075160]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, ecx
mov ch, byte [eax + 0x10075160]
movzx eax, byte [ebp - 0xb]
movzx eax, byte [eax + 0x10075160]
xor edi, ecx
shl edi, 8
xor edi, eax
and ebx, esi
movzx eax, byte [ebx + 0x10075160]
shl edi, 8
xor edi, eax
mov eax, dword [ebp + 0x10]
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