Function at 0x614e90
Capabilities:
Encrypt data using aes
Encrypt data using aes mixcolumns step
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x68
add eax, 2
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov ecx, ebp
mov esi, 8
xor edx, edx
xor ebx, ebx
mov dl, byte [eax - 2]
mov bl, byte [eax - 1]
shl edx, 8
add edx, ebx
xor ebx, ebx
mov bl, byte [eax]
add eax, 4
shl edx, 8
add edx, ebx
xor ebx, ebx
mov bl, byte [eax - 3]
add ecx, 4
shl edx, 8
add edx, ebx
dec esi
mov dword [ecx - 4], edx
jne 0x614ea9
mov esi, 8
mov edi, ebp
mov ecx, dword [edi + 0x1c]
mov eax, esi
and eax, 7
mov dword [esp + 0x7c], ecx
jne 0x614f4c
mov eax, ecx
xor ebx, ebx
shr eax, 0x18
shl ecx, 8
or eax, ecx
xor ecx, ecx
mov dword [esp + 0x7c], eax
mov edx, eax
mov cl, byte [esp + 0x7e]
shr edx, 0x18
mov bl, byte [ecx + 0x7b50f0]
xor ecx, ecx
mov bh, byte [edx + 0x7b50f0]
mov cl, ah
xor edx, edx
and eax, 0xff
mov dl, byte [ecx + 0x7b50f0]
xor ecx, ecx
mov cl, byte [eax + 0x7b50f0]
mov eax, esi
shl ebx, 8
or ebx, edx
cdq
and edx, 7
add eax, edx
shl ebx, 8
sar eax, 3
or ebx, ecx
mov ecx, dword [eax*4 + 0x7b52f0]
xor ecx, ebx
jmp 0x614f90
cmp eax, 4
jne 0x614f90
xor edx, edx
xor eax, eax
mov dl, byte [esp + 0x7e]
xor ebx, ebx
mov al, byte [edx + 0x7b50f0]
mov edx, ecx
shr edx, 0x18
mov ah, byte [edx + 0x7b50f0]
xor edx, edx
mov dl, ch
and ecx, 0xff
shl eax, 8
mov bl, byte [edx + 0x7b50f0]
xor edx, edx
mov dl, byte [ecx + 0x7b50f0]
or eax, ebx
shl eax, 8
or eax, edx
mov ecx, eax
mov eax, dword [edi]
add edi, 4
xor eax, ecx
inc esi
mov dword [edi + 0x1c], eax
cmp esi, 0x3c
jl 0x614ede
lea esi, [ebp + 0x10]
mov dword [esp + 0x74], 0xd
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 4
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov ebx, eax
mov byte [esp + 0x14], cl
shr edx, 0x10
shr ebx, 8
and cl, 0x80
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x10], dl
mov byte [esp + 0x34], bl
mov byte [esp + 0x7c], cl
je 0x614ffb
and eax, 0xff
mov dword [esp + 0x40], eax
lea ecx, [eax + eax]
mov al, cl
xor al, 0x1b
jmp 0x615009
and eax, 0xff
mov dword [esp + 0x40], eax
lea ecx, [eax + eax]
mov al, cl
mov byte [esp + 0x18], al
test al, 0x80
mov eax, dword [esp + 0x18]
je 0x615024
and eax, 0xff
mov dword [esp + 0x68], eax
shl al, 1
xor al, 0x1b
jmp 0x61502f
and eax, 0xff
mov dword [esp + 0x68], eax
shl al, 1
mov byte [esp + 0x1c], al
test al, 0x80
mov eax, dword [esp + 0x1c]
je 0x61504a
and eax, 0xff
mov dword [esp + 0x64], eax
shl al, 1
xor al, 0x1b
jmp 0x615055
and eax, 0xff
mov dword [esp + 0x64], eax
shl al, 1
mov ebp, dword [esp + 0x10]
and dl, 0x80
mov byte [esp + 0x50], al
mov byte [esp + 0x80], dl
je 0x615079
and ebp, 0xff
lea edx, [ebp + ebp]
mov al, dl
xor al, 0x1b
jmp 0x615085
and ebp, 0xff
lea edx, [ebp + ebp]
mov al, dl
mov byte [esp + 0x20], al
test al, 0x80
mov eax, dword [esp + 0x20]
je 0x6150a0
and eax, 0xff
mov dword [esp + 0x60], eax
shl al, 1
xor al, 0x1b
jmp 0x6150ab
and eax, 0xff
mov dword [esp + 0x60], eax
shl al, 1
test al, 0x80
je 0x6150b5
shl al, 1
xor al, 0x1b
jmp 0x6150b7
shl al, 1
mov edi, dword [esp + 0x34]
mov byte [esp + 0x4c], al
test bl, 0x80
mov eax, edi
je 0x6150d5
and eax, 0xff
mov dword [esp + 0x5c], eax
shl al, 1
xor al, 0x1b
jmp 0x6150e0
and eax, 0xff
mov dword [esp + 0x5c], eax
shl al, 1
test al, 0x80
je 0x6150ea
shl al, 1
xor al, 0x1b
jmp 0x6150ec
shl al, 1
mov byte [esp + 0x24], al
test al, 0x80
mov eax, dword [esp + 0x24]
je 0x615107
and eax, 0xff
mov dword [esp + 0x58], eax
shl al, 1
xor al, 0x1b
jmp 0x615112
and eax, 0xff
mov dword [esp + 0x58], eax
shl al, 1
mov esi, dword [esp + 0x28]
mov byte [esp + 0x48], al
test byte [esp + 0x28], 0x80
mov eax, esi
je 0x615132
and eax, 0xff
mov dword [esp + 0x54], eax
shl al, 1
xor al, 0x1b
jmp 0x61513d
and eax, 0xff
mov dword [esp + 0x54], eax
shl al, 1
test al, 0x80
je 0x615147
shl al, 1
xor al, 0x1b
jmp 0x615149
shl al, 1
test al, 0x80
je 0x615153
shl al, 1
xor al, 0x1b
jmp 0x615155
shl al, 1
mov byte [esp + 0x44], al
mov al, byte [esp + 0x7c]
test al, al
je 0x615164
xor cl, 0x1b
mov al, cl
test al, 0x80
je 0x615170
shl al, 1
xor al, 0x1b
jmp 0x615172
shl al, 1
test al, 0x80
je 0x61517c
shl al, 1
xor al, 0x1b
jmp 0x61517e
shl al, 1
mov byte [esp + 0x3c], al
mov al, byte [esp + 0x80]
test al, al
je 0x615190
xor dl, 0x1b
mov al, dl
mov byte [esp + 0x2c], al
test al, 0x80
mov eax, dword [esp + 0x2c]
je 0x6151ad
and eax, 0xff
mov dword [esp + 0x7c], eax
shl al, 1
xor al, 0x1b
jmp 0x6151b8
and eax, 0xff
mov dword [esp + 0x7c], eax
shl al, 1
mov byte [esp + 0x30], al
test al, 0x80
mov eax, dword [esp + 0x30]
je 0x6151d6
and eax, 0xff
mov dword [esp + 0x80], eax
shl al, 1
xor al, 0x1b
jmp 0x6151e4
and eax, 0xff
mov dword [esp + 0x80], eax
shl al, 1
push esi
mov byte [esp + 0x3c], al
call fcn.006145e0
mov bl, al
push edi
and ebx, 0xff
call fcn.00614580
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
and eax, 0xff
and ecx, 0xff
xor ebx, eax
mov eax, dword [esp + 0x48]
xor ebx, ecx
mov ecx, dword [esp + 0x84]
and edx, 0xff
push esi
xor ebx, edx
mov edx, dword [esp + 0x8c]
xor ebx, ecx
mov ecx, dword [esp + 0x54]
xor ebx, eax
mov eax, dword [esp + 0x50]
xor ebx, edx
mov edx, dword [esp + 0x58]
and eax, 0xff
and ecx, 0xff
xor eax, ecx
mov ecx, dword [esp + 0x5c]
and edx, 0xff
and ecx, 0xff
xor eax, edx
mov edx, dword [esp + 0x60]
xor eax, ecx
mov ecx, dword [esp + 0x64]
xor eax, edx
mov edx, dword [esp + 0x68]
xor eax, ecx
mov ecx, dword [esp + 0x6c]
xor eax, edx
xor eax, ecx
mov ecx, dword [esp + 0x70]
xor eax, ebp
mov ebp, dword [esp + 0x74]
xor eax, ecx
xor eax, ebp
shl eax, 8
or ebx, eax
shl ebx, 8
call fcn.00614580
mov dword [esp + 0x88], ebx
mov bl, al
push edi
and ebx, 0xff
call fcn.00614640
mov edx, dword [esp + 0x20]
and eax, 0xff
push edx
xor ebx, eax
call fcn.00614540
and eax, 0xff
xor ebx, eax
mov eax, dword [esp + 0x28]
push eax
call fcn.006145e0
mov edx, dword [esp + 0x94]
and eax, 0xff
xor ebx, eax
push esi
or edx, ebx
shl edx, 8
mov dword [esp + 0x98], edx
call fcn.00614640
mov bl, al
push edi
and ebx, 0xff
call fcn.00614540
mov ecx, dword [esp + 0x30]
and eax, 0xff
xor ebx, eax
push ecx
call fcn.006145e0
mov edx, dword [esp + 0x38]
and eax, 0xff
push edx
xor ebx, eax
call fcn.00614580
mov esi, dword [esp + 0x94]
and eax, 0xff
xor ebx, eax
mov eax, dword [esp + 0xa4]
or eax, ebx
add esp, 0x28
mov dword [esi], eax
mov eax, dword [esp + 0x70]
add esi, 4
dec eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
jne 0x614fbb
mov eax, dword [esp + 0x74]
dec eax
mov dword [esp + 0x74], eax
jne 0x614faf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret