Function at 0x4719a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push 0x38
mov ebx, edx
mov dword [ebp - 8], esi
push edi
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
call fcn.0047ebc0
mov edx, dword [ebx + 4]
add esp, 0xc
xor ecx, ecx
test edx, edx
jle 0x471a89
cmp edx, 8
jb 0x471a6f
mov edi, dword [ebx + 8]
mov eax, edx
and eax, 0x80000007
jns 0x4719eb
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm5, xmmword [0x4f42d0]
xorps xmm3, xmm3
mov dword [ebp - 4], edx
xorps xmm4, xmm4
sub dword [ebp - 4], eax
xorps xmm2, xmm2
mov eax, dword [ebp - 4]
movups xmm1, xmmword [edi + ecx*4]
movaps xmm0, xmm5
paddd xmm0, xmm3
pcmpgtd xmm1, xmm4
pand xmm0, xmm1
pandn xmm1, xmm3
por xmm0, xmm1
movups xmm1, xmmword [edi + ecx*4 + 0x10]
add ecx, 8
movaps xmm3, xmm0
movaps xmm0, xmm5
paddd xmm0, xmm2
pcmpgtd xmm1, xmm4
pand xmm0, xmm1
pandn xmm1, xmm2
por xmm0, xmm1
movaps xmm2, xmm0
cmp ecx, eax
jl 0x471a04
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd edi, xmm2
mov dword [ebp - 4], edi
cmp ecx, edx
jge 0x471a89
mov esi, dword [ebx + 8]
cmp dword [esi + ecx*4], 0
lea eax, [edi + 1]
cmovle eax, edi
inc ecx
mov edi, eax
cmp ecx, edx
jl 0x471a72
mov esi, dword [ebp - 8]
mov dword [ebp - 4], edi
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov eax, dword [ebx]
mov dword [esi], eax
test edi, edi
jle 0x471f6a
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push edi
call fcn.00471440
mov ebx, eax
add esp, 4
lea eax, [edi*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], eax
call fcn.004c04a0
mov eax, esp
mov dword [ebp - 0x14], eax
test ebx, ebx
jne 0x471b31
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471ad7
push eax
call fcn.00484918
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471ae7
push eax
call fcn.00484918
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x471af7
push eax
call fcn.00484918
add esp, 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x471b07
push eax
call fcn.00484918
add esp, 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x471b17
push eax
call fcn.00484918
add esp, 4
push 0x38
push 0
push esi
call fcn.0047ebc0
add esp, 0xc
or eax, 0xffffffff
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov esi, eax
mov dword [ebp - 0x1c], edi
nop dword [eax]
mov ecx, dword [ebx]
rol ecx, 0x10
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 4
shl eax, 4
xor ecx, eax
shl edx, 4
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [ecx*4]
xor edx, eax
lea eax, [ecx*4]
and edx, 0x33333333
xor edx, eax
mov ecx, edx
shr ecx, 1
lea eax, [edx + edx]
xor ecx, eax
lea eax, [edx + edx]
and ecx, 0x55555555
xor ecx, eax
mov dword [ebx], ecx
mov dword [esi + ebx], ebx
add ebx, 4
sub edi, 1
jne 0x471b40
mov edi, dword [ebp - 4]
push 0x471970
push 4
push edi
push dword [ebp - 0x14]
call fcn.00480ee0
add esp, 0x10
lea esi, [edi*4]
mov eax, esi
call fcn.004c04a0
mov ebx, esp
push esi
mov dword [ebp - 0x10], ebx
call fcn.004849cb
mov esi, dword [ebp - 8]
add esp, 4
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov dword [esi + 0x14], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + ecx*4]
sub eax, edx
sar eax, 2
mov dword [ebx + eax*4], ecx
inc ecx
cmp ecx, edi
jl 0x471bf1
mov esi, dword [ebp - 8]
mov eax, edx
sub eax, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
nop
mov edx, dword [ebx]
lea ebx, [ebx + 4]
mov ecx, dword [esi + 0x14]
mov eax, dword [eax + ebx - 4]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x1c]
sub edi, 1
jne 0x471c10
push dword [ebp - 0xc]
call fcn.00484918
mov ebx, dword [ebp - 0x10]
add esp, 4
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov edx, dword [ebp - 4]
push ebx
call fcn.00471690
add esp, 4
mov dword [esi + 0x10], eax
push dword [ebp - 0x24]
call fcn.004849cb
xor ecx, ecx
mov dword [esi + 0x18], eax
add esp, 4
mov dword [ebp - 0x14], ecx
xor edx, edx
cmp dword [edi + 4], ecx
jle 0x471c82
mov eax, dword [edi + 8]
cmp dword [eax + edx*4], 0
jle 0x471c7c
mov ecx, dword [ebx + ecx*4]
mov eax, dword [esi + 0x18]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
inc edx
cmp edx, dword [edi + 4]
jl 0x471c63
push ecx
call fcn.004849cb
xor ebx, ebx
mov dword [esi + 0x1c], eax
xor edx, edx
mov dword [ebp - 0xc], ebx
add esp, 4
cmp dword [edi + 4], edx
jle 0x471cc9
nop word [eax + eax]
mov eax, dword [edi + 8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x471cc3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ebx*4]
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp - 0x24]
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0xc]
inc ebx
mov dword [ebp - 0xc], ebx
inc edx
cmp edx, dword [edi + 4]
jl 0x471ca0
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
je 0x471cd7
inc ecx
shr eax, 1
jne 0x471cd2
add ecx, 0xfffffffc
mov dword [esi + 0x24], ecx
cmp ecx, 5
jge 0x471cf0
mov dword [esi + 0x24], 5
mov ecx, 5
jmp 0x471d01
cmp ecx, 8
jle 0x471d01
mov dword [esi + 0x24], 8
mov ecx, 8
mov eax, 1
shl eax, cl
push 4
push eax
mov dword [ebp - 0x20], eax
call fcn.0048a08f
xor edi, edi
mov dword [esi + 0x20], eax
add esp, 8
mov dword [esi + 0x28], 0
mov dword [ebp - 0x14], edi
test ebx, ebx
jle 0x471e36
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
movsx ecx, byte [eax + edi]
cmp dword [esi + 0x28], ecx
jge 0x471d3f
mov dword [esi + 0x28], ecx
movsx ecx, byte [eax + edi]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x24]
mov edx, ecx
cmp dword [ebp - 0x18], ecx
jg 0x471e25
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi*4]
rol ecx, 0x10
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 4
shl eax, 4
xor ecx, eax
shl edx, 4
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [ecx*4]
xor edx, eax
lea eax, [ecx*4]
and edx, 0x33333333
xor edx, eax
mov ecx, edx
shr ecx, 1
lea eax, [edx + edx]
xor ecx, eax
lea eax, [edx + edx]
and ecx, 0x55555555
xor edx, edx
xor ecx, eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 4], eax
mov eax, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [ebp - 0x18]
shl eax, cl
test eax, eax
jle 0x471e1f
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 0x1c]
lea edi, [ebx + 1]
mov cl, byte [ebx + eax]
mov eax, dword [esi + 0x20]
shl edx, cl
or edx, dword [ebp - 0x28]
mov dword [eax + edx*4], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
inc edx
movsx eax, byte [eax + ebx]
mov dword [ebp - 0x10], ecx
sub ecx, eax
mov eax, 1
mov dword [ebp - 0x1c], edx
shl eax, cl
cmp edx, eax
jl 0x471de1
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
inc edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jl 0x471d33
jmp 0x471e39
mov edx, dword [esi + 0x24]
mov ecx, 0x1f
mov dword [ebp - 0x1c], 0
sub ecx, edx
mov eax, 0xfffffffe
shl eax, cl
xor edi, edi
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], eax
jle 0x471f6a
mov ecx, 0x20
sub ecx, dword [esi + 0x24]
shl eax, cl
mov ecx, eax
mov dword [ebp - 0x18], eax
rol ecx, 0x10
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 4
shl eax, 4
xor ecx, eax
shl edx, 4
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [ecx*4]
xor edx, eax
lea eax, [ecx*4]
and edx, 0x33333333
xor edx, eax
mov ecx, edx
shr ecx, 1
lea eax, [edx + edx]
xor ecx, eax
lea eax, [edx + edx]
and ecx, 0x55555555
xor ecx, eax
mov eax, dword [esi + 0x20]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
mov dword [ebp - 0x24], eax
jne 0x471f5a
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + 1]
cmp ecx, ebx
jge 0x471f13
mov eax, dword [esi + 0x14]
mov esi, dword [ebp - 0x18]
lea eax, [eax + edx*4]
add eax, 4
nop dword [eax + eax]
cmp dword [eax], esi
ja 0x471f0d
inc ecx
inc edx
add eax, 4
cmp ecx, ebx
jl 0x471f00
mov esi, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
cmp edi, ebx
jge 0x471f32
mov eax, dword [esi + 0x14]
lea ecx, [eax + edi*4]
nop dword [eax]
mov eax, dword [ecx]
and eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], eax
jb 0x471f32
inc edi
add ecx, 4
cmp edi, ebx
jl 0x471f20
mov ecx, ebx
mov eax, edx
sub ecx, edi
cmp edx, 0x7fff
mov edx, 0x7fff
cmova eax, edx
cmp ecx, edx
cmova ecx, edx
or eax, 0xffff0000
shl eax, 0xf
or eax, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x20]
jl 0x471e61
xor eax, eax
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret