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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
cdq
and edx, 3
mov dword [ebp - 4], 1
add eax, edx
push ebx
sar eax, 2
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov ecx, 4
cmp eax, ecx
push edi
mov edi, dword [ebp + 8]
cmovge ecx, eax
add ecx, 6
mov dword [esi + 0x3e8], 4
xor edx, edx
mov dword [esi + 0x3ec], ecx
mov dword [esi + 0x3c0], 0x101849a0
mov dword [esi + 0x3c4], 0x10184c40
lea eax, [ecx*4 + 4]
mov dword [ebp - 8], edx
test eax, eax
jle 0x10185092
mov ecx, dword [ebp - 0xc]
mov ebx, esi
lea eax, [ecx*4]
sub ebx, eax
add edi, 2
mov dword [ebp + 0xc], ebx
nop dword [eax]
cmp edx, ecx
jge 0x10184f97
movzx ecx, byte [edi - 2]
movzx eax, byte [edi - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
jmp 0x10185063
mov eax, edi
sub eax, dword [ebp + 8]
mov ebx, dword [eax + esi - 6]
mov eax, edx
cdq
idiv ecx
test edx, edx
jne 0x10185009
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x1032b400]
mov eax, ebx
shr eax, 8
xor ecx, edx
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1032b400]
or ecx, eax
movzx eax, bl
shl ecx, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x1032b400]
or ecx, eax
mov eax, edx
movzx ebx, byte [ebx + 0x1032b400]
and al, 0x80
shl ecx, 8
movzx eax, al
or ebx, ecx
neg eax
sbb eax, eax
and edx, 0x7f
and eax, 0x1b
add edx, edx
xor edx, eax
mov dword [ebp - 4], edx
jmp 0x10185056
cmp edx, 4
jne 0x10185056
cmp ecx, 6
jle 0x10185056
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x1032b400]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x1032b400]
shl eax, 8
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1032b400]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx ebx, byte [eax + 0x1032b400]
or ebx, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ecx]
xor ecx, ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + edx*4], ecx
add ebx, 4
mov eax, dword [esi + 0x3ec]
inc edx
mov ecx, dword [ebp - 0xc]
add edi, 4
mov dword [ebp - 0x10], eax
inc eax
imul eax, dword [esi + 0x3e8]
mov dword [ebp - 8], edx
mov dword [ebp + 0xc], ebx
cmp edx, eax
jl 0x10184f70
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
test ecx, ecx
js 0x1018514a
nop dword [eax]
mov eax, dword [esi + 0x3e8]
xor edi, edi
test eax, eax
jle 0x1018513d
mov edx, dword [esi + 0x3ec]
mov ecx, edx
sub ecx, ebx
imul ecx, eax
add ecx, edi
mov ecx, dword [esi + ecx*4]
mov dword [ebp + 0xc], ecx
test ebx, ebx
je 0x10185122
cmp ebx, edx
je 0x10185122
shr ecx, 0x10
movzx ecx, cl
movzx edx, byte [ecx + 0x1032b400]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x1032b900]
movzx ecx, byte [ecx + 0x1032b400]
xor edx, dword [ecx*4 + 0x1032b000]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x1032b400]
xor edx, dword [ecx*4 + 0x10329f00]
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
movzx ecx, byte [ecx + 0x1032b400]
xor edx, dword [ecx*4 + 0x1032ac00]
mov ecx, edx
imul eax, ebx
add eax, edi
inc edi
mov dword [esi + eax*4 + 0x1e0], ecx
mov eax, dword [esi + 0x3e8]
cmp edi, eax
jl 0x101850b0
inc ebx
cmp ebx, dword [esi + 0x3ec]
jle 0x101850a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret