Function at 0x10131550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x10588520]
xor eax, ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], ecx
cmp ecx, esi
jle 0x1013197d
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [edx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x101315ca
lea eax, [ebx + 2]
mov ecx, dword [esp + 4]
push dword [ebp + 0x14]
push edi
push dword [esp + 0x18]
push eax
call fcn.10131550
add esp, 0x10
mov eax, ebx
mov dword [esp + 0x10], eax
cmp eax, esi
mov edx, dword [esp + 0xc]
jle 0x1013197d
mov dword [esp + 0x14], esi
cmp dword [esp + 0x24], 0
je 0x101318ca
mov eax, dword [edx + 0x18]
xor eax, dword [esp + 8]
mov esi, dword [edx + 8]
mov ebx, dword [esp + 0x14]
shl ebx, 4
lea ecx, [eax + ebx]
mov edx, dword [esp + 0x10]
shl edx, 4
mov dword [esp + 0x18], edx
add eax, edx
push ecx
push eax
mov edi, dword [esp + 0xc]
push edi
call dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 0xc
cmp dword [ecx + 8], esi
jne 0x10131990
test eax, eax
je 0x1013163e
mov edx, dword [esp + 8]
mov eax, dword [edx]
xor eax, edx
mov edx, dword [esp + 0x18]
movups xmm0, xmmword [eax + edx]
movaps xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [eax + ebx]
movups xmmword [eax + edx], xmm0
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [eax + ebx], xmm0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub edi, eax
cmp edi, 1
je 0x1013197d
mov dword [esp + 0x20], edi
sar edi, 1
add edi, eax
mov eax, dword [ecx + 0x18]
mov esi, dword [esp + 8]
xor eax, esi
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [eax + ebx]
shl edi, 4
add eax, edi
push ecx
push eax
push dword [esp + 0xc]
call dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
cmp dword [edx + 8], ecx
jne 0x101319a6
mov ecx, dword [esi]
xor ecx, esi
test eax, eax
je 0x101316c0
movups xmm0, xmmword [ecx + edi]
movaps xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [ecx + ebx]
movups xmmword [ecx + edi], xmm0
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [ecx + ebx], xmm0
jmp 0x1013170e
lea eax, [ecx + edi]
add ecx, dword [esp + 0x18]
push eax
push ecx
push dword [esp + 0xc]
call dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
cmp dword [edx + 8], ecx
jne 0x101319a6
test eax, eax
je 0x1013170e
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
xor eax, ecx
movups xmm0, xmmword [eax + edi]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x18]
movups xmm0, xmmword [eax + ecx]
movups xmmword [eax + edi], xmm0
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [eax + ecx], xmm0
cmp dword [esp + 0x20], 2
mov ecx, dword [esp + 0x14]
je 0x1013197d
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x28], eax
mov esi, dword [esp + 8]
mov eax, dword [esi]
xor eax, esi
movups xmm0, xmmword [eax + edi]
movaps xmmword [esp + 0x30], xmm0
mov ebx, dword [esp + 0x28]
shl ebx, 4
movups xmm0, xmmword [eax + ebx]
movups xmmword [eax + edi], xmm0
movaps xmm0, xmmword [esp + 0x30]
mov dword [esp + 0x18], ebx
movups xmmword [eax + ebx], xmm0
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov esi, dword [esp + 0x28]
nop dword [eax]
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ebx, eax
shl ebx, 4
add ebx, 0x10
mov dword [esp + 0x20], eax
mov edi, dword [esp + 4]
nop dword [eax + eax]
mov eax, dword [edx + 0x18]
xor eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, eax
add eax, ebx
push ecx
push eax
push edi
call dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
cmp dword [edx + 8], ecx
jne 0x10131990
test eax, eax
je 0x101317d0
mov eax, dword [esp + 0x20]
inc eax
add ebx, 0x10
mov dword [esp + 0x20], eax
cmp dword [esp + 0x10], eax
mov ecx, dword [esp + 8]
jg 0x10131780
jmp 0x1013199b
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x2c], eax
mov edi, esi
shl edi, 4
add edi, 0xfffffff0
mov ecx, dword [esp + 8]
nop word cs:[eax + eax]
mov eax, dword [edx + 0x18]
xor eax, ecx
lea ecx, [eax + edi]
add eax, dword [esp + 0x18]
push ecx
push eax
push dword [esp + 0xc]
call dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
cmp dword [edx + 8], ecx
jne 0x101319a6
test eax, eax
je 0x10131830
dec esi
add edi, 0xfffffff0
cmp esi, dword [esp + 0x14]
mov ecx, dword [esp + 8]
jg 0x101317f0
jmp 0x101319b4
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
xor eax, ecx
cmp esi, dword [esp + 0x2c]
jle 0x10131860
dec esi
movups xmm0, xmmword [eax + ebx]
movaps xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [eax + edi]
movups xmmword [eax + ebx], xmm0
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [eax + edi], xmm0
jmp 0x10131760
mov ecx, dword [esp + 0x18]
movups xmm0, xmmword [eax + ecx]
movaps xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [eax + ebx]
movups xmmword [eax + ecx], xmm0
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [eax + ebx], xmm0
mov edi, dword [esp + 0x24]
mov eax, edi
shr eax, 1
shr edi, 2
add edi, eax
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov esi, dword [esp + 0x14]
sub eax, esi
inc eax
mov ecx, dword [esp + 0x28]
sub ecx, ebx
cmp eax, ecx
mov dword [esp + 0x24], edi
jge 0x101315a0
mov ecx, dword [esp + 4]
push dword [ebp + 0x14]
push edi
push ebx
push esi
call fcn.10131550
add esp, 0x10
add ebx, 2
mov esi, ebx
mov eax, dword [esp + 0x10]
jmp 0x101315ba
mov esi, dword [esp + 0x10]
sub esi, dword [esp + 0x14]
jle 0x1013197d
inc esi
mov edi, esi
shr edi, 1
inc edi
mov ebx, dword [esp + 0x10]
nop word cs:[eax + eax]
lea eax, [edi - 2]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.101319d0
mov eax, dword [esp + 0x1c]
add esp, 0x10
dec edi
cmp edi, 1
ja 0x101318f0
lea edi, [ebx - 1]
shl ebx, 4
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x1c], edx
nop word [eax + eax]
mov eax, dword [eax + 0x18]
xor eax, dword [esp + 8]
mov edx, dword [esp + 0x1c]
movups xmm0, xmmword [eax + edx]
movaps xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [eax + ebx]
movups xmmword [eax + edx], xmm0
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [eax + ebx], xmm0
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push 0
push dword [ebp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.101319d0
mov eax, dword [esp + 0x1c]
add esp, 0x10
dec esi
dec edi
add ebx, 0xfffffff0
cmp esi, 1
ja 0x10131930
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.101ac85a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105341ed
push edi
call fcn.10124dd0
push 0x105341ca
push edi
call fcn.10124dd0
push 0x105341ed
push dword [esp + 8]
call fcn.10124dd0
push 0x105341ca
push dword [esp + 8]
call fcn.10124dd0
int3