Function at 0x550420
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
test eax, eax
mov ebx, ecx
jne 0x550451
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp + 8], str.Empty_key
call fcn.00710a10
lea ecx, [ebp - 0x14]
push 0x759bd0
push ecx
call fcn.00710828
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
je 0x550484
cmp eax, 0x18
je 0x550484
cmp eax, 0x20
je 0x550484
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
push edx
mov dword [ebp + 8], str.Incorrect_key_length
call fcn.00710a10
lea eax, [ebp - 0x14]
push 0x759bd0
push eax
call fcn.00710828
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x10
je 0x5504b7
cmp ecx, 0x18
je 0x5504b7
cmp ecx, 0x20
je 0x5504b7
lea ecx, [ebp + 8]
mov dword [ebp + 8], str.Incorrect_block_length
push ecx
lea ecx, [ebp - 0x14]
call fcn.00710a10
lea edx, [ebp - 0x14]
push 0x759bd0
push edx
call fcn.00710828
mov dword [ebx + 0x3c8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x3cc], ecx
push esi
mov edx, ecx
push edi
mov esi, eax
lea edi, [ebx + 0x3d4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov esi, eax
mov eax, ecx
lea edi, [ebx + 0x3f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x3c8]
cmp eax, 0x10
je 0x550531
cmp eax, 0x18
je 0x550516
mov dword [ebx + 0x3d0], 0xe
jmp 0x550556
mov ecx, dword [ebx + 0x3cc]
sub ecx, 0x20
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 0xe
mov dword [ebx + 0x3d0], ecx
jmp 0x550556
mov eax, dword [ebx + 0x3cc]
cmp eax, 0x10
jne 0x550543
mov eax, 0xa
jmp 0x550550
sub eax, 0x18
neg eax
sbb eax, eax
and eax, 2
add eax, 0xc
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
add eax, edx
xor edx, edx
mov ecx, eax
mov eax, dword [ebx + 0x3d0]
sar ecx, 2
test eax, eax
mov dword [ebp + 0x10], ecx
jl 0x550594
lea esi, [ebx + 8]
test ecx, ecx
jle 0x550586
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x550579
mov eax, dword [ebx + 0x3d0]
xor edx, edx
test eax, eax
jl 0x5505c1
lea esi, [ebx + 0x1e8]
test ecx, ecx
jle 0x5505b3
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x5505a6
mov eax, dword [ebx + 0x3d0]
lea edi, [ebx + 0x414]
inc eax
imul eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add eax, edx
mov esi, eax
mov eax, dword [ebp + 8]
sar esi, 2
test esi, esi
mov dword [ebp - 8], esi
jle 0x550624
mov dword [ebp + 8], esi
xor edx, edx
add edi, 4
mov dl, byte [eax]
shl edx, 0x18
mov dword [edi - 4], edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or dword [edi - 4], edx
inc eax
xor edx, edx
mov dh, byte [eax]
or dword [edi - 4], edx
inc eax
xor edx, edx
mov dl, byte [eax]
or dword [edi - 4], edx
mov edx, dword [ebp + 8]
inc eax
dec edx
mov dword [ebp + 8], edx
jne 0x5505f2
xor edi, edi
test esi, esi
jle 0x550686
lea eax, [ebx + 0x414]
mov dword [ebp + 0x14], eax
cmp edi, dword [ebp + 0xc]
jge 0x550819
mov eax, edi
cdq
idiv ecx
mov dword [ebp + 8], eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
lea edx, [edx + eax*8]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebx + edx*4 + 8], eax
mov edx, dword [ebx + 0x3d0]
mov eax, dword [ebp + 8]
sub edx, eax
mov eax, dword [ebp - 4]
inc edi
lea edx, [eax + edx*8]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebx + edx*4 + 0x1e8], eax
mov edx, dword [ebp + 0x14]
add edx, 4
cmp edi, esi
mov dword [ebp + 0x14], edx
jl 0x550633
cmp edi, dword [ebp + 0xc]
jge 0x550819
mov dword [ebp + 0x14], 0x742c60
mov eax, dword [ebx + esi*4 + 0x410]
xor ecx, ecx
mov dword [ebp + 8], eax
mov cl, byte [ebp + 0xa]
movsx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 0x14]
movsx ecx, byte [ecx]
xor edx, ecx
xor ecx, ecx
mov cl, ah
xor eax, eax
shl edx, 8
mov al, byte [ecx + str.cw]
xor ecx, ecx
xor edx, eax
mov eax, dword [ebp + 8]
and eax, 0xff
shl edx, 8
mov cl, byte [eax + str.cw]
xor eax, eax
mov al, byte [ebp + 0xb]
xor edx, ecx
xor ecx, ecx
mov cl, byte [eax + str.cw]
mov eax, dword [ebx + 0x414]
shl edx, 8
xor edx, ecx
mov ecx, dword [ebp + 0x14]
xor eax, edx
inc ecx
cmp esi, 8
mov dword [ebx + 0x414], eax
mov dword [ebp + 0x14], ecx
je 0x550728
cmp esi, 1
jle 0x5507b0
lea eax, [ebx + 0x418]
lea ecx, [esi - 1]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x550718
jmp 0x5507b0
lea eax, [ebx + 0x418]
mov ecx, 3
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x550733
mov eax, dword [ebx + 0x420]
xor ecx, ecx
mov dword [ebp + 8], eax
mov cl, byte [ebp + 0xb]
xor eax, eax
movsx edx, byte [ecx + str.cw]
mov al, byte [ebp + 0xa]
xor ecx, ecx
shl edx, 8
mov cl, byte [eax + str.cw]
xor eax, eax
mov al, byte [ebp + 9]
xor edx, ecx
xor ecx, ecx
mov cl, byte [eax + str.cw]
mov eax, dword [ebp + 8]
shl edx, 8
xor edx, ecx
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + str.cw]
mov eax, dword [ebx + 0x424]
shl edx, 8
xor edx, ecx
mov ecx, 3
xor eax, edx
mov dword [ebx + 0x424], eax
lea eax, [ebx + 0x428]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x5507a5
test esi, esi
mov dword [ebp - 4], 0
jle 0x55080d
lea ecx, [ebx + 0x414]
cmp edi, dword [ebp + 0xc]
jge 0x550816
mov esi, dword [ebp + 0x10]
mov eax, edi
cdq
idiv esi
add ecx, 4
mov dword [ebp + 8], eax
mov eax, edi
cdq
idiv esi
mov eax, dword [ebp + 8]
mov esi, dword [ecx - 4]
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 8], esi
mov eax, dword [ebx + 0x3d0]
mov esi, dword [ebp + 8]
sub eax, esi
mov esi, dword [ebp - 8]
lea edx, [edx + eax*8]
mov eax, dword [ecx - 4]
mov dword [ebx + edx*4 + 0x1e8], eax
mov eax, dword [ebp - 4]
inc eax
inc edi
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x5507c1
cmp edi, dword [ebp + 0xc]
jl 0x550696
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx + 0x3d0]
mov eax, 1
cmp edx, eax
mov dword [ebp + 0x14], eax
jle 0x550896
lea esi, [ebx + 0x208]
mov dword [ebp + 0xc], esi
test ecx, ecx
jle 0x55087c
mov edi, ecx
mov eax, dword [esi]
xor ecx, ecx
mov dword [ebp + 8], eax
mov cl, byte [ebp + 0xb]
xor edx, edx
add esi, 4
mov dl, byte [ebp + 0xa]
mov ecx, dword [ecx*4 + 0x741c40]
xor ecx, dword [edx*4 + 0x742040]
xor edx, edx
mov dl, ah
and eax, 0xff
xor ecx, dword [edx*4 + 0x742440]
mov edx, dword [eax*4 + 0x742840]
xor ecx, edx
dec edi
mov dword [esi - 4], ecx
jne 0x55083a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x3d0]
inc eax
add esi, 0x20
cmp eax, edx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], esi
jl 0x550834
pop edi
mov byte [ebx + 4], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10