Function at 0x4ecde0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 0x18]
cmp byte [ebx + 0x14], 0
jne 0x4ece4c
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
cmp ecx, dword [ebx + 0xc]
jne 0x4ece3a
lea eax, [ecx + ecx*2]
shr eax, 1
test ecx, ecx
mov edi, 0x20
cmovne edi, eax
cmp edi, ecx
jbe 0x4ece46
cmp edi, 0x3fffffff
ja 0x4ece46
lea eax, [edi*4]
push eax
push dword [ebx + 4]
call fcn.00516810
add esp, 8
test eax, eax
je 0x4ece46
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], edi
mov ecx, dword [ebx + 8]
jmp 0x4ece3d
mov eax, dword [ebx + 4]
mov dword [eax + ecx*4], esi
add dword [ebx + 8], 1
jmp 0x4ece4c
mov word [ebx + 0x14], 0x101
push ebx
call fcn.004dfca0
add esp, 4
xor edi, edi
test eax, eax
je 0x4eddae
mov esi, eax
mov edx, ebx
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x14]
push ebx
push edx
push eax
push dword [ecx + 4]
push dword [ebp + 0x10]
push esi
call fcn.004e3720
add esp, 0x18
test eax, eax
je 0x4eddab
mov eax, dword [ebp + 0x18]
push eax
push ebx
push ebx
push esi
push esi
call fcn.004e2d80
add esp, 0x14
test eax, eax
mov ebx, dword [ebp + 0x18]
je 0x4eddae
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x20], esi
mov ecx, dword [esi + 4]
mov ebx, dword [edx + 4]
xor edi, edi
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jge 0x4ecfea
mov esi, dword [edx]
mov edx, ebx
sub edx, ecx
xor edi, edi
mov eax, ecx
cmp edx, 7
jbe 0x4ecfd9
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], edx
mov eax, edx
and eax, 0xfffffff8
lea ecx, [eax - 8]
mov edi, ecx
shr edi, 3
add edi, 1
mov edx, edi
and edx, 3
cmp ecx, 0x18
jae 0x4ecf06
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
jmp 0x4ecf77
mov ecx, dword [ebp - 0x18]
lea ecx, [esi + ecx*4]
add ecx, 0x70
and edi, 0xfffffffc
neg edi
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop
movdqu xmm2, xmmword [ecx + ebx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + ebx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ecx + ebx*4 - 0x50]
movdqu xmm3, xmmword [ecx + ebx*4 - 0x40]
movdqu xmm4, xmmword [ecx + ebx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ecx + ebx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + ebx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ecx + ebx*4]
por xmm1, xmm2
add ebx, 0x20
add edi, 4
jne 0x4ecf20
test edx, edx
je 0x4ecfa7
add ebx, dword [ebp - 0x18]
lea ecx, [esi + ebx*4]
add ecx, 0x10
neg edx
nop word cs:[eax + eax]
movdqu xmm2, xmmword [ecx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [ecx]
por xmm1, xmm2
add ecx, 0x20
inc edx
jne 0x4ecf90
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd edi, xmm0
cmp dword [ebp - 0x2c], eax
jne 0x4ecfd1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
jmp 0x4ecfea
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
nop dword [eax]
or edi, dword [esi + eax*4]
add eax, 1
cmp ebx, eax
jne 0x4ecfe0
cmp ebx, ecx
jge 0x4ed11a
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
mov eax, dword [ebp - 0x1c]
cmp eax, 7
ja 0x4ed006
mov eax, ebx
jmp 0x4ed110
mov dword [ebp - 0x10], ebx
and eax, 0xfffffff8
movd xmm0, edi
lea ecx, [eax - 8]
mov ebx, ecx
shr ebx, 3
add ebx, 1
mov edx, ebx
and edx, 3
cmp ecx, 0x18
jae 0x4ed02d
pxor xmm1, xmm1
xor edi, edi
jmp 0x4ed0a7
mov ecx, dword [ebp - 0x10]
lea ecx, [esi + ecx*4]
add ecx, 0x70
and ebx, 0xfffffffc
neg ebx
pxor xmm1, xmm1
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax + eax]
movdqu xmm2, xmmword [ecx + edi*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + edi*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ecx + edi*4 - 0x50]
movdqu xmm3, xmmword [ecx + edi*4 - 0x40]
movdqu xmm4, xmmword [ecx + edi*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ecx + edi*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + edi*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ecx + edi*4]
por xmm1, xmm2
add edi, 0x20
add ebx, 4
jne 0x4ed050
test edx, edx
mov ebx, dword [ebp - 0x10]
je 0x4ed0d7
add edi, ebx
lea ecx, [esi + edi*4]
add ecx, 0x10
neg edx
nop dword [eax + eax]
movdqu xmm2, xmmword [ecx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [ecx]
por xmm1, xmm2
add ecx, 0x20
inc edx
jne 0x4ed0c0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd edi, xmm0
cmp dword [ebp - 0x1c], eax
jne 0x4ed101
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x4ed11a
add eax, ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
nop dword [eax]
or edi, dword [esi + eax*4]
add eax, 1
cmp ecx, eax
jne 0x4ed110
cmp ecx, ebx
cmovl ebx, ecx
test ebx, ebx
jle 0x4ed21f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [edx]
xor esi, esi
cmp ebx, 3
jbe 0x4ed210
mov dword [ebp - 0x10], ebx
mov esi, ebx
and esi, 0xfffffffc
movd xmm0, edi
lea ebx, [esi - 4]
mov edi, ebx
shr edi, 2
add edi, 1
mov ecx, edi
and ecx, 3
cmp ebx, 0xc
jae 0x4ed15e
xor ebx, ebx
jmp 0x4ed1c6
and edi, 0xfffffffc
neg edi
xor ebx, ebx
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [eax + ebx*4]
movdqu xmm2, xmmword [eax + ebx*4 + 0x10]
movdqu xmm3, xmmword [edx + ebx*4]
pxor xmm3, xmm1
por xmm3, xmm0
movdqu xmm0, xmmword [edx + ebx*4 + 0x10]
pxor xmm0, xmm2
movdqu xmm1, xmmword [eax + ebx*4 + 0x20]
movdqu xmm2, xmmword [edx + ebx*4 + 0x20]
pxor xmm2, xmm1
por xmm2, xmm0
por xmm2, xmm3
movdqu xmm1, xmmword [eax + ebx*4 + 0x30]
movdqu xmm0, xmmword [edx + ebx*4 + 0x30]
pxor xmm0, xmm1
por xmm0, xmm2
add ebx, 0x10
add edi, 4
jne 0x4ed170
test ecx, ecx
je 0x4ed1e8
shl ebx, 2
neg ecx
nop
movdqu xmm1, xmmword [eax + ebx]
movdqu xmm2, xmmword [edx + ebx]
pxor xmm2, xmm1
por xmm0, xmm2
add ebx, 0x10
inc ecx
jne 0x4ed1d0
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd edi, xmm0
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
mov ebx, ecx
je 0x4ed21f
nop word [eax + eax]
mov ecx, dword [edx + esi*4]
xor ecx, dword [eax + esi*4]
or edi, ecx
add esi, 1
cmp ebx, esi
jne 0x4ed210
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
xor eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov esi, dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0x18]
sub ecx, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], esi
jge 0x4ed37a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov ebx, esi
mov edx, dword [ebp - 0x18]
sub ebx, edx
xor eax, eax
cmp ebx, 7
jbe 0x4ed367
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], ebx
mov edx, ebx
and edx, 0xfffffff8
lea ecx, [edx - 8]
mov eax, ecx
shr eax, 3
add eax, 1
mov esi, eax
and esi, 3
cmp ecx, 0x18
jae 0x4ed295
pxor xmm0, xmm0
xor ecx, ecx
pxor xmm1, xmm1
jmp 0x4ed307
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
lea ebx, [ebx + ecx*4]
add ebx, 0x70
and eax, 0xfffffffc
neg eax
pxor xmm0, xmm0
xor ecx, ecx
pxor xmm1, xmm1
movdqu xmm2, xmmword [ebx + ecx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ebx + ecx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ebx + ecx*4 - 0x50]
movdqu xmm3, xmmword [ebx + ecx*4 - 0x40]
movdqu xmm4, xmmword [ebx + ecx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ebx + ecx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ebx + ecx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ebx + ecx*4]
por xmm1, xmm2
add ecx, 0x20
add eax, 4
jne 0x4ed2b0
test esi, esi
je 0x4ed337
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
lea eax, [eax + ecx*4]
add eax, 0x10
neg esi
nop dword [eax]
movdqu xmm2, xmmword [eax - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [eax]
por xmm1, xmm2
add eax, 0x20
inc esi
jne 0x4ed320
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
cmp dword [ebp - 0x30], edx
jne 0x4ed35e
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
jmp 0x4ed37a
add edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
nop word [eax + eax]
or eax, dword [ecx + edx*4]
add edx, 1
cmp esi, edx
jne 0x4ed370
mov ecx, esi
mov esi, dword [ebp - 0x18]
cmp ecx, esi
jge 0x4ed4aa
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x28]
cmp edx, 7
ja 0x4ed399
mov edx, dword [ebp - 0x10]
jmp 0x4ed497
mov dword [ebp - 0x24], ecx
and edx, 0xfffffff8
movd xmm0, eax
lea ecx, [edx - 8]
mov eax, ecx
shr eax, 3
add eax, 1
mov esi, eax
and esi, 3
cmp ecx, 0x18
jae 0x4ed3c0
pxor xmm1, xmm1
xor ecx, ecx
jmp 0x4ed437
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x24]
lea ebx, [ebx + ecx*4]
add ebx, 0x70
and eax, 0xfffffffc
neg eax
pxor xmm1, xmm1
xor ecx, ecx
nop word [eax + eax]
movdqu xmm2, xmmword [ebx + ecx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ebx + ecx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ebx + ecx*4 - 0x50]
movdqu xmm3, xmmword [ebx + ecx*4 - 0x40]
movdqu xmm4, xmmword [ebx + ecx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ebx + ecx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ebx + ecx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ebx + ecx*4]
por xmm1, xmm2
add ecx, 0x20
add eax, 4
jne 0x4ed3e0
test esi, esi
je 0x4ed467
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
lea eax, [eax + ecx*4]
add eax, 0x10
neg esi
nop dword [eax]
movdqu xmm2, xmmword [eax - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [eax]
por xmm1, xmm2
add eax, 0x20
inc esi
jne 0x4ed450
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
cmp dword [ebp - 0x28], edx
jne 0x4ed48e
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
jmp 0x4ed4aa
add edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
nop word [eax + eax]
or eax, dword [ecx + edx*4]
add edx, 1
cmp esi, edx
jne 0x4ed4a0
mov edx, dword [ebp - 0x14]
or edx, edi
mov ecx, dword [ebp - 0x10]
cmp esi, ecx
cmovl ecx, esi
test ecx, ecx
mov dword [ebp - 0x14], edx
jle 0x4ed5c2
mov esi, ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
mov ebx, esi
xor esi, esi
cmp ebx, 3
ja 0x4ed4df
mov ecx, dword [ebp - 0x18]
jmp 0x4ed5b3
mov dword [ebp - 0x10], ebx
mov esi, ebx
and esi, 0xfffffffc
movd xmm0, eax
lea edi, [esi - 4]
mov eax, edi
shr eax, 2
add eax, 1
mov ebx, eax
and ebx, 3
cmp edi, 0xc
jae 0x4ed507
xor edi, edi
mov ecx, dword [ebp - 0x18]
jmp 0x4ed576
and eax, 0xfffffffc
neg eax
xor edi, edi
mov ecx, dword [ebp - 0x18]
nop word cs:[eax + eax]
nop dword [eax + eax]
movdqu xmm1, xmmword [ecx + edi*4]
movdqu xmm2, xmmword [ecx + edi*4 + 0x10]
movdqu xmm3, xmmword [edx + edi*4]
pxor xmm3, xmm1
por xmm3, xmm0
movdqu xmm0, xmmword [edx + edi*4 + 0x10]
pxor xmm0, xmm2
movdqu xmm1, xmmword [ecx + edi*4 + 0x20]
movdqu xmm2, xmmword [edx + edi*4 + 0x20]
pxor xmm2, xmm1
por xmm2, xmm0
por xmm2, xmm3
movdqu xmm1, xmmword [ecx + edi*4 + 0x30]
movdqu xmm0, xmmword [edx + edi*4 + 0x30]
pxor xmm0, xmm1
por xmm0, xmm2
add edi, 0x10
add eax, 4
jne 0x4ed520
test ebx, ebx
je 0x4ed598
shl edi, 2
neg ebx
nop
movdqu xmm1, xmmword [ecx + edi]
movdqu xmm2, xmmword [edx + edi]
pxor xmm2, xmm1
por xmm0, xmm2
add edi, 0x10
inc ebx
jne 0x4ed580
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
mov ebx, dword [ebp - 0x10]
jmp 0x4ed5be
mov edi, dword [edx + esi*4]
xor edi, dword [ecx + esi*4]
or eax, edi
add esi, 1
cmp ebx, esi
jne 0x4ed5b3
cmp dword [ebp - 0x14], 0
sete cl
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
xor esi, dword [edx + 0xc]
or esi, eax
sete al
or al, cl
movzx edx, al
neg edx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 2
jl 0x4edd9e
mov esi, 1
mov eax, dword [edi + 0x14]
mov ecx, eax
xor ecx, esi
not eax
add ecx, 0xffffffff
and ecx, eax
sar ecx, 0x1f
mov eax, edx
not eax
test ecx, eax
jne 0x4edd9e
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
mov esi, dword [ebp - 0x20]
push esi
push esi
push esi
call fcn.004e2d80
add esp, 0x14
test eax, eax
je 0x4eddd1
mov eax, dword [edi + 0xc]
mov edx, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov edi, dword [eax + 4]
xor eax, eax
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x28], ecx
mov ecx, edx
mov dword [ebp - 0x1c], edx
mov ecx, edi
mov dword [ebp - 0x14], edi
jge 0x4ed77a
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
sub edi, edx
xor eax, eax
mov ebx, edx
cmp edi, 7
jbe 0x4ed763
mov dword [ebp - 0x24], edi
mov ebx, edi
and ebx, 0xfffffff8
lea ecx, [ebx - 8]
mov eax, ecx
shr eax, 3
add eax, 1
mov edi, eax
and edi, 3
cmp ecx, 0x18
jae 0x4ed692
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
jmp 0x4ed707
mov ecx, dword [ebp - 0x1c]
lea ecx, [esi + ecx*4]
add ecx, 0x70
and eax, 0xfffffffc
neg eax
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
nop word [eax + eax]
movdqu xmm2, xmmword [ecx + edx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + edx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ecx + edx*4 - 0x50]
movdqu xmm3, xmmword [ecx + edx*4 - 0x40]
movdqu xmm4, xmmword [ecx + edx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ecx + edx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + edx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ecx + edx*4]
por xmm1, xmm2
add edx, 0x20
add eax, 4
jne 0x4ed6b0
test edi, edi
je 0x4ed737
add edx, dword [ebp - 0x1c]
lea eax, [esi + edx*4]
add eax, 0x10
neg edi
nop word cs:[eax + eax]
movdqu xmm2, xmmword [eax - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [eax]
por xmm1, xmm2
add eax, 0x20
inc edi
jne 0x4ed720
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
cmp dword [ebp - 0x24], ebx
jne 0x4ed75e
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
jmp 0x4ed77a
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov edi, dword [ebp - 0x14]
nop word cs:[eax + eax]
or eax, dword [esi + ebx*4]
add ebx, 1
cmp edi, ebx
jne 0x4ed770
cmp edi, edx
jge 0x4ed7a0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ecx]
mov ebx, dword [ebp - 0x28]
cmp ebx, 7
ja 0x4ed7b0
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jmp 0x4ed8a0
mov edi, dword [ebp - 0x10]
jmp 0x4ed8aa
and ebx, 0xfffffff8
movd xmm0, eax
lea ecx, [ebx - 8]
mov edi, ecx
shr edi, 3
add edi, 1
mov eax, edi
and eax, 3
cmp ecx, 0x18
jae 0x4ed7d4
pxor xmm1, xmm1
xor edx, edx
jmp 0x4ed847
mov ecx, dword [ebp - 0x14]
lea ecx, [esi + ecx*4]
add ecx, 0x70
and edi, 0xfffffffc
neg edi
pxor xmm1, xmm1
xor edx, edx
nop dword [eax + eax]
movdqu xmm2, xmmword [ecx + edx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + edx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ecx + edx*4 - 0x50]
movdqu xmm3, xmmword [ecx + edx*4 - 0x40]
movdqu xmm4, xmmword [ecx + edx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ecx + edx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ecx + edx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ecx + edx*4]
por xmm1, xmm2
add edx, 0x20
add edi, 4
jne 0x4ed7f0
test eax, eax
je 0x4ed877
add edx, dword [ebp - 0x14]
lea ecx, [esi + edx*4]
add ecx, 0x10
neg eax
nop word cs:[eax + eax]
movdqu xmm2, xmmword [ecx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [ecx]
por xmm1, xmm2
add ecx, 0x20
inc eax
jne 0x4ed860
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
cmp dword [ebp - 0x28], ebx
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
je 0x4ed8aa
add ebx, dword [ebp - 0x14]
nop
or eax, dword [esi + ebx*4]
add ebx, 1
cmp edx, ebx
jne 0x4ed8a0
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
cmovl ecx, edx
test ecx, ecx
jle 0x4ed9cf
mov edx, ecx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ecx]
mov edi, dword [edi]
xor ebx, ebx
cmp edx, 3
jbe 0x4ed9c0
mov dword [ebp - 0x14], edx
mov ebx, edx
and ebx, 0xfffffffc
movd xmm0, eax
lea eax, [ebx - 4]
mov dword [ebp - 0x28], eax
shr eax, 2
add eax, 1
mov ecx, eax
and ecx, 3
xor edx, edx
cmp dword [ebp - 0x28], 0xc
jb 0x4ed956
and eax, 0xfffffffc
neg eax
xor edx, edx
nop word [eax + eax]
movdqu xmm1, xmmword [esi + edx*4]
movdqu xmm2, xmmword [esi + edx*4 + 0x10]
movdqu xmm3, xmmword [edi + edx*4]
pxor xmm3, xmm1
por xmm3, xmm0
movdqu xmm0, xmmword [edi + edx*4 + 0x10]
pxor xmm0, xmm2
movdqu xmm1, xmmword [esi + edx*4 + 0x20]
movdqu xmm2, xmmword [edi + edx*4 + 0x20]
pxor xmm2, xmm1
por xmm2, xmm0
por xmm2, xmm3
movdqu xmm1, xmmword [esi + edx*4 + 0x30]
movdqu xmm0, xmmword [edi + edx*4 + 0x30]
pxor xmm0, xmm1
por xmm0, xmm2
add edx, 0x10
add eax, 4
jne 0x4ed900
test ecx, ecx
je 0x4ed978
shl edx, 2
neg ecx
nop
movdqu xmm1, xmmword [esi + edx]
movdqu xmm2, xmmword [edi + edx]
pxor xmm2, xmm1
por xmm0, xmm2
add edx, 0x10
inc ecx
jne 0x4ed960
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
mov edx, dword [ebp - 0x14]
jmp 0x4ed9cb
mov esi, dword [ebp - 0x2c]
add esi, 1
mov edi, dword [ebp + 8]
cmp esi, dword [edi + 0x10]
jl 0x4ed5f0
jmp 0x4edd9e
mov ecx, dword [edi + ebx*4]
xor ecx, dword [esi + ebx*4]
or eax, ecx
add ebx, 1
cmp edx, ebx
jne 0x4ed9c0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x28], esi
xor ecx, esi
or ecx, eax
mov eax, dword [ebp - 0x18]
mov ecx, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov edx, dword [esi + 4]
xor ecx, ecx
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
jge 0x4edb2a
mov ebx, dword [esi]
sub edx, edi
xor ecx, ecx
mov eax, edi
cmp edx, 7
jbe 0x4edb13
mov dword [ebp - 0x30], edx
mov eax, edx
and eax, 0xfffffff8
lea edx, [eax - 8]
mov ecx, edx
shr ecx, 3
add ecx, 1
mov esi, ecx
and esi, 3
cmp edx, 0x18
jae 0x4eda4b
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
jmp 0x4edab7
lea edi, [ebx + edi*4]
add edi, 0x70
and ecx, 0xfffffffc
neg ecx
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
movdqu xmm2, xmmword [edi + edx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [edi + edx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [edi + edx*4 - 0x50]
movdqu xmm3, xmmword [edi + edx*4 - 0x40]
movdqu xmm4, xmmword [edi + edx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [edi + edx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [edi + edx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [edi + edx*4]
por xmm1, xmm2
add edx, 0x20
add ecx, 4
jne 0x4eda60
test esi, esi
mov edi, dword [ebp - 0x1c]
je 0x4edae7
add edx, edi
lea ecx, [ebx + edx*4]
add ecx, 0x10
neg esi
nop dword [eax + eax]
movdqu xmm2, xmmword [ecx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [ecx]
por xmm1, xmm2
add ecx, 0x20
inc esi
jne 0x4edad0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ecx, xmm0
cmp dword [ebp - 0x30], eax
jne 0x4edb0e
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x4edb2a
add eax, edi
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
nop word cs:[eax + eax]
or ecx, dword [ebx + eax*4]
add eax, 1
cmp edx, eax
jne 0x4edb20
cmp edx, edi
jge 0x4edb50
mov edx, dword [ebp - 0x20]
mov ebx, dword [edx]
mov eax, dword [ebp - 0x24]
cmp eax, 7
ja 0x4edb60
mov eax, dword [ebp - 0x14]
jmp 0x4edc50
mov edx, dword [ebp - 0x20]
jmp 0x4edc5a
and eax, 0xfffffff8
movd xmm0, ecx
lea edx, [eax - 8]
mov esi, edx
shr esi, 3
add esi, 1
mov ecx, esi
and ecx, 3
cmp edx, 0x18
jae 0x4edb84
pxor xmm1, xmm1
xor edx, edx
jmp 0x4edbf7
mov edx, dword [ebp - 0x14]
lea edi, [ebx + edx*4]
add edi, 0x70
and esi, 0xfffffffc
neg esi
pxor xmm1, xmm1
xor edx, edx
nop dword [eax + eax]
movdqu xmm2, xmmword [edi + edx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [edi + edx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [edi + edx*4 - 0x50]
movdqu xmm3, xmmword [edi + edx*4 - 0x40]
movdqu xmm4, xmmword [edi + edx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [edi + edx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [edi + edx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [edi + edx*4]
por xmm1, xmm2
add edx, 0x20
add esi, 4
jne 0x4edba0
test ecx, ecx
mov edi, dword [ebp - 0x1c]
je 0x4edc27
add edx, dword [ebp - 0x14]
lea edx, [ebx + edx*4]
add edx, 0x10
neg ecx
nop dword [eax]
movdqu xmm2, xmmword [edx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [edx]
por xmm1, xmm2
add edx, 0x20
inc ecx
jne 0x4edc10
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ecx, xmm0
cmp dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
je 0x4edc5a
add eax, dword [ebp - 0x14]
nop
or ecx, dword [ebx + eax*4]
add eax, 1
cmp edi, eax
jne 0x4edc50
mov eax, dword [ebp - 0x14]
cmp edi, eax
cmovl eax, edi
test eax, eax
jle 0x4edd7f
mov edx, dword [edx]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi]
xor esi, esi
cmp eax, 3
ja 0x4edc90
mov ebx, eax
mov eax, dword [ebp - 0x1c]
jmp 0x4edd70
mov dword [ebp - 0x14], eax
mov esi, eax
and esi, 0xfffffffc
movd xmm0, ecx
lea eax, [esi - 4]
mov ecx, eax
shr ecx, 2
add ecx, 1
mov edi, ecx
and edi, 3
xor ebx, ebx
cmp eax, 0xc
jae 0x4edcb8
mov eax, dword [ebp - 0x1c]
jmp 0x4edd26
and ecx, 0xfffffffc
neg ecx
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm1, xmmword [eax + ebx*4]
movdqu xmm2, xmmword [eax + ebx*4 + 0x10]
movdqu xmm3, xmmword [edx + ebx*4]
pxor xmm3, xmm1
por xmm3, xmm0
movdqu xmm0, xmmword [edx + ebx*4 + 0x10]
pxor xmm0, xmm2
movdqu xmm1, xmmword [eax + ebx*4 + 0x20]
movdqu xmm2, xmmword [edx + ebx*4 + 0x20]
pxor xmm2, xmm1
por xmm2, xmm0
por xmm2, xmm3
movdqu xmm1, xmmword [eax + ebx*4 + 0x30]
movdqu xmm0, xmmword [edx + ebx*4 + 0x30]
pxor xmm0, xmm1
por xmm0, xmm2
add ebx, 0x10
add ecx, 4
jne 0x4edcd0
test edi, edi
je 0x4edd48
shl ebx, 2
neg edi
nop
movdqu xmm1, xmmword [eax + ebx]
movdqu xmm2, xmmword [edx + ebx]
pxor xmm2, xmm1
por xmm0, xmm2
add ebx, 0x10
inc edi
jne 0x4edd30
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ecx, xmm0
mov ebx, dword [ebp - 0x14]
jmp 0x4edd7b
mov edi, dword [edx + esi*4]
xor edi, dword [eax + esi*4]
or ecx, edi
add esi, 1
cmp ebx, esi
jne 0x4edd70
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor edx, dword [eax + 0xc]
xor eax, eax
or edx, ecx
sete al
mov edx, dword [ebp - 0x18]
mov ecx, edx
not ecx
test eax, ecx
je 0x4ed9a0
mov eax, dword [ebp + 0xc]
and edx, 1
mov dword [eax], edx
mov edi, 1
mov ebx, dword [ebp + 0x18]
cmp byte [ebx + 0x14], 0
jne 0x4eddc7
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea edx, [ecx - 1]
mov dword [ebx + 8], edx
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebx + 0x10], eax
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
cmp byte [ebx + 0x14], 0
jne 0x4eddc7
jmp 0x4eddb4