Function at 0x1c472a30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [esp], ecx
push ebx
push esi
push edi
push ebp
xor esi, esi
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov eax, ecx
and eax, 0xf
shl eax, 4
mov edx, dword [esp + 0x38]
sar ecx, 4
mov dword [esp + 0x24], eax
mov eax, edi
add ecx, edx
and eax, 0xf
mov ebx, dword [esp + 0x3c]
shl eax, 4
and edi, 0xfffffff7
sar edi, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
imul ecx, dword [eax + 8]
add ecx, ebx
mov ebp, dword [eax + 0xc]
mov eax, dword [esp + 0x34]
lea ecx, [edi + ecx*2]
add ecx, ebp
mov ebx, dword [eax + 8]
mov edi, ebx
mov ebp, dword [esp + 0x3c]
imul edi, edx
add edi, ebp
mov ebp, dword [eax + 0xc]
mov eax, dword [esp + 0x30]
nop
lea edi, [ebp + edi*2]
mov ebp, dword [esp + 0x44]
mov eax, dword [eax + 8]
sub ebx, ebp
sub eax, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x1c472c99
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x1c472c99
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
and eax, 3
xor eax, edx
sub eax, edx
mov eax, dword [esp + 0x10]
je 0x1c472b7d
cmp eax, esi
mov eax, dword [esp + 0x40]
je 0x1c472b3c
cmp eax, esi
jle 0x1c472e10
mov ebx, eax
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x1c472b25
mov ebp, eax
add ecx, 2
add edi, 2
movsx eax, word [edi - 2]
movsx edx, word [ecx - 2]
sub eax, edx
cdq
xor eax, edx
sub esi, edx
add esi, eax
dec ebp
jne 0x1c472b0b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
dec ebx
nop
lea edi, [edi + edx*2]
lea ecx, [ecx + eax*2]
jne 0x1c472b01
jmp 0x1c472e10
test eax, eax
jle 0x1c472e10
mov edx, eax
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x1c472b66
add ecx, 2
add edi, 2
movsx ebx, word [edi - 2]
movsx ebp, word [ecx - 2]
sub ebx, ebp
imul ebx, ebx
add esi, ebx
dec eax
jne 0x1c472b4e
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
dec edx
nop
lea edi, [edi + ebx*2]
lea ecx, [ecx + eax*2]
jne 0x1c472b46
jmp 0x1c472e10
test eax, eax
mov eax, dword [esp + 0x40]
je 0x1c472c15
test eax, eax
jle 0x1c472e10
mov ebx, eax
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x1c472bfe
sub ebp, 4
add ecx, 2
add edi, 2
add ecx, 2
add edi, 2
add ecx, 2
add edi, 2
add ecx, 2
movsx eax, word [edi - 6]
movsx edx, word [ecx - 8]
sub eax, edx
add edi, 2
cdq
xor eax, edx
sub esi, edx
add esi, eax
movsx edx, word [ecx - 6]
movsx eax, word [edi - 6]
sub eax, edx
cdq
xor eax, edx
sub esi, edx
add esi, eax
movsx edx, word [ecx - 4]
movsx eax, word [edi - 4]
sub eax, edx
cdq
xor eax, edx
sub esi, edx
add esi, eax
movsx edx, word [ecx - 2]
movsx eax, word [edi - 2]
sub eax, edx
cdq
xor eax, edx
sub esi, edx
add esi, eax
test ebp, ebp
jne 0x1c472b9b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
dec ebx
nop
lea edi, [edi + edx*2]
lea ecx, [ecx + eax*2]
jne 0x1c472b93
jmp 0x1c472e10
test eax, eax
jle 0x1c472e10
mov edx, eax
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x1c472c82
sub ebx, 4
add ecx, 2
add edi, 2
add ecx, 2
add edi, 2
add ecx, 2
add edi, 2
add ecx, 2
movsx eax, word [edi - 6]
movsx ebp, word [ecx - 8]
sub eax, ebp
add edi, 2
imul eax, eax
add esi, eax
movsx ebp, word [ecx - 6]
movsx eax, word [edi - 6]
sub eax, ebp
imul eax, eax
add esi, eax
movsx ebp, word [ecx - 4]
movsx eax, word [edi - 4]
sub eax, ebp
imul eax, eax
add esi, eax
movsx ebp, word [ecx - 2]
movsx eax, word [edi - 2]
sub eax, ebp
imul eax, eax
add esi, eax
test ebx, ebx
jne 0x1c472c27
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
dec edx
nop
lea edi, [edi + ebx*2]
lea ecx, [ecx + eax*2]
jne 0x1c472c1f
jmp 0x1c472e10
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, dword [esp + 0x40]
je 0x1c472d60
add eax, edx
cmp eax, edx
jle 0x1c472e10
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movsx edx, word [ecx]
mov ebx, dword [eax + 8]
movsx eax, word [ecx + ebx*2]
sub eax, edx
mov ebp, dword [esp + 0x44]
imul eax, dword [esp + 0x24]
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x1c472d3d
add ecx, 2
mov eax, dword [esp + 0x30]
mov ebp, dword [eax + 8]
add edi, 2
movsx ebx, word [ecx]
movsx eax, word [ecx + ebp*2]
sub eax, ebx
imul eax, dword [esp + 0x24]
shl ebx, 8
add ebx, eax
mov ebp, ebx
sub ebp, edx
movsx eax, word [edi - 2]
imul ebp, dword [esp + 0x28]
shl edx, 8
add ebp, edx
sar ebp, 0x10
sub eax, ebp
cdq
xor eax, edx
sub esi, edx
add esi, eax
mov edx, ebx
mov eax, dword [esp + 0x14]
test eax, eax
lea ebx, [eax - 1]
mov dword [esp + 0x14], ebx
jne 0x1c472cee
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
nop
lea edi, [edi + edx*2]
lea ecx, [ecx + eax*2]
dec ebx
mov dword [esp + 0x20], ebx
jne 0x1c472cc4
jmp 0x1c472e10
add eax, edx
cmp eax, edx
jle 0x1c472e10
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
movsx edx, word [ecx]
mov ebx, dword [eax + 8]
movsx eax, word [ecx + ebx*2]
sub eax, edx
mov ebp, dword [esp + 0x44]
imul eax, dword [esp + 0x24]
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x1c472df2
add ecx, 2
mov eax, dword [esp + 0x30]
mov ebp, dword [eax + 8]
add edi, 2
movsx ebx, word [ecx]
movsx eax, word [ecx + ebp*2]
sub eax, ebx
imul eax, dword [esp + 0x24]
shl ebx, 8
add ebx, eax
mov ebp, ebx
sub ebp, edx
movsx eax, word [edi - 2]
imul ebp, dword [esp + 0x28]
shl edx, 8
add ebp, edx
mov edx, ebx
sar ebp, 0x10
sub eax, ebp
imul eax, eax
add esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
lea ebx, [eax - 1]
mov dword [esp + 0x14], ebx
jne 0x1c472da5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
nop
lea edi, [edi + edx*2]
lea ecx, [ecx + eax*2]
dec ebx
mov dword [esp + 0x20], ebx
jne 0x1c472d7b
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
imul eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
fdivp st(1)
add esp, 0x1c
ret