Function at 0x56f52c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
je 0x56f757
mov edx, dword [ebp + 0x18]
mov dword [esp], edx
call fcn.0050dbd8
mov ecx, dword [ebp + 0x18]
mov dword [esp], ecx
call fcn.0050dd48
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x56f753
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
add ebx, dword [edx + 4]
add ebx, 4
mov ecx, dword [ebp - 0x4c]
cmp ebx, dword [ecx + 8]
jg 0x56f73f
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], ebx
test ebx, ebx
jle 0x56f598
mov edx, dword [eax]
xor eax, eax
nop
mov dword [edx + eax*4], 0
inc eax
cmp ebx, eax
jg 0x56f58c
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
test ecx, ecx
jle 0x56f6c6
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
lea esi, [ebp - 0x30]
lea esi, [esi]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x54]
mov ebx, dword [edx + ebx]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x58]
inc ebx
cmp ecx, ebx
je 0x56f733
mov ebx, dword [ebp - 0x54]
mov edx, dword [edx + ebx + 4]
mov dword [ebp - 0x44], edx
test eax, eax
jle 0x56f6b5
mov edx, dword [ebp - 0x44]
xor edx, dword [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
lea esi, [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx + ebx*4]
mov dword [ebp - 0x40], ecx
lea ecx, [ebx + 1]
cmp eax, ecx
je 0x56f72c
mov edi, dword [edx + ecx*4]
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov ecx, edi
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.0056ee00
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov ecx, dword [ebp - 0x40]
mov edx, esi
lea eax, [ebp - 0x2c]
call fcn.0056ee00
mov ecx, dword [ebp - 0x40]
xor ecx, edi
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.0056ee00
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x28]
xor eax, ecx
xor eax, edi
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x30]
xor ecx, edi
xor ecx, edx
xor ecx, dword [ebp - 0x20]
xor ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
add eax, dword [ecx]
xor ecx, ecx
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 4
je 0x56f69a
mov edx, dword [esi + ecx*4]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 4
jne 0x56f68c
add ebx, 2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add dword [ebp - 0x3c], 8
cmp eax, ebx
jg 0x56f600
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
add dword [ebp - 0x58], 2
add dword [ebp - 0x54], 8
cmp ecx, dword [ebp - 0x58]
jg 0x56f5c0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
test eax, eax
jle 0x56f6f2
lea edx, [eax*4 - 4]
mov ecx, dword [ebp - 0x4c]
add edx, dword [ecx]
jmp 0x56f6e3
dec eax
je 0x56f6ec
mov ecx, dword [edx]
sub edx, 4
test ecx, ecx
je 0x56f6e0
mov ebx, dword [ebp - 0x4c]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x4c]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.0056f0a0
test eax, eax
setne al
movzx eax, al
mov ebx, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [ebp - 0x5c], eax
call fcn.0050dcdc
mov eax, dword [ebp - 0x5c]
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
xor edi, edi
jmp 0x56f619
mov dword [ebp - 0x44], 0
jmp 0x56f5e4
mov dword [esp + 4], ebx
mov dword [esp], ecx
call fcn.0050a0ec
test eax, eax
jne 0x56f57d
xor eax, eax
jmp 0x56f713
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0056f3a8
jmp 0x56f724