Function at 0x5704e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44
call fcn.005c85a0
mov eax, dword [0x679dc8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebx
mov dl, byte [edi]
lea esi, [edi + 0x20]
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
test dl, 0x40
jne 0x570540
push eax
lea eax, [edi + 0x10]
push eax
push edi
call ecx
mov eax, dword [esi + 4]
add esp, 0xc
add dword [esi], 1
mov dl, byte [esp + 0x13]
adc eax, 0
mov dword [esi + 4], eax
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [edi], al
mov dword [esp + 0x3c], edx
cmp edx, 0xf
jae 0x570576
nop word [eax + eax]
movzx eax, byte [edi + edx]
or ecx, eax
mov byte [edi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x570560
lea esi, [edi + 0x20]
movzx eax, byte [edi + 0xf]
mov ebp, dword [esp + 0x64]
or ecx, eax
mov byte [edi + 0xf], 1
cmp ecx, ebp
je 0x57059e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005c7d0a
add esp, 0x44
ret
lea eax, [ebp + 0xf]
or eax, 8
shr eax, 3
add dword [esi], eax
adc dword [esi + 4], 0
cmp dword [esi + 4], 0x20000000
jb 0x5705d5
ja 0x5705bd
cmp dword [esi], 0
jbe 0x5705d5
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005c7d0a
add esp, 0x44
ret
mov esi, dword [esp + 0x5c]
lea ecx, [edi + 0x10]
cmp ebp, 0x10
jb 0x570679
mov eax, ebp
lea edx, [edi + 0x18]
shr eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esi]
xor dword [ecx], eax
mov eax, dword [esi + 4]
xor dword [ecx + 4], eax
push dword [esp + 0x1c]
mov eax, dword [esi + 8]
xor dword [edx], eax
mov eax, dword [esi + 0xc]
xor dword [edx + 4], eax
push ecx
push ecx
call dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x50]
push eax
push edi
call dword [esp + 0x2c]
add esp, 0x18
mov ecx, 8
dec ecx
add byte [ecx + edi + 8], 1
jne 0x570632
test ecx, ecx
jne 0x570626
mov eax, dword [esi + 4]
lea edx, [edi + 0x18]
mov ecx, dword [esp + 0x40]
sub ebp, 0x10
xor ecx, dword [esi]
xor eax, dword [esp + 0x44]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x48]
mov dword [ebx + 4], eax
xor ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add esi, 0x10
xor eax, dword [esp + 0x4c]
mov dword [ebx + 8], ecx
lea ecx, [edi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x18], 1
jne 0x5705f1
mov dword [esp + 0x64], ebp
lea ecx, [edi + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
lea eax, [edi + 0x18]
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x5707c8
mov edx, esi
mov edi, ebp
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x570690
mov edi, dword [esp + 0x20]
push dword [esp + 0x1c]
lea eax, [edi + 0x10]
push eax
push eax
call dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x50]
push eax
push edi
call dword [esp + 0x2c]
add esp, 0x18
xor edx, edx
cmp ebp, 0x40
jb 0x57079d
lea ecx, [ebp - 1]
lea eax, [esp + ebp + 0x3f]
add ecx, ebx
cmp ebx, eax
ja 0x5706e5
lea eax, [esp + 0x40]
cmp ecx, eax
jae 0x57079d
lea eax, [ebp - 1]
add eax, esi
cmp ebx, eax
ja 0x5706f6
cmp ecx, esi
jae 0x57079d
mov eax, ebp
lea ecx, [esi + 0x30]
lea ebp, [esp + 0x40]
mov edi, esi
sub ebp, ebx
sub edi, ebx
mov dword [esp + 0x2c], ebp
and eax, 0xffffffc0
mov esi, dword [esp + 0x2c]
lea ebp, [esp + 0x50]
sub ebp, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebp
lea eax, [ebx + 0x10]
lea ebp, [esp + 0x60]
mov dword [esp + 0x18], edi
sub ebp, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov ebp, edi
movups xmm0, xmmword [ecx - 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [esp + edx + 0x40]
add edx, 0x40
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + ebp - 0x40]
movups xmmword [eax - 0x50], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x50]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [esp + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x38]
jb 0x570735
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x64]
lea eax, [edi + 0x18]
mov dword [esp + 0x18], eax
cmp edx, ebp
jae 0x5707c8
lea eax, [esp + 0x40]
sub esi, eax
sub ebx, eax
lea ecx, [esp + 0x40]
add ecx, edx
inc edx
mov al, byte [ecx + esi]
xor al, byte [ecx]
mov byte [ecx + ebx], al
cmp edx, ebp
jb 0x5707b0
lea ebx, [edi + 0x18]
jmp 0x5707cc
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
lea ebp, [edi + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
jae 0x5707f4
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.005c9aa0
add esp, 0xc
mov ebx, ebp
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
push edi
call esi
mov eax, dword [esp + 0x4c]
add esp, 0xc
xor dword [edi + 0x10], eax
mov eax, dword [esp + 0x44]
xor dword [edi + 0x14], eax
mov eax, dword [esp + 0x48]
xor dword [ebx], eax
mov eax, dword [esp + 0x4c]
xor dword [ebx + 4], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x50]
mov byte [edi], al
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c7d0a
add esp, 0x44
ret