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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
cdq
push esi
mov esi, dword [ebp + 8]
and edx, 3
push edi
push 4
mov dword [ebp + 8], 1
lea edi, [edx + eax]
pop eax
sar edi, 2
mov ecx, eax
cmp edi, eax
mov dword [esi], eax
cmovge ecx, edi
xor ebx, ebx
add ecx, 6
mov dword [esi + 4], ecx
lea eax, [ecx*4 + 4]
test eax, eax
jle 0x10077064
mov edx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
add edx, 2
push 2
pop eax
sub eax, edi
mov dword [ebp - 8], edx
lea eax, [esi + eax*4]
mov dword [ebp - 4], eax
cmp ebx, edi
jge 0x10076fb7
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
jmp 0x1007703d
mov eax, dword [esi + ebx*4 + 4]
mov dword [ebp + 0x10], eax
mov eax, ebx
cdq
idiv edi
test edx, edx
jne 0x1007710f
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
xor ecx, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
shr edx, 0x18
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, byte [edx + str.cw]
shl ecx, 8
or ecx, eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, ecx
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and ecx, 0x7f
and eax, 0x1b
add ecx, ecx
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ecx]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc ebx
add dword [ebp - 4], 4
add edx, 4
mov dword [ebp - 8], edx
mov dword [eax], ecx
add eax, 4
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ecx + 1]
imul eax, dword [esi]
cmp ebx, eax
jl 0x10076f90
xor edi, edi
test ecx, ecx
js 0x1007710a
mov edx, dword [esi]
xor ebx, ebx
test edx, edx
jle 0x10077100
mov eax, dword [esi + 4]
sub eax, edi
imul eax, edx
add eax, ebx
mov eax, dword [esi + eax*4 + 8]
mov dword [ebp + 0x10], eax
test edi, edi
je 0x100770e9
cmp edi, dword [esi + 4]
je 0x100770e9
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10184ec0]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x101852c0]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x10184ac0]
mov eax, dword [ebp + 0x10]
movzx eax, al
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x101856c0]
mov eax, ecx
imul edx, edi
add edx, ebx
inc ebx
mov dword [esi + edx*4 + 0x1e8], eax
mov edx, dword [esi]
cmp ebx, edx
jl 0x1007707a
inc edi
cmp edi, dword [esi + 4]
jle 0x1007706e
pop edi
pop esi
pop ebx
leave
ret
cmp edx, 4
jne 0x10077030
cmp edi, 6
jle 0x10077030
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or eax, ecx
jmp 0x10077033