Function at 0x5a2db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 4]
mov edx, dword [ecx + 4]
xor ebp, ebp
mov esi, edi
sub esi, edx
mov dword [esp + 4], esi
jge 0x5a2ef8
mov ebx, dword [ecx]
mov dword [esp], edx
sub edx, edi
xor ebp, ebp
mov esi, edi
cmp edx, 8
jb 0x5a2ee1
mov dword [esp + 8], edx
lea eax, [edx - 8]
mov esi, eax
shr esi, 3
inc esi
mov ebp, esi
and ebp, 3
cmp eax, 0x18
jae 0x5a2e0c
pxor xmm0, xmm0
xor ecx, ecx
pxor xmm1, xmm1
jmp 0x5a2e77
and esi, 0xfffffffc
lea eax, [ebx + edi*4]
add eax, 0x70
pxor xmm0, xmm0
xor ecx, ecx
pxor xmm1, xmm1
nop
movdqu xmm2, xmmword [eax + ecx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [eax + ecx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [eax + ecx*4 - 0x50]
movdqu xmm3, xmmword [eax + ecx*4 - 0x40]
movdqu xmm4, xmmword [eax + ecx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [eax + ecx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [eax + ecx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [eax + ecx*4]
por xmm1, xmm2
add ecx, 0x20
add esi, 0xfffffffc
jne 0x5a2e20
mov esi, dword [esp + 8]
and esi, 0xfffffff8
test ebp, ebp
je 0x5a2eaa
add ecx, edi
lea eax, [ebx + ecx*4]
add eax, 0x10
shl ebp, 5
xor ecx, ecx
nop
movdqu xmm2, xmmword [eax + ecx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [eax + ecx]
por xmm1, xmm2
add ecx, 0x20
cmp ebp, ecx
jne 0x5a2e90
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ebp, xmm0
cmp dword [esp + 8], esi
jne 0x5a2ed7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp]
jmp 0x5a2ef8
add esi, edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp]
nop word cs:[eax + eax]
or ebp, dword [ebx + esi*4]
inc esi
cmp edx, esi
jne 0x5a2ef0
cmp edx, edi
jge 0x5a3008
mov ebx, dword [eax]
mov esi, dword [esp + 4]
cmp esi, 8
jae 0x5a2f12
mov esi, edx
jmp 0x5a3000
movd xmm0, ebp
lea ecx, [esi - 8]
mov esi, ecx
shr esi, 3
inc esi
mov eax, esi
and eax, 3
cmp ecx, 0x18
jae 0x5a2f31
pxor xmm1, xmm1
xor ecx, ecx
jmp 0x5a2f98
and esi, 0xfffffffc
lea ebp, [ebx + edx*4]
add ebp, 0x70
pxor xmm1, xmm1
xor ecx, ecx
movdqu xmm2, xmmword [ebp + ecx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [ebp + ecx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [ebp + ecx*4 - 0x50]
movdqu xmm3, xmmword [ebp + ecx*4 - 0x40]
movdqu xmm4, xmmword [ebp + ecx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [ebp + ecx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [ebp + ecx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [ebp + ecx*4]
por xmm1, xmm2
add ecx, 0x20
add esi, 0xfffffffc
jne 0x5a2f40
mov esi, dword [esp + 4]
and esi, 0xfffffff8
test eax, eax
je 0x5a2fca
add ecx, edx
lea ecx, [ebx + ecx*4]
add ecx, 0x10
shl eax, 5
xor ebp, ebp
movdqu xmm2, xmmword [ecx + ebp - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [ecx + ebp]
por xmm1, xmm2
add ebp, 0x20
cmp eax, ebp
jne 0x5a2fb0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ebp, xmm0
cmp dword [esp + 4], esi
jne 0x5a2ff4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x5a3008
add esi, edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
nop
or ebp, dword [ebx + esi*4]
inc esi
cmp edi, esi
jne 0x5a3000
cmp edi, edx
cmovl edx, edi
test edx, edx
jle 0x5a3101
mov esi, dword [eax]
mov edi, dword [ecx]
xor ecx, ecx
cmp edx, 4
jb 0x5a30f4
movd xmm0, ebp
lea eax, [edx - 4]
mov ecx, eax
shr ecx, 2
inc ecx
mov ebp, ecx
and ebp, 3
cmp eax, 0xc
jae 0x5a303f
xor ebx, ebx
jmp 0x5a30a6
and ecx, 0xfffffffc
xor ebx, ebx
nop word cs:[eax + eax]
movdqu xmm1, xmmword [esi + ebx*4]
movdqu xmm2, xmmword [esi + ebx*4 + 0x10]
movdqu xmm3, xmmword [edi + ebx*4]
pxor xmm3, xmm1
por xmm3, xmm0
movdqu xmm0, xmmword [edi + ebx*4 + 0x10]
pxor xmm0, xmm2
movdqu xmm1, xmmword [esi + ebx*4 + 0x20]
movdqu xmm2, xmmword [edi + ebx*4 + 0x20]
pxor xmm2, xmm1
por xmm2, xmm0
por xmm2, xmm3
movdqu xmm1, xmmword [esi + ebx*4 + 0x30]
movdqu xmm0, xmmword [edi + ebx*4 + 0x30]
pxor xmm0, xmm1
por xmm0, xmm2
add ebx, 0x10
add ecx, 0xfffffffc
jne 0x5a3050
mov dword [esp], edx
mov ecx, edx
and ecx, 0xfffffffc
test ebp, ebp
je 0x5a30d9
lea edx, [edi + ebx*4]
lea ebx, [esi + ebx*4]
shl ebp, 4
xor eax, eax
nop dword [eax]
movdqu xmm1, xmmword [ebx + eax]
movdqu xmm2, xmmword [edx + eax]
pxor xmm2, xmm1
por xmm0, xmm2
add eax, 0x10
cmp ebp, eax
jne 0x5a30c0
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd ebp, xmm0
mov edx, dword [esp]
jmp 0x5a30fd
mov eax, dword [edi + ecx*4]
xor eax, dword [esi + ecx*4]
or ebp, eax
inc ecx
cmp edx, ecx
jne 0x5a30f4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x20]
xor ecx, dword [eax + 0xc]
xor eax, eax
or ecx, ebp
sete al
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret