Function at 0x591ac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea ebx, [ebx - 1]
shr ebx, 0x1f
mov edx, dword [ebp + 4]
dec ebx
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [ebp + 4], edx
xor dword [eax + 4], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [ebp + 0xc], edx
xor dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
xor ecx, edx
and ecx, ebx
and ecx, 4
xor edx, ecx
mov dword [ebp + 0x10], edx
xor dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x20]
lea edx, [ecx - 1]
cmp edx, 9
ja case.default.0x591b1c
jmp dword [edx*4 + 0x591c58]
mov edx, 0xa
mov dword [esp + 0x14], edx
cmp ecx, edx
jle case.0x591b1c.10
mov ecx, dword [ebp]
mov edi, dword [esp + 0x14]
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 [esp + 0x14]
mov ecx, dword [eax]
xor dword [ecx + edx*4], edi
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x20]
jl 0x591b30
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x24]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x20]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x1c]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x18]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x14]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x10]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0xc]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 8]
mov edx, dword [edi + 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 ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 4]
mov edx, dword [edi + 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]
mov ecx, dword [eax]
pop edi
mov edx, dword [esi]
mov ecx, dword [ecx]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [eax]
pop esi
pop ebp
pop ebx
xor dword [eax], ecx
ret