Function at 0x100553ba
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 4], 0
je 0x10055721
mov edx, dword [ebp + 8]
push ebx
push edi
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 3]
or ebx, eax
movzx eax, byte [edx + 5]
shl eax, 0x10
or ecx, eax
xor ebx, dword [esi + 8]
movzx eax, byte [edx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 7]
or ecx, eax
movzx eax, byte [edx + 9]
xor ecx, dword [esi + 0xc]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 8]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xa]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
or ecx, eax
movzx eax, byte [edx + 0xd]
xor ecx, dword [esi + 0x10]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xe]
shl eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [edx + 0xf]
mov edx, dword [ebp + 8]
or edx, eax
or edx, ecx
mov ecx, dword [esi + 0x3d0]
xor edx, dword [esi + 0x14]
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ecx
cmp ecx, 1
jle 0x100555a5
lea eax, [esi + 0x30]
dec ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
mov eax, edx
mov edx, dword [ebp - 4]
sar eax, 8
movzx ecx, al
mov eax, dword [ebp - 8]
sar eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x10254d30]
xor edi, dword [eax*4 + 0x10254930]
mov eax, edx
sar eax, 0x18
movzx eax, al
xor edi, dword [eax*4 + 0x10254530]
movzx eax, bl
xor edi, dword [eax*4 + 0x10255130]
mov eax, dword [ebp - 0xc]
xor edi, dword [eax - 4]
mov eax, dword [ebp + 8]
sar eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 8]
sar eax, 0x18
movzx eax, al
mov esi, dword [ecx*4 + 0x10254930]
xor esi, dword [eax*4 + 0x10254530]
mov eax, ebx
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x10254d30]
movzx eax, dl
xor esi, dword [eax*4 + 0x10255130]
mov eax, dword [ebp - 0xc]
xor esi, dword [eax]
mov eax, dword [ebp + 8]
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x10254530]
mov ecx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x10254d30]
mov eax, ebx
sar eax, 0x10
movzx eax, al
sar ebx, 0x18
mov dword [ebp - 8], esi
xor edx, dword [eax*4 + 0x10254930]
movzx eax, cl
sar ecx, 8
movzx ecx, cl
xor edx, dword [eax*4 + 0x10255130]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10254d30]
xor edx, dword [eax + 4]
mov eax, dword [ebp - 4]
sar eax, 0x10
movzx eax, al
mov dword [ebp - 4], edi
xor ecx, dword [eax*4 + 0x10254930]
movzx eax, bl
xor ecx, dword [eax*4 + 0x10254530]
mov eax, dword [ebp + 8]
movzx eax, al
mov dword [ebp + 8], edx
xor ecx, dword [eax*4 + 0x10255130]
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax - 8]
add eax, 0x20
sub dword [ebp - 0x18], 1
mov ebx, ecx
mov dword [ebp - 0xc], eax
jne 0x10055487
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
shl ecx, 5
mov eax, ebx
sar eax, 0x18
movzx eax, al
mov dword [ebp - 0x10], ecx
mov edx, dword [ecx + esi + 8]
mov ecx, edx
mov esi, dword [ebp + 0xc]
sar ecx, 0x18
xor cl, byte [eax + str.cw]
mov eax, dword [ebp - 4]
sar eax, 0x10
movzx eax, al
mov byte [esi], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, dword [ebp - 8]
sar eax, 8
movzx eax, al
mov byte [esi + 1], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [ebp + 8]
movzx eax, al
mov byte [esi + 2], cl
mov al, byte [eax + str.cw]
xor al, dl
mov edx, dword [ebp - 0x14]
mov byte [esi + 3], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + edx + 0xc]
mov ecx, edx
mov eax, dword [ebp - 4]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + str.cw]
mov eax, dword [ebp - 8]
sar eax, 0x10
movzx eax, al
mov byte [esi + 4], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, dword [ebp + 8]
sar eax, 8
movzx eax, al
mov byte [esi + 5], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + str.cw]
movzx eax, bl
mov byte [esi + 6], cl
mov al, byte [eax + str.cw]
xor al, dl
mov edx, dword [ebp - 0x10]
mov byte [esi + 7], al
mov eax, dword [ebp - 0x14]
mov edx, dword [edx + eax + 0x10]
mov ecx, edx
mov eax, dword [ebp - 8]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + str.cw]
mov eax, dword [ebp + 8]
sar eax, 0x10
mov byte [esi + 8], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + str.cw]
mov eax, ebx
sar eax, 8
mov byte [esi + 9], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, al
mov byte [esi + 0xa], cl
mov ecx, dword [ebp - 0x10]
sar ebx, 0x10
mov al, byte [eax + str.cw]
xor al, dl
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0x14]
pop edi
mov edx, dword [ecx + eax + 0x14]
mov ecx, edx
mov eax, dword [ebp + 8]
sar eax, 0x18
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + str.cw]
mov byte [esi + 0xc], cl
mov ecx, edx
movzx eax, bl
sar ecx, 0x10
pop ebx
xor cl, byte [eax + str.cw]
mov eax, dword [ebp - 4]
sar eax, 8
movzx eax, al
mov byte [esi + 0xd], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + str.cw]
xor al, dl
mov byte [esi + 0xf], al
pop esi
leave
ret 8