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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
cdq
push esi
and edx, 3
mov dword [ebp - 8], 1
add edx, eax
mov esi, ecx
push edi
sar edx, 2
push 4
pop eax
cmp edx, eax
mov dword [esi + 0x3e8], eax
mov ecx, edx
mov dword [ebp - 4], edx
cmovl ecx, eax
mov dword [esi + 0x3c0], 0x48bdde
xor edi, edi
mov dword [esi + 0x3c4], 0x48c061
lea eax, [ecx + 6]
mov dword [esi + 0x3ec], eax
lea eax, [eax*4 + 4]
test eax, eax
jle 0x48c427
mov ebx, dword [ebp + 8]
mov eax, edx
shl eax, 2
mov ecx, esi
sub ecx, eax
add ebx, 2
mov dword [ebp - 0xc], ecx
cmp edi, edx
jge 0x48c382
movzx ecx, byte [ebx - 2]
movzx eax, byte [ebx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
mov dword [esi + edi*4], ecx
jmp 0x48c409
mov eax, edi
mov ecx, dword [esi + edi*4 - 4]
cdq
idiv dword [ebp - 4]
mov dword [ebp + 0xc], ecx
test edx, edx
jne 0x48c4ec
mov edx, ecx
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x4d7d00]
mov eax, edx
xor ecx, dword [ebp - 8]
shr eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x4d7d00]
or ecx, eax
movzx eax, dl
shr edx, 0x18
shl ecx, 8
movzx eax, byte [eax + 0x4d7d00]
or ecx, eax
movzx eax, byte [edx + 0x4d7d00]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov eax, edx
and al, 0x80
movsx eax, al
neg eax
sbb eax, eax
and edx, 0x7f
and eax, 0x1b
add edx, edx
xor edx, eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor eax, ecx
mov dword [esi + edi*4], eax
add dword [ebp - 0xc], 4
inc edi
mov eax, dword [esi + 0x3ec]
add ebx, 4
inc eax
imul eax, dword [esi + 0x3e8]
cmp edi, eax
jl 0x48c358
xor edx, edx
cmp dword [esi + 0x3ec], edx
jl 0x48c4e5
xor ebx, ebx
cmp dword [esi + 0x3e8], ebx
jle 0x48c4d8
mov ecx, dword [esi + 0x3ec]
mov eax, ecx
mov edi, dword [esi + 0x3e8]
sub eax, edx
imul eax, edi
add eax, ebx
mov eax, dword [esi + eax*4]
mov dword [ebp + 0xc], eax
test edx, edx
je 0x48c4bf
cmp edx, ecx
je 0x48c4bf
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x4d7d00]
mov eax, dword [ebp + 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x4d6400]
movzx eax, byte [eax + 0x4d7d00]
xor ecx, dword [eax*4 + 0x4d6000]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
movzx eax, byte [eax + 0x4d7d00]
xor ecx, dword [eax*4 + 0x4d6800]
mov eax, dword [ebp + 0xc]
movzx eax, al
movzx eax, byte [eax + 0x4d7d00]
xor ecx, dword [eax*4 + 0x4d5c00]
mov eax, ecx
imul edi, edx
add edi, ebx
inc ebx
mov dword [esi + edi*4 + 0x1e0], eax
cmp ebx, dword [esi + 0x3e8]
jl 0x48c443
inc edx
cmp edx, dword [esi + 0x3ec]
jle 0x48c435
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 4
jne 0x48c3fc
mov edx, dword [ebp - 4]
cmp edx, 6
jle 0x48c3ff
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + 0x4d7d00]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
movzx eax, byte [eax + 0x4d7d00]
shl eax, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shr eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x4d7d00]
or ecx, eax
mov eax, dword [ebp + 0xc]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4d7d00]
or ecx, eax
jmp 0x48c3ff