Function at 0x10155d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
or ecx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
test cl, 3
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [edx]
mov dword [ebp + 0xc], ecx
jne 0x10155e8d
test ecx, 0xfffffffc
je 0x10155e8d
mov ebx, dword [ebx]
lea edx, [edi + 1]
mov edi, dword [ebp + 8]
and edx, 0xff
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + edx*4 + 8]
lea esi, [ecx + eax]
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + esi*4 + 8], ecx
mov dword [edi + edx*4 + 8], eax
add eax, ecx
and eax, 0xff
inc edx
and edx, 0xff
mov edi, dword [edi + eax*4 + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
and eax, 0xff
mov ecx, ebx
inc edx
and edx, 0xff
mov eax, dword [ecx + eax*4 + 8]
shl eax, 8
or edi, eax
mov eax, ecx
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
and eax, 0xff
mov ecx, ebx
mov eax, dword [ecx + eax*4 + 8]
shl eax, 0x10
or edi, eax
lea eax, [edx + 1]
and eax, 0xff
mov dword [ebp - 4], eax
mov edx, dword [ecx + eax*4 + 8]
lea eax, [edx + esi]
mov esi, ebx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + eax*4 + 8], edx
mov esi, dword [ebp - 4]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov esi, dword [ebp + 0x14]
and ecx, 0xff
mov edx, ebx
mov ebx, dword [ebp + 0x10]
add ebx, 4
mov dword [ebp + 0x10], ebx
mov ecx, dword [edx + ecx*4 + 8]
shl ecx, 0x18
or ecx, edi
mov edi, dword [ebp - 4]
xor ecx, dword [ebp - 8]
mov dword [esi], ecx
add esi, 4
mov ecx, dword [ebp + 0xc]
sub ecx, 4
mov dword [ebp + 0x14], esi
mov dword [ebp + 0xc], ecx
test ecx, 0xfffffffc
jne 0x10155d84
mov dword [ebp + 0x10], ecx
shr dword [ebp + 0x10], 3
cmp dword [ebp + 0x10], 0
je 0x101560cd
mov edi, edi
lea edx, [edi + 1]
mov edi, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [edi + edx*4 + 8]
lea esi, [ecx + eax]
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
inc edx
and edx, 0xff
mov dword [ebp - 8], edx
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx]
mov edi, dword [ebp + 0x14]
mov byte [edi], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
mov dword [ebp + 0x14], ecx
and esi, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
add eax, ecx
and eax, 0xff
mov dword [edx + esi*4 + 8], ecx
mov ecx, edx
mov edx, dword [ebp - 8]
inc edx
and edx, 0xff
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [ebx + 1]
mov byte [edi + 1], al
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
mov dword [ebp + 0x14], ecx
and esi, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
add eax, ecx
and eax, 0xff
mov dword [edx + esi*4 + 8], ecx
mov ecx, edx
mov edx, dword [ebp - 8]
inc edx
and edx, 0xff
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [ebx + 2]
mov byte [edi + 2], al
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
mov dword [ebp + 0x14], ecx
and esi, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
add eax, ecx
and eax, 0xff
mov dword [edx + esi*4 + 8], ecx
mov ecx, edx
mov edx, dword [ebp - 8]
inc edx
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [ebx + 3]
and edx, 0xff
mov byte [edi + 3], al
mov dword [ebp - 8], edx
mov eax, ecx
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
mov dword [ebp + 0x14], ecx
and esi, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ecx + edx*4 + 8], eax
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov edx, dword [ebp + 8]
and eax, 0xff
mov dword [edx + esi*4 + 8], ecx
mov ecx, edx
mov edx, dword [ebp - 8]
inc edx
and edx, 0xff
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [ebx + 4]
mov byte [edi + 4], al
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
mov dword [ebp + 0x14], ecx
and esi, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ecx + edx*4 + 8], eax
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov edx, dword [ebp + 8]
and eax, 0xff
mov dword [edx + esi*4 + 8], ecx
mov ecx, edx
mov edx, dword [ebp - 8]
inc edx
and edx, 0xff
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [ebx + 5]
mov byte [edi + 5], al
mov eax, ecx
add edi, 6
mov dword [ebp + 0x14], edi
mov edi, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
mov ecx, edi
mov edi, dword [ebp + 0x14]
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [ebx + 6]
mov byte [edi], al
inc edi
mov dword [ebp + 0x14], edi
lea edi, [edx + 1]
and edi, 0xff
mov edx, dword [ecx + edi*4 + 8]
lea eax, [edx + esi]
mov esi, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 7]
add ebx, 8
mov byte [esi], cl
inc esi
dec dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
jne 0x10155ea0
mov ecx, dword [ebp + 0xc]
and ecx, 7
mov dword [ebp + 0xc], ecx
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx]
inc ebx
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx]
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 1]
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 2]
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 3]
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 4]
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 5]
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
je 0x1015630f
mov esi, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 8]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [ebp + 0x14]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [ebx + 6]
add ebx, 7
mov byte [esi], cl
inc esi
dec dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
jne 0x10156120
mov dword [edx], edi
pop edi
pop esi
mov dword [edx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret