Function at 0x56c1a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.004ff310
mov eax, dword [0x62acc0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ebp
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
test bl, 0x40
jne 0x56c1f4
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x34], edx
cmp edx, 0xf
jae 0x56c223
nop
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x56c210
movzx eax, byte [esi + 0xf]
mov ebx, dword [esp + 0x5c]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x56c24a
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004fe8dc
add esp, 0x40
ret
lea eax, [ebx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x56c282
ja 0x56c26b
cmp dword [esi + 0x20], 0
jbe 0x56c282
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004fe8dc
add esp, 0x40
ret
push edi
mov edi, dword [esp + 0x58]
cmp ebx, 0x10
jb 0x56c324
mov eax, ebx
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x1c], eax
nop dword [eax]
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [esp + 0x14]
mov eax, dword [edi + 8]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push esi
call dword [esp + 0x30]
add esp, 0x18
mov ecx, 8
dec ecx
add byte [ecx + esi + 8], 1
jne 0x56c2e2
test ecx, ecx
jne 0x56c2d6
mov ecx, dword [edi]
sub ebx, 0x10
mov eax, dword [edi + 4]
xor ecx, dword [esp + 0x3c]
xor eax, dword [esp + 0x40]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add edi, 0x10
xor ecx, dword [esp + 0x44]
xor eax, dword [esp + 0x48]
mov dword [ebp + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x1c], 1
jne 0x56c2a0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x1c], edi
test ebx, ebx
je 0x56c433
xor ecx, ecx
test ebx, ebx
je 0x56c342
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x56c336
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push eax
call dword [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push esi
call dword [esp + 0x30]
add esp, 0x18
xor edx, edx
test ebx, ebx
je 0x56c433
cmp ebx, 0x20
jb 0x56c411
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0x3b]
add ecx, ebx
cmp ebp, eax
ja 0x56c38c
lea eax, [esp + 0x3c]
cmp ecx, eax
jae 0x56c411
lea eax, [edi - 1]
add eax, ebx
cmp ebp, eax
ja 0x56c399
cmp ecx, edi
jae 0x56c411
mov eax, ebx
mov ecx, ebx
lea ebx, [esp + 0x3c]
and eax, 0x1f
sub ebx, edi
mov esi, ebp
mov dword [esp + 0x28], ebx
sub esi, edi
sub ecx, eax
mov dword [esp + 0x24], esi
lea ebx, [esp + 0x4c]
mov eax, edi
sub ebx, edi
mov dword [esp + 0x2c], ebx
lea ebx, [ebp + 0x10]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov ebx, esi
movups xmm0, xmmword [eax]
mov esi, dword [esp + 0x30]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [eax + edi - 0x20]
pxor xmm1, xmm0
movups xmmword [esi + edx], xmm1
mov esi, dword [esp + 0x34]
add edx, 0x20
cmp edx, ecx
jb 0x56c3d1
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x20]
cmp edx, ebx
jae 0x56c433
lea eax, [esp + 0x3c]
sub edi, eax
sub ebp, eax
nop dword [eax]
lea ecx, [esp + 0x3c]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, ebx
jb 0x56c420
mov edx, dword [esp + 0x38]
cmp edx, 0x10
jae 0x56c456
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x24]
mov eax, dword [esp + 0x48]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x40]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x48]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x4c]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fe8dc
add esp, 0x40
ret