Function at 0x479e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
mov eax, 0
mov edx, dword [esp + 0x2c]
test cl, 3
push ebx
mov ebx, dword [esp + 0x28]
sete al
mov dword [esp + 0xc], ebx
push ebp
push esi
push edi
test eax, eax
je 0x479fac
test bl, 3
mov eax, 0
sete al
test eax, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
je 0x479fa6
test al, 3
mov eax, 0
sete al
test eax, eax
je 0x479f9c
mov edi, edx
xor ebp, ebp
shr edi, 2
test edi, edi
je 0x479f79
mov eax, dword [esp + 0x38]
cmp edi, 8
jb 0x479f3c
lea eax, [eax + edi*4]
add eax, 0xfffffffc
lea esi, [ecx - 4]
lea esi, [esi + edi*4]
cmp ecx, eax
ja 0x479eaf
mov eax, dword [esp + 0x38]
cmp esi, eax
jae 0x479f3c
lea eax, [ebx - 4]
lea eax, [eax + edi*4]
cmp ecx, eax
ja 0x479ebd
cmp esi, ebx
jae 0x479f38
mov eax, edi
mov esi, edi
and eax, 7
sub esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x38]
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x20], esi
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x30]
sub ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov ebx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
movdqu xmm0, xmmword [ecx]
add ebp, 8
lea ecx, [ecx + 0x20]
lea esi, [esi + 0x20]
movdqu xmm1, xmmword [esi - 0x30]
pxor xmm1, xmm0
movdqu xmmword [edx + ecx - 0x20], xmm1
movdqu xmm1, xmmword [eax + esi - 0x20]
movdqu xmm0, xmmword [esi - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ebx + esi - 0x20], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x479ef5
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
cmp ebp, edi
jae 0x479f79
mov esi, ebx
lea ecx, [eax + ebp*4]
sub esi, eax
sub edi, ebp
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x30]
sub esi, eax
add ebp, edi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ecx + edx - 4], eax
dec edi
jne 0x479f61
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
shl ebp, 2
sub edx, ebp
mov dword [esp + 0x14], edx
je 0x47a096
mov eax, dword [esp + 0x38]
add ecx, ebp
add ebx, ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ebx
add eax, ebp
jmp 0x479fb4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edx
jmp 0x479fb8
mov dword [esp + 0x14], edx
jmp 0x479fb8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
xor edi, edi
test edx, edx
je 0x47a096
cmp edx, 0x20
jb 0x47a071
dec eax
lea esi, [ecx - 1]
add eax, edx
add esi, edx
cmp ecx, eax
ja 0x479fe3
mov eax, dword [esp + 0x10]
cmp esi, eax
jae 0x47a075
lea eax, [ebx - 1]
add eax, edx
cmp ecx, eax
ja 0x479ff4
cmp esi, ebx
jae 0x47a071
mov eax, edx
mov ebp, edx
and eax, 0x1f
mov esi, ebx
sub ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
add ebp, 0x10
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
movdqu xmm0, xmmword [esi]
add edi, 0x20
lea esi, [esi + 0x20]
lea ebp, [ebp + 0x20]
movdqu xmm1, xmmword [ebx + esi - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax + esi - 0x20], xmm1
movdqu xmm1, xmmword [esi - 0x10]
movdqu xmm0, xmmword [ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [edx + ebp - 0x20], xmm1
cmp edi, ecx
jb 0x47a034
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp edi, edx
jae 0x47a096
mov esi, dword [esp + 0x30]
lea ecx, [edi + eax]
sub ebx, eax
sub esi, eax
sub edx, edi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [esi + ecx - 1], al
dec edx
jne 0x47a086
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret