Function at 0x5131a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
lea ebx, [ebx - 1]
shr ebx, 0x1f
mov edx, dword [esi + 4]
dec ebx
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi + 4], edx
xor dword [eax + 4], ecx
mov edx, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi + 0xc], edx
xor dword [eax + 0xc], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [eax + 0x10]
xor ecx, edx
and ecx, ebx
and ecx, 4
xor edx, ecx
mov dword [esi + 0x10], edx
xor dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ecx - 1]
cmp edx, 9
ja case.default.0x5131fa
jmp dword [edx*4 + 0x513348]
mov edx, 0xa
mov dword [ebp + 8], edx
cmp ecx, edx
jle case.0x5131fa.10
lea ecx, [ecx]
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
lea esi, [ecx + edx*4]
mov ecx, dword [eax]
mov edx, dword [esi]
mov edi, dword [ecx + edi*4]
xor edi, edx
and edi, ebx
xor edx, edi
mov dword [esi], edx
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, dword [ebp + 0xc]
xor dword [ecx + edx*4], edi
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0x14]
jl 0x513210
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0x24]
mov esi, dword [ecx + 0x24]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x24], edx
mov ecx, dword [eax]
xor dword [ecx + 0x24], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0x20]
mov esi, dword [ecx + 0x20]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x20], edx
mov ecx, dword [eax]
xor dword [ecx + 0x20], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0x1c]
mov esi, dword [ecx + 0x1c]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x1c], edx
mov ecx, dword [eax]
xor dword [ecx + 0x1c], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0x18]
mov esi, dword [ecx + 0x18]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x18], edx
mov ecx, dword [eax]
xor dword [ecx + 0x18], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0x14]
mov esi, dword [ecx + 0x14]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x14], edx
mov ecx, dword [eax]
xor dword [ecx + 0x14], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0x10]
mov esi, dword [ecx + 0x10]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x10], edx
mov ecx, dword [eax]
xor dword [ecx + 0x10], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 0xc]
mov esi, dword [ecx + 0xc]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0xc], edx
mov ecx, dword [eax]
xor dword [ecx + 0xc], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 8]
mov esi, dword [ecx + 8]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 8], edx
mov ecx, dword [eax]
xor dword [ecx + 8], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edi + 4]
mov esi, dword [ecx + 4]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 4], edx
mov ecx, dword [eax]
xor dword [ecx + 4], esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, dword [esi]
pop edi
mov ecx, dword [ecx]
mov edx, dword [esi]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [eax]
pop esi
pop ebx
xor dword [eax], ecx
pop ebp
ret