Function at 0x567d90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edx, dword [esi + 0x3d2e]
inc edx
mov eax, edx
mov dword [esi + 0x3d2e], edx
cmp eax, 1
jb 0x567dc8
push 0
call fcn.005769ec
mov edi, eax
call fcn.00584115
xor edi, eax
push edi
call fcn.00575aea
add esp, 8
mov ebp, dword [esp + 0x54]
push esi
push ebp
call fcn.00567d50
add esp, 8
xor edi, edi
call fcn.00575af7
mov ebx, eax
push esi
sar ebx, 7
and ebx, 0xff
call fcn.00567cd0
push esi
push ebx
mov dword [esp + 0x60], eax
call fcn.00567cf0
mov dl, byte [esp + 0x60]
add esp, 0xc
xor bl, dl
mov byte [esp + edi + 0x14], bl
inc edi
cmp edi, 0xb
jl 0x567dd8
push esi
push ebp
call fcn.00567d50
add esp, 8
xor edi, edi
lea ebx, [esp + 0x20]
push esi
call fcn.00567cd0
mov ebp, eax
xor eax, eax
mov al, byte [esp + edi + 0x18]
push esi
push eax
call fcn.00567cf0
xor ecx, ecx
add esp, 0xc
mov cl, byte [esp + edi + 0x14]
add ebx, 4
xor ecx, ebp
inc edi
mov dword [ebx - 4], ecx
cmp edi, 0xb
jl 0x567e1c
push esi
call fcn.00567cd0
mov ebx, dword [esp + 0x5c]
push esi
shr ebx, 0x18
push ebx
mov ebp, eax
call fcn.00567cf0
xor ebx, ebp
add esp, 0xc
mov dword [esp + edi*4 + 0x20], ebx
xor eax, eax
lea ecx, [esp + 0x20]
mov ebp, 0xc
mov dl, byte [ecx]
add ecx, 4
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ebp
jl 0x567e72
mov eax, dword [esi + 0x1be]
test eax, eax
je 0x567f5b
mov ecx, dword [esi + 0x1da]
mov edx, dword [esi + 0x1d2]
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov eax, dword [esi + 0x1ce]
push ecx
mov ecx, 0x20
mov dword [esp + 0x68], ebp
mov dword [esp + 0x18], 3
call fcn.0057a930
mov edx, dword [esi + 0x1ce]
push eax
mov eax, dword [esi + 0x1c6]
push edx
mov edx, dword [esi + 0x1ca]
mov ecx, 0x20
call fcn.0057a930
push eax
mov eax, dword [esi + 0x1c6]
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push 1
call dword [esi + 0x1d6]
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.0x567eff.0
jmp dword [eax*4 + 0x56800c]
cmp dword [esp + 0x60], ebp
jne case.0x567eff.0
mov ecx, dword [esi + 0x1ce]
add ecx, ebp
mov dword [esi + 0x1ce], ecx
mov eax, dword [esi + 0x1d2]
adc eax, 0
mov dword [esi + 0x1d2], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, 9
mov dword [esi + 0x8e], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [esi + 0x96]
push esi
cmp eax, 0xffffffff
jne 0x567fbf
mov edi, dword [esp + 0x60]
push ebp
push edi
push 0
call fcn.00563770
add esp, 0x10
test eax, eax
je 0x567f92
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
add esp, 0x40
ret
mov edx, dword [edi]
lea eax, [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edx
call dword [fcn.005b737c]
test eax, eax
je 0x567fb2
cmp dword [esp + 0x60], ebp
je 0x568001
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.00563f00
add esp, 4
cmp eax, ebp
jge 0x567fdd
mov eax, dword [esp + 0x5c]
push esi
push eax
call fcn.00563f40
add esp, 8
test eax, eax
jne 0x567fb7
mov eax, dword [esi + 0x96]
lea ecx, [esp + 0x60]
push 0
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push eax
call dword [fcn.005b737c]
test eax, eax
je 0x567fb2
cmp dword [esp + 0x60], ebp
jne 0x567fb2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret