Function at 0x52bef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004b4910
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov ecx, dword [ebx + 4]
push edi
mov edi, dword [esp + 0x2c]
lea ebp, [ebp - 1]
shr ebp, 0x1f
dec ebp
mov dword [esp + 0x24], ebp
mov eax, dword [edi + 4]
xor eax, ecx
and eax, ebp
movd xmm0, ebp
xor ecx, eax
pshufd xmm3, xmm0, 0
mov dword [ebx + 4], ecx
xor dword [edi + 4], eax
mov eax, dword [esp + 0x30]
lea edx, [eax - 1]
cmp edx, 9
ja case.default.0x52bf3c
jmp dword [edx*4 + 0x52c130]
mov ebp, 0xa
lea ecx, [eax - 0xa]
cmp eax, ebp
jle 0x52c035
cmp ecx, 4
jb 0x52c00e
mov esi, dword [edi]
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov ebx, eax
lea eax, [esi + 0x28]
mov dword [esp + 0x2c], eax
lea esi, [esi + edx*4]
mov eax, dword [esp + 0x10]
add eax, 0x28
mov dword [esp + 0x14], eax
lea eax, [ebx + edx*4]
cmp dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
ja 0x52bf98
cmp esi, edx
jae 0x52c00e
cmp dword [esp + 0x2c], edi
ja 0x52bfa2
cmp esi, edi
jae 0x52c00e
cmp dword [esp + 0x2c], ebx
ja 0x52bfac
cmp esi, ebx
jae 0x52c00e
mov esi, dword [esp + 0x18]
cmp edx, edi
ja 0x52bfb8
cmp esi, edi
jae 0x52c00e
cmp edx, ebx
ja 0x52bfc0
cmp esi, ebx
jae 0x52c00e
and ecx, reloc.WS2_32.dll_closesocket
jns 0x52bfcd
dec ecx
or ecx, 0xfffffffc
inc ecx
mov esi, dword [esp + 0x10]
mov edx, eax
sub edx, ecx
mov ecx, dword [edi]
nop word [eax + eax]
movups xmm1, xmmword [esi + ebp*4]
movups xmm2, xmmword [ecx + ebp*4]
pxor xmm2, xmm1
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [esi + ebp*4], xmm0
movups xmm0, xmmword [ecx + ebp*4]
pxor xmm0, xmm2
movups xmmword [ecx + ebp*4], xmm0
add ebp, 4
cmp ebp, edx
jl 0x52bfe0
cmp ebp, eax
jge 0x52c035
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
lea edx, [eax + ebp*4]
mov eax, dword [edi]
mov esi, dword [eax + ebp*4]
xor esi, ecx
and esi, dword [esp + 0x24]
xor ecx, esi
mov dword [edx], ecx
mov eax, dword [edi]
xor dword [eax + ebp*4], esi
inc ebp
cmp ebp, dword [esp + 0x30]
jl 0x52c012
mov ebp, dword [esp + 0x24]
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0x24]
mov ecx, dword [esi + 0x24]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0x24], ecx
mov eax, dword [edi]
xor dword [eax + 0x24], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x20]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0x20], ecx
mov eax, dword [edi]
xor dword [eax + 0x20], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, dword [esi + 0x1c]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi]
xor dword [eax + 0x1c], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x18]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0x18], ecx
mov eax, dword [edi]
xor dword [eax + 0x18], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0x14]
mov ecx, dword [esi + 0x14]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0x14], ecx
mov eax, dword [edi]
xor dword [eax + 0x14], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0x10]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi]
xor dword [eax + 0x10], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 0xc], ecx
mov eax, dword [edi]
xor dword [eax + 0xc], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, dword [esi + 8]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi]
xor dword [eax + 8], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
xor edx, ecx
and edx, ebp
xor ecx, edx
mov dword [esi + 4], ecx
mov eax, dword [edi]
xor dword [eax + 4], edx
mov eax, dword [edi]
mov esi, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [esi]
xor ecx, edx
and ecx, ebp
xor edx, ecx
mov dword [esi], edx
mov eax, dword [edi]
pop edi
pop esi
pop ebp
xor dword [eax], ecx
pop ebx
add esp, 0x10
ret