Function at 0x560990
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x6c]
lea ecx, [ebp + 0xf]
shr ecx, 4
and ebp, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x34], ebp
test ecx, ecx
je 0x560cfb
push ebx
lea ebx, [ecx - 1]
xor eax, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x560b8e
mov eax, dword [esp + 0x20]
mov ecx, edx
sub eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
nop dword [eax]
movups xmm0, xmmword [eax + ecx]
movzx edi, byte [edi]
mov ebx, edi
shl ebx, 4
add ebx, esi
lea ecx, [edi + 3]
add ecx, ecx
lea eax, [edi + 2]
add eax, eax
mov ebp, dword [ebx + 0x3c]
and ebp, dword [ebx + 0x2c]
mov edx, dword [esi + ecx*8]
and edx, dword [esi + eax*8]
mov ecx, dword [esi + ecx*8 + 4]
and ecx, dword [esi + eax*8 + 4]
lea eax, [edi + 4]
xor ebp, dword [ebx + 0x4c]
add eax, eax
xor ebp, dword [ebx + 0x1c]
movups xmmword [esp + 0x3c], xmm0
xor ebp, dword [esp + 0x48]
xor ecx, dword [esi + eax*8 + 4]
xor ecx, dword [ebx + 0x14]
xor edx, dword [esi + eax*8]
xor edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x40]
xor eax, ecx
movd edi, xmm0
mov ecx, dword [ebx + 0x38]
and ecx, dword [ebx + 0x28]
xor ecx, dword [ebx + 0x48]
xor edi, edx
xor ecx, dword [ebx + 0x18]
xor ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ebp
mov bl, byte [eax]
movzx ecx, byte [eax]
shr bl, 3
dec bl
shl ecx, 4
and bl, 1
shl bl, 3
movzx edi, bl
shl edi, 4
add edi, esi
lea eax, [edi + 0x40]
push eax
lea eax, [esi + 0x40]
add eax, ecx
push eax
lea eax, [esi + 0x30]
add eax, ecx
push eax
call fcn.00562a90
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax]
lea eax, [edi + 0x30]
push eax
shl ecx, 4
lea eax, [esi + 0x30]
add eax, ecx
push eax
lea eax, [esi + 0x20]
add eax, ecx
push eax
call fcn.00562a90
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax]
lea eax, [edi + 0x20]
push eax
shl ecx, 4
lea eax, [esi + 0x20]
add eax, ecx
push eax
lea eax, [esi + 0x10]
add eax, ecx
push eax
call fcn.00562a90
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax]
lea eax, [edi + 0x10]
shl ecx, 4
add ecx, esi
push eax
lea eax, [ecx + 0x10]
push eax
push ecx
call fcn.00562a90
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
push edi
movzx ecx, byte [eax]
shl ecx, 4
add ecx, esi
mov eax, dword [ecx + 4]
xor eax, dword [esp + 0x60]
xor edx, dword [ecx]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0xc]
xor eax, ebp
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x64]
xor edx, dword [ecx + 8]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
push eax
lea eax, [ecx + 0x40]
mov dword [esp + 0x8c], edx
push eax
call fcn.00562a90
mov edi, dword [esp + 0x4c]
add esp, 0x3c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add ecx, 0x10
sub dword [esp + 0x1c], 1
mov byte [edi], bl
mov dword [esp + 0x18], ecx
jne 0x560a00
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
shl eax, 4
mov dword [esp + 0x14], eax
add eax, dword [esp + 0x20]
test ebp, ebp
je 0x560c4a
push ebp
push eax
xorps xmm0, xmm0
lea eax, [esp + 0x44]
push eax
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
call fcn.005be280
movzx edi, byte [edi]
mov ebx, edi
shl ebx, 4
add ebx, esi
lea ecx, [edi + 3]
add ecx, ecx
lea eax, [edi + 2]
add eax, eax
push ebp
mov edx, dword [esi + ecx*8]
and edx, dword [esi + eax*8]
mov ecx, dword [esi + ecx*8 + 4]
and ecx, dword [esi + eax*8 + 4]
lea eax, [edi + 4]
add eax, eax
xor ecx, dword [esi + eax*8 + 4]
xor edx, dword [esi + eax*8]
mov eax, dword [ebx + 0x3c]
and eax, dword [ebx + 0x2c]
xor eax, dword [ebx + 0x4c]
xor ecx, dword [ebx + 0x14]
xor eax, dword [ebx + 0x1c]
xor dword [esp + 0x50], ecx
xor dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
mov ecx, dword [ebx + 0x38]
and ecx, dword [ebx + 0x28]
xor ecx, dword [ebx + 0x48]
xor edx, dword [ebx + 0x10]
xor ecx, dword [ebx + 0x18]
xor dword [esp + 0x4c], edx
xor dword [esp + 0x54], ecx
push eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x28]
push eax
call fcn.005be280
mov eax, 0x10
sub eax, ebp
push eax
lea eax, [esp + 0x58]
add eax, ebp
push 0
push eax
call fcn.005be800
add esp, 0x24
jmp 0x560cd9
movzx edi, byte [edi]
movups xmm0, xmmword [eax]
mov ebp, dword [esp + 0x24]
mov ebx, edi
shl ebx, 4
lea ecx, [edi + 3]
add ebx, esi
add ecx, ecx
lea eax, [edi + 2]
add eax, eax
movups xmmword [esp + 0x3c], xmm0
mov edx, dword [esi + ecx*8]
and edx, dword [esi + eax*8]
mov ecx, dword [esi + ecx*8 + 4]
and ecx, dword [esi + eax*8 + 4]
lea eax, [edi + 4]
add eax, eax
movd edi, xmm0
xor edx, dword [esi + eax*8]
xor ecx, dword [esi + eax*8 + 4]
xor edx, dword [ebx + 0x10]
xor ecx, dword [ebx + 0x14]
xor edi, edx
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 0x3c]
xor edx, ecx
mov ecx, dword [ebx + 0x38]
and ecx, dword [ebx + 0x28]
and eax, dword [ebx + 0x2c]
xor ecx, dword [ebx + 0x48]
xor eax, dword [ebx + 0x4c]
xor ecx, dword [ebx + 0x18]
xor eax, dword [ebx + 0x1c]
xor ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
xor eax, dword [esp + 0x48]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [ebx + ebp], edi
mov dword [ebx + ebp + 4], edx
mov dword [ebx + ebp + 8], ecx
mov dword [ebx + ebp + 0xc], eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x18]
call fcn.00562620
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
pop ebx
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005bca10
add esp, 0x50
ret