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

Disassembly:
sub esp, 8
cdq
and edx, 3
add eax, edx
push ebx
mov ebx, eax
mov eax, dword [esp + 0x10]
cdq
and edx, 3
add eax, edx
push ebp
sar eax, 2
sar ebx, 2
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [ecx + 0x3e8], eax
mov edx, eax
jg 0x419bc1
mov edx, ebx
add edx, 6
cmp eax, 8
mov dword [ecx + 0x3ec], edx
jne 0x419be5
mov dword [ecx + 0x3c0], 0x418a00
mov dword [ecx + 0x3c4], 0x419620
jmp 0x419c19
cmp eax, 6
jne 0x419c00
mov dword [ecx + 0x3c0], 0x4185f0
mov dword [ecx + 0x3c4], 0x419210
jmp 0x419c19
cmp eax, 4
jne 0x419c19
mov dword [ecx + 0x3c0], 0x418340
mov dword [ecx + 0x3c4], 0x418f60
xor esi, esi
inc edx
imul edx, eax
test edx, edx
mov edi, 1
jle 0x419d4d
mov ebp, dword [esp + 0x20]
lea eax, [ebx*4]
mov edx, eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x1c], eax
add ebp, 2
cmp esi, ebx
jge 0x419c67
movzx edx, byte [ebp]
xor eax, eax
mov ah, byte [ebp - 2]
mov al, byte [ebp - 1]
shl eax, 8
or eax, edx
movzx edx, byte [ebp + 1]
shl eax, 8
or eax, edx
jmp 0x419d25
mov eax, esi
cdq
idiv dword [esp + 0x10]
mov ebx, dword [ecx + esi*4 - 4]
mov dword [esp + 0x14], ebx
test edx, edx
jne 0x419cd3
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
xor edx, edi
shl edx, 8
movzx eax, bh
movzx eax, byte [eax + str.cw]
or edx, eax
shl edx, 8
mov eax, ebx
and eax, 0xff
movzx eax, byte [eax + str.cw]
or edx, eax
shr ebx, 0x18
movzx eax, byte [ebx + str.cw]
shl edx, 8
or edx, eax
mov ebx, edx
mov edx, edi
and dl, 0x80
neg dl
sbb edx, edx
and edi, 0x7f
and edx, 0x1b
shl edi, 1
xor edi, edx
jmp 0x419d19
cmp edx, 4
jne 0x419d19
cmp dword [esp + 0x10], 6
jle 0x419d19
movzx eax, byte [esp + 0x16]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dh, byte [eax + str.cw]
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
and ebx, 0xff
or edx, eax
movzx eax, byte [ebx + str.cw]
shl edx, 8
or edx, eax
mov ebx, edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
xor eax, ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add edx, 4
mov dword [ecx + esi*4], eax
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 0x3ec]
inc esi
add ebp, 4
inc edx
imul edx, dword [ecx + 0x3e8]
cmp esi, edx
jl 0x419c44
mov eax, dword [ecx + 0x3ec]
xor esi, esi
test eax, eax
jl 0x419e0e
lea ecx, [ecx]
mov eax, dword [ecx + 0x3e8]
xor edi, edi
test eax, eax
jle 0x419dff
mov ebx, dword [ecx + 0x3ec]
mov eax, dword [ecx + 0x3e8]
mov edx, ebx
sub edx, esi
imul edx, eax
add edx, edi
test esi, esi
mov edx, dword [ecx + edx*4]
mov dword [esp + 0x1c], edx
je 0x419de4
cmp esi, ebx
je 0x419de4
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*4 + 0x434298]
movzx ebp, dh
movzx ebp, byte [ebp + str.cw]
xor ebx, dword [ebp*4 + 0x434698]
mov ebp, edx
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
xor ebx, dword [ebp*4 + 0x433e98]
and edx, 0xff
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x434a98]
mov edx, ebx
imul eax, esi
add eax, edi
mov dword [ecx + eax*4 + 0x1e0], edx
mov eax, dword [ecx + 0x3e8]
inc edi
cmp edi, eax
jl 0x419d70
mov eax, dword [ecx + 0x3ec]
inc esi
cmp esi, eax
jle 0x419d60
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret