Function at 0x47c9d0
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 0x47cb5c
test bl, 3
mov eax, 0
sete al
test eax, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
je 0x47cb56
test al, 3
mov eax, 0
sete al
test eax, eax
je 0x47cb4c
mov edi, edx
xor ebp, ebp
shr edi, 2
test edi, edi
je 0x47cb29
mov eax, dword [esp + 0x38]
cmp edi, 8
jb 0x47caec
lea eax, [eax + edi*4]
add eax, 0xfffffffc
lea esi, [ecx - 4]
lea esi, [esi + edi*4]
cmp ecx, eax
ja 0x47ca5f
mov eax, dword [esp + 0x38]
cmp esi, eax
jae 0x47caec
lea eax, [ebx - 4]
lea eax, [eax + edi*4]
cmp ecx, eax
ja 0x47ca6d
cmp esi, ebx
jae 0x47cae8
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 0x47caa5
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
cmp ebp, edi
jae 0x47cb29
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 0x47cb11
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
shl ebp, 2
sub edx, ebp
mov dword [esp + 0x14], edx
je 0x47cc46
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 0x47cb64
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edx
jmp 0x47cb68
mov dword [esp + 0x14], edx
jmp 0x47cb68
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
xor edi, edi
test edx, edx
je 0x47cc46
cmp edx, 0x20
jb 0x47cc21
dec eax
lea esi, [ecx - 1]
add eax, edx
add esi, edx
cmp ecx, eax
ja 0x47cb93
mov eax, dword [esp + 0x10]
cmp esi, eax
jae 0x47cc25
lea eax, [ebx - 1]
add eax, edx
cmp ecx, eax
ja 0x47cba4
cmp esi, ebx
jae 0x47cc21
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 0x47cbe4
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp edi, edx
jae 0x47cc46
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 0x47cc36
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret