Function at 0x6571d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x7ec06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test dl, 0x40
jne 0x657217
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov dl, byte [ebp - 0x15]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x30], edx
cmp edx, 0xf
jae 0x657243
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x657230
movzx eax, byte [esi + 0xf]
mov edx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edx
je 0x657267
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
lea eax, [edx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x65729d
ja 0x657288
cmp dword [esi + 0x20], 0
jbe 0x65729d
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x65732a
shr edx, 4
lea ecx, [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [ebp - 0x20]
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 [ebp - 0x24]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x24]
add esp, 0x18
mov eax, 8
dec eax
add byte [eax + esi + 8], 1
jne 0x6572f0
test eax, eax
jne 0x6572e4
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebx], ecx
sub edx, 0x10
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], eax
xor ecx, dword [edi + 8]
mov eax, dword [ebp - 8]
xor eax, dword [edi + 0xc]
add edi, 0x10
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x1c], 1
mov dword [ebp + 0x14], edx
jne 0x6572b3
test edx, edx
je 0x657438
xor ecx, ecx
test edx, edx
je 0x657344
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edx
jb 0x657338
push dword [ebp - 0x20]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x24]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x24]
mov ecx, dword [ebp + 0x14]
add esp, 0x18
xor edx, edx
test ecx, ecx
je 0x657438
cmp ecx, 0x40
jb 0x657415
lea eax, [ebp + ecx - 0x15]
cmp ebx, eax
ja 0x65738f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ecx - 1]
add eax, ebx
cmp eax, dword [ebp - 0x1c]
jae 0x657415
lea eax, [ecx - 1]
add eax, edi
cmp ebx, eax
ja 0x6573a1
lea eax, [ecx - 1]
add eax, ebx
cmp eax, edi
jae 0x657415
mov eax, ecx
mov esi, edi
and eax, 0xffffffc0
sub esi, ebx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 0x10]
nop dword [eax]
movups xmm0, xmmword [ebp + edx - 0x14]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + edx]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx - 4]
movups xmmword [ebx + edx], xmm1
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx + 0xc]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edi + edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx + 0x1c]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x2c]
jb 0x6573c0
mov ecx, dword [ebp + 0x14]
cmp edx, ecx
jae 0x657438
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x14]
sub edi, eax
sub ebx, eax
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + ebx], al
cmp edx, esi
jb 0x657423
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jae 0x65745a
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 [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], al
xor ecx, ebp
pop esi
xor eax, eax
pop ebx
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret