Function at 0x553e30
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, 0x38
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 4]
test al, al
jne 0x553e5d
push 0x771bd8
lea ecx, [ebp - 0x38]
call fcn.00714ba1
lea eax, [ebp - 0x38]
push 0x75de60
push eax
call fcn.00714a95
mov eax, dword [ebx + 0x3cc]
cmp eax, 0x10
jne 0x553e80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
mov ecx, ebx
call fcn.005536f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
cmp edi, 4
mov dword [ebp - 4], edi
jne 0x553e97
xor eax, eax
jmp 0x553ea0
xor eax, eax
cmp edi, 6
setne al
inc eax
shl eax, 5
test edi, edi
mov edx, dword [eax + 0x746d20]
mov ecx, dword [eax + 0x746d28]
mov eax, dword [eax + 0x746d30]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], ecx
lea eax, [ebx + 0x454]
jle 0x553f20
mov esi, dword [ebp + 8]
lea ecx, [ebx + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
xor edx, edx
xor ecx, ecx
mov dl, byte [esi]
shl edx, 0x18
inc esi
mov dword [eax], edx
mov cl, byte [esi]
shl ecx, 0x10
or edx, ecx
inc esi
mov dword [eax], edx
mov ecx, dword [eax]
xor edx, edx
mov dh, byte [esi]
or ecx, edx
inc esi
xor edx, edx
mov dword [eax], ecx
mov dl, byte [esi]
mov ecx, eax
or dword [eax], edx
mov edx, dword [ebp - 8]
inc esi
add eax, 4
mov edx, dword [edx]
xor dword [ecx], edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add edx, 4
dec ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ecx
jne 0x553ed4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebx + 0x3d0]
mov eax, 1
cmp esi, eax
mov dword [ebp - 0x1c], eax
jle 0x55402e
lea eax, [ebx + 0x28]
mov dword [ebp + 8], eax
test edi, edi
jle 0x553ffa
lea eax, [ebx + 0x434]
mov esi, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, ecx
mov ecx, dword [ebp - 0x20]
sub eax, edx
sub ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], edi
jmp 0x553f6f
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
add eax, esi
cdq
idiv edi
mov eax, edx
xor edx, edx
mov dl, byte [ebx + eax*4 + 0x455]
lea eax, [ecx + esi]
mov dword [ebp - 0x2c], edx
cdq
idiv dword [ebp - 4]
mov eax, esi
mov ecx, dword [ebx + edx*4 + 0x454]
mov edx, dword [ebp - 0x2c]
and ecx, 0xff
mov edi, dword [edx*4 + 0x7444d8]
xor edi, dword [ecx*4 + 0x7448d8]
cdq
idiv dword [ebp - 4]
xor eax, eax
mov al, byte [ebx + edx*4 + 0x456]
mov ecx, dword [eax*4 + 0x7440d8]
mov eax, dword [ebp - 8]
xor edi, ecx
xor ecx, ecx
mov cl, byte [eax + 0x23]
add eax, 4
mov dword [ebp - 8], eax
mov edx, dword [ecx*4 + 0x743cd8]
mov ecx, dword [ebp - 0x10]
xor edi, edx
mov edx, dword [ecx]
add ecx, 4
xor edi, edx
inc esi
mov dword [eax - 4], edi
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
jne 0x553f69
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, edi
lea esi, [ebx + 0x434]
lea edi, [ebx + 0x454]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x3d0]
mov edi, dword [ebp - 4]
inc eax
add esi, 0x20
cmp eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp + 8], esi
jl 0x553f3c
test edi, edi
mov dword [ebp - 0xc], 0
jle 0x554106
mov esi, dword [ebp + 0xc]
lea eax, [ebx + 0x454]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x20]
sub edx, ecx
sub eax, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov edx, dword [ebx + 0x3d0]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebx + ecx*4 + 8]
mov dl, byte [eax + 3]
mov eax, ecx
mov dl, byte [edx + 0x743ad8]
sar eax, 0x18
xor dl, al
mov eax, dword [ebp - 0x2c]
mov byte [esi], dl
mov edx, dword [ebp + 8]
add eax, edx
inc esi
cdq
idiv edi
xor eax, eax
mov al, byte [ebx + edx*4 + 0x456]
mov edx, ecx
sar edx, 0x10
mov al, byte [eax + 0x743ad8]
xor al, dl
mov byte [esi], al
mov eax, dword [ebp + 8]
cdq
idiv edi
xor eax, eax
inc esi
mov al, byte [ebx + edx*4 + 0x455]
mov edx, ecx
sar edx, 8
mov al, byte [eax + 0x743ad8]
xor al, dl
mov edx, dword [ebp - 0x28]
mov byte [esi], al
mov eax, dword [ebp + 8]
add eax, edx
inc esi
cdq
idiv edi
mov edx, dword [ebx + edx*4 + 0x454]
and edx, 0xff
mov al, byte [edx + 0x743ad8]
mov edx, dword [ebp + 8]
xor al, cl
mov ecx, dword [ebp + 0xc]
mov byte [esi], al
mov eax, dword [ebp - 0xc]
inc esi
inc eax
add ecx, 4
inc edx
cmp eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
jl 0x554059
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8