Function at 0x570330
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dl, byte [esi]
lea ebx, [esi + 0x20]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov byte [esp + 0xf], dl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
push edi
test dl, 0x40
jne 0x5703a0
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov eax, dword [ebx + 4]
add esp, 0xc
add dword [ebx], 1
mov dl, byte [esp + 0x13]
adc eax, 0
mov dword [ebx + 4], eax
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x3c], edx
cmp edx, 0xf
jae 0x5703d6
nop word [eax + eax]
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x5703c0
lea ebx, [esi + 0x20]
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x64]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x5703fe
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005c77ea
add esp, 0x44
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [ebx], eax
adc dword [ebx + 4], 0
cmp dword [ebx + 4], 0x20000000
jb 0x570435
ja 0x57041d
cmp dword [ebx], 0
jbe 0x570435
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005c77ea
add esp, 0x44
ret
mov ebx, edi
shr ebx, 4
test ebx, ebx
je 0x570478
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x20]
push ebx
push ebp
push dword [esp + 0x28]
call dword [esp + 0x38]
shl ebx, 4
add esp, 0x18
add dword [esp + 0x14], ebx
add ebp, ebx
sub edi, ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x64], edi
je 0x570478
shr ebx, 4
push ebx
push esi
call fcn.00570740
add esp, 8
jmp 0x570480
test edi, edi
je 0x5705cb
test edi, edi
je 0x57049f
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x10]
mov ebx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub ebx, 1
jne 0x570490
push dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov eax, esi
add eax, 0x10
push eax
push eax
call dword [esp + 0x28]
push dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
push esi
call dword [esp + 0x34]
add esp, 0x18
xor edx, edx
test edi, edi
je 0x5705cb
cmp edi, 0x40
jb 0x5705b0
lea ecx, [ebp - 1]
lea eax, [esp + edi + 0x3f]
add ecx, edi
cmp ebp, eax
ja 0x5704ef
lea eax, [esp + 0x40]
cmp ecx, eax
jae 0x5705b0
lea eax, [ebx - 1]
add eax, edi
cmp ebp, eax
ja 0x570500
cmp ecx, ebx
jae 0x5705b0
mov esi, ebx
lea ecx, [ebx + 0x30]
lea ebx, [esp + 0x40]
mov eax, edi
sub ebx, ebp
sub esi, ebp
mov dword [esp + 0x2c], ebx
and eax, 0xffffffc0
mov edi, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
sub ebx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebx
lea eax, [ebp + 0x10]
lea ebx, [esp + 0x60]
mov dword [esp + 0x20], esi
sub ebx, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x34], ebx
mov ebx, esi
nop
movups xmm0, xmmword [ecx - 0x30]
mov esi, 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 [ebx + eax - 0x40]
movups xmmword [eax - 0x50], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x50]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [esp + 0x24]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x38]
jb 0x570540
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
cmp edx, edi
jae 0x5705cb
lea eax, [esp + 0x40]
sub ebx, eax
sub ebp, eax
lea ecx, [esp + 0x40]
add ecx, edx
inc edx
mov al, byte [ecx + ebx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, edi
jb 0x5705b8
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x10
jae 0x5705ea
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.005c9580
add esp, 0xc
push dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
push esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x48]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x50]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c77ea
add esp, 0x44
ret