Function at 0x479340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 4]
xor ecx, edx
push edi
lea esi, [esi - 1]
shr esi, 0x1f
dec esi
and ecx, esi
mov dword [ebp + 8], esi
xor edx, ecx
mov dword [ebx + 4], edx
xor dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
movd xmm0, esi
pshufd xmm3, xmm0, 0
lea edx, [ecx - 1]
cmp edx, 9
ja case.default.0x479382
jmp dword [edx*4 + 0x4795c0]
mov edx, 0xa
lea esi, [ecx - 0xa]
mov dword [ebp - 4], edx
cmp ecx, edx
jle case.0x479382.10
cmp esi, 8
jb 0x479493
mov edi, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [ebx]
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x28]
mov dword [ebp - 8], edx
lea edi, [edi + ecx*4]
mov edx, dword [ebp - 0xc]
add edi, 0xfffffffc
add edx, 0x28
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
cmp dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov edx, 0xa
ja 0x4793e3
cmp edi, dword [ebp - 0x10]
jae 0x479493
cmp dword [ebp - 8], eax
ja 0x4793f0
cmp edi, eax
jae 0x479493
cmp dword [ebp - 8], ebx
ja 0x4793fd
cmp edi, ebx
jae 0x479493
mov edi, dword [ebp - 0x10]
cmp edi, eax
ja 0x47940d
cmp dword [ebp - 0x14], eax
jae 0x479493
cmp edi, ebx
ja 0x479416
cmp dword [ebp - 0x14], ebx
jae 0x479493
and esi, reloc.WS2_32.dll_getsockopt
jns 0x479423
dec esi
or esi, 0xfffffff8
inc esi
mov edi, ecx
sub edi, esi
mov esi, dword [eax]
mov eax, dword [ebp - 0xc]
nop dword [eax]
movups xmm1, xmmword [eax + edx*4]
movups xmm0, xmmword [esi + edx*4]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [eax + edx*4], xmm0
movups xmm0, xmmword [esi + edx*4]
pxor xmm2, xmm0
movups xmmword [esi + edx*4], xmm2
movups xmm1, xmmword [eax + edx*4 + 0x10]
movups xmm2, xmmword [esi + edx*4 + 0x10]
pxor xmm2, xmm1
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [eax + edx*4 + 0x10], xmm0
movups xmm0, xmmword [esi + edx*4 + 0x10]
pxor xmm0, xmm2
movups xmmword [esi + edx*4 + 0x10], xmm0
add edx, 8
cmp edx, edi
jl 0x479430
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], edx
cmp edx, ecx
jge case.0x479382.10
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
lea esi, [ecx + edx*4]
mov ecx, dword [eax]
mov edx, dword [esi]
mov edi, dword [ecx + edi*4]
xor edi, edx
and edi, dword [ebp + 8]
xor edx, edi
mov dword [esi], edx
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
xor dword [ecx + edx*4], edi
inc edx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 0x14]
jl 0x479497
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0x24]
mov edx, dword [edi + 0x24]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0x24], edx
mov ecx, dword [eax]
xor dword [ecx + 0x24], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0x20]
mov edx, dword [edi + 0x20]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0x20], edx
mov ecx, dword [eax]
xor dword [ecx + 0x20], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0x1c]
mov edx, dword [edi + 0x1c]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0x1c], edx
mov ecx, dword [eax]
xor dword [ecx + 0x1c], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0x18]
mov edx, dword [edi + 0x18]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0x18], edx
mov ecx, dword [eax]
xor dword [ecx + 0x18], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0x14]
mov edx, dword [edi + 0x14]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0x14], edx
mov ecx, dword [eax]
xor dword [ecx + 0x14], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0x10]
mov edx, dword [edi + 0x10]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0x10], edx
mov ecx, dword [eax]
xor dword [ecx + 0x10], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 0xc]
mov edx, dword [edi + 0xc]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 0xc], edx
mov ecx, dword [eax]
xor dword [ecx + 0xc], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 8]
mov edx, dword [edi + 8]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 8], edx
mov ecx, dword [eax]
xor dword [ecx + 8], esi
mov ecx, dword [eax]
mov edi, dword [ebx]
mov esi, dword [ecx + 4]
mov edx, dword [edi + 4]
xor esi, edx
and esi, dword [ebp + 8]
xor edx, esi
mov dword [edi + 4], edx
mov ecx, dword [eax]
xor dword [ecx + 4], esi
mov esi, dword [ebx]
mov ecx, dword [eax]
pop edi
mov edx, dword [esi]
mov ecx, dword [ecx]
xor ecx, edx
and ecx, dword [ebp + 8]
xor edx, ecx
mov dword [esi], edx
mov eax, dword [eax]
pop esi
pop ebx
xor dword [eax], ecx
mov esp, ebp
pop ebp
ret