Function at 0x576a2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xaf4]
mov ebx, dword [edi + 0xbc]
mov dword [ebp - 0xc], eax
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
and dword [ebp - 0x18], 0
test edx, edx
jne 0x576b5c
mov ecx, dword [edi + 0xb8]
push 3
mov eax, ecx
pop esi
div esi
test edx, edx
je 0x576b5c
and dword [ebp - 8], 0
mov esi, ecx
and esi, 1
test ebx, ebx
mov dword [ebp - 0x10], esi
jle 0x576c5c
cmp esi, ecx
mov dword [ebp - 4], esi
jge 0x576b44
imul ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov ebx, dword [edi + 0xf78]
push 0x52ddd0
push 0x52dd90
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
call fcn.00576996
cmp eax, 0xffffff9c
je 0x576cc0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, ecx
imul eax, eax, 0x78
add eax, esi
mov ebx, dword [eax]
xor ebx, edx
and ebx, 1
xor dword [eax], ebx
mov ebx, dword [eax + 0x78]
sar edx, 1
xor ebx, edx
and ebx, 1
xor dword [eax + 0x78], ebx
add ecx, dword [edi + 0xb8]
sar edx, 1
mov eax, ecx
imul eax, eax, 0x78
add eax, esi
mov ebx, dword [eax]
xor ebx, edx
and ebx, 1
xor dword [eax], ebx
mov ebx, dword [eax + 0x78]
sar edx, 1
xor ebx, edx
and ebx, 1
xor dword [eax + 0x78], ebx
add ecx, dword [edi + 0xb8]
add dword [ebp - 4], 2
imul ecx, ecx, 0x78
lea eax, [ecx + esi]
mov ecx, dword [eax]
sar edx, 1
xor ecx, edx
and ecx, 1
xor dword [eax], ecx
mov ecx, dword [eax + 0x78]
sar edx, 1
xor ecx, edx
and ecx, 1
xor dword [eax + 0x78], ecx
mov ecx, dword [edi + 0xb8]
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x14], edx
jl 0x576a91
mov esi, dword [ebp - 0x10]
add dword [ebp - 8], 3
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0xbc]
jl 0x576a86
jmp 0x576c5c
mov ecx, dword [edi + 0xb8]
mov esi, ebx
push 3
xor edx, edx
mov eax, ecx
pop ebx
div ebx
and esi, 1
cmp esi, dword [edi + 0xbc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], edx
jge 0x576c59
mov eax, dword [ebp - 0x10]
cmp eax, ecx
mov dword [ebp - 4], eax
jge 0x576c46
imul ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov ebx, dword [edi + 0xf78]
push 0x52ddd0
push 0x52dd90
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
call fcn.00576996
cmp eax, 0xffffff9c
je 0x576cc0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, ecx
imul eax, eax, 0x78
add eax, esi
mov ebx, dword [eax]
xor ebx, edx
and ebx, 1
xor dword [eax], ebx
mov ebx, dword [eax + 0x78]
sar edx, 1
xor ebx, edx
and ebx, 1
xor dword [eax + 0x78], ebx
lea eax, [ecx + 2]
imul eax, eax, 0x78
add eax, esi
mov ebx, dword [eax]
sar edx, 1
xor ebx, edx
and ebx, 1
xor dword [eax], ebx
add ecx, dword [edi + 0xb8]
add dword [ebp - 4], 3
mov eax, ecx
imul eax, eax, 0x78
add eax, esi
mov ebx, dword [eax]
add ecx, 2
sar edx, 1
imul ecx, ecx, 0x78
xor ebx, edx
and ebx, 1
xor dword [eax], ebx
mov ebx, dword [eax + 0x78]
sar edx, 1
xor ebx, edx
and ebx, 1
xor dword [eax + 0x78], ebx
lea eax, [ecx + esi]
mov ecx, dword [eax]
sar edx, 1
xor ecx, edx
and ecx, 1
xor dword [eax], ecx
mov ecx, dword [edi + 0xb8]
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x14], edx
jl 0x576b93
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0xbc]
jl 0x576b85
mov esi, dword [ebp - 0x10]
and dword [ebp - 4], 0
test esi, esi
jle 0x576cfe
mov ecx, dword [edi + 0xf78]
push 1
call fcn.0057514d
test eax, eax
je 0x576cc8
and dword [ebp - 8], 0
cmp dword [edi + 0xbc], 0
jle 0x576cf2
mov eax, dword [edi + 0xb8]
imul eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 0xf78]
imul eax, eax, 0x78
push 1
lea ebx, [eax + edx]
call fcn.0057514d
xor eax, dword [ebx]
and eax, 1
xor dword [ebx], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0xbc]
jl 0x576c86
jmp 0x576cf2
push 0xffffffffffffff9c
pop eax
jmp 0x576d68
xor ecx, ecx
cmp dword [edi + 0xbc], ecx
jle 0x576cf2
mov eax, dword [edi + 0xb8]
mov edx, dword [ebp - 0xc]
imul eax, ecx
add eax, dword [ebp - 4]
imul eax, eax, 0x78
add eax, edx
and dword [eax], 0xfffffffe
inc ecx
cmp ecx, dword [edi + 0xbc]
jl 0x576cd2
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jl 0x576c68
cmp dword [ebp - 0x18], 0
je 0x576d66
mov ecx, dword [edi + 0xf78]
push 1
call fcn.0057514d
test eax, eax
je 0x576d47
cmp esi, dword [edi + 0xb8]
mov ebx, esi
jge 0x576d66
imul esi, esi, 0x78
add esi, dword [ebp - 0xc]
mov ecx, dword [edi + 0xf78]
push 1
call fcn.0057514d
xor eax, dword [esi]
and eax, 1
xor dword [esi], eax
inc ebx
add esi, 0x78
cmp ebx, dword [edi + 0xb8]
jl 0x576d25
jmp 0x576d66
cmp esi, dword [edi + 0xb8]
mov eax, esi
jge 0x576d66
imul esi, esi, 0x78
add esi, dword [ebp - 0xc]
and dword [esi], 0xfffffffe
inc eax
add esi, 0x78
cmp eax, dword [edi + 0xb8]
jl 0x576d57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret