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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
mov ebx, str.sshaes.c
je 0x425eb5
cmp edi, 0x18
je 0x425eb5
cmp edi, 0x20
je 0x425eb5
push 0x3b5
push ebx
push str.blocklen__16__blocklen__24__blocklen__32
call fcn.0042a600
add esp, 0xc
mov esi, dword [ebp + 0x14]
cmp esi, 0x10
je 0x425eda
cmp esi, 0x18
je 0x425eda
cmp esi, 0x20
je 0x425eda
push 0x3b6
push ebx
push str.keylen__16__keylen__24__keylen__32
call fcn.0042a600
add esp, 0xc
mov eax, esi
push 4
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, edi
cdq
idiv ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esi
cmp eax, esi
mov dword [ecx + 0x3e8], eax
mov edx, eax
jg 0x425efd
mov edx, esi
add edx, 6
cmp eax, 8
mov dword [ecx + 0x3ec], edx
jne 0x425f21
mov dword [ecx + 0x3c0], 0x426a72
mov dword [ecx + 0x3c4], 0x427ab5
jmp 0x425f55
cmp eax, 6
jne 0x425f3c
mov dword [ecx + 0x3c0], 0x426510
mov dword [ecx + 0x3c4], 0x42754d
jmp 0x425f55
cmp eax, 4
jne 0x425f55
mov dword [ecx + 0x3c0], 0x426169
mov dword [ecx + 0x3c4], 0x427196
and dword [ebp + 0xc], 0
inc edx
imul edx, eax
test edx, edx
mov dword [ebp + 0x14], 1
jle 0x4260a6
mov edx, dword [ebp + 0x10]
mov eax, esi
shl eax, 2
mov dword [ebp - 0xc], eax
lea eax, [edx + 2]
mov dword [ebp + 8], 0xfffffffe
mov edi, ecx
sub dword [ebp + 8], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], esi
jge 0x425fae
movzx ebx, byte [eax]
xor edx, edx
mov dl, byte [eax - 1]
mov dh, byte [eax - 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
shl edx, 8
or edx, ebx
mov dword [edi], edx
jmp 0x426083
mov eax, dword [ebp + 0xc]
mov ebx, dword [edi - 4]
cdq
idiv esi
mov dword [ebp - 4], ebx
test edx, edx
jne 0x426020
mov dl, byte [ebp - 2]
xor eax, eax
mov al, bh
mov esi, ebx
mov dword [ebp - 8], eax
mov eax, ebx
movzx ebx, byte [edx + str.cw]
mov edx, dword [ebp - 8]
xor ebx, dword [ebp + 0x14]
and eax, 0xff
movzx edx, byte [edx + str.cw]
movzx eax, byte [eax + str.cw]
shl ebx, 8
or ebx, edx
mov edx, dword [ebp + 0x14]
shr esi, 0x18
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + str.cw]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x14]
and al, 0x80
neg al
sbb eax, eax
and edx, 0x7f
and eax, 0x1b
shl edx, 1
xor eax, edx
mov dword [ebp + 0x14], eax
jmp 0x42606d
cmp edx, 4
jne 0x42606d
cmp esi, 6
jle 0x42606d
xor eax, eax
xor edx, edx
mov al, byte [ebp - 2]
mov esi, eax
xor eax, eax
mov al, bh
mov dword [ebp - 8], eax
mov eax, ebx
shr ebx, 0x18
and eax, 0xff
mov dh, byte [ebx + str.cw]
mov dl, byte [esi + str.cw]
mov esi, dword [ebp - 8]
movzx eax, byte [eax + str.cw]
movzx esi, byte [esi + str.cw]
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov eax, dword [eax + ecx]
xor eax, ebx
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3ec]
inc dword [ebp + 0xc]
add eax, 4
add edi, 4
inc edx
mov dword [ebp + 0x10], eax
imul edx, dword [ecx + 0x3e8]
cmp dword [ebp + 0xc], edx
jl 0x425f89
xor edi, edi
cmp dword [ecx + 0x3ec], edi
jl 0x426164
mov esi, dword [ecx + 0x3e8]
and dword [ebp + 0xc], 0
test esi, esi
jle 0x426157
mov edx, dword [ecx + 0x3ec]
mov eax, edx
sub eax, edi
imul eax, esi
add eax, dword [ebp + 0xc]
test edi, edi
mov eax, dword [ecx + eax*4]
mov dword [ebp + 0x14], eax
je 0x426136
cmp edi, edx
je 0x426136
xor edx, edx
xor ebx, ebx
mov dl, byte [ebp + 0x16]
mov bl, ah
mov dword [ebp + 0x14], edx
mov edx, eax
movzx ebx, byte [ebx + str.cw]
shr eax, 0x18
and edx, 0xff
movzx eax, byte [eax + str.cw]
movzx edx, byte [edx + str.cw]
mov eax, dword [eax*4 + 0x438f80]
xor eax, dword [ebx*4 + 0x439780]
xor eax, dword [edx*4 + 0x439b80]
mov edx, dword [ebp + 0x14]
movzx edx, byte [edx + str.cw]
xor eax, dword [edx*4 + 0x439380]
mov edx, edi
imul edx, esi
add edx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [ecx + edx*4 + 0x1e0], eax
mov esi, dword [ecx + 0x3e8]
cmp dword [ebp + 0xc], esi
jl 0x4260c6
inc edi
cmp edi, dword [ecx + 0x3ec]
jle 0x4260b4
pop edi
pop esi
pop ebx
leave
ret