Function at 0x100314f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 0x28], edx
mov ecx, dword [ebp + 8]
mov eax, ecx
mov edx, dword [ebp + 0xc]
shr eax, 4
mov dword [esp + 0x20], eax
mov eax, ecx
and eax, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0xc], eax
cmp ecx, 0x10
jb 0x10031af8
cmp ecx, 0x1000000
ja 0x10031af8
lea eax, [esp + 0x50]
push eax
lea ecx, [edi + 0x118]
call fcn.10030650
add esp, 4
test eax, eax
jne 0x10031afd
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
test ecx, ecx
je 0x1003168d
lea edx, [esp + 0x50]
mov edi, eax
sub edi, edx
lea edx, [eax + 0xf]
mov dword [esp + 0x10], edx
nop dword [eax]
dec ecx
cmp dword [esp + 0xc], 0
mov dword [esp + 0x20], ecx
je 0x100315b0
cmp dword [esp + 0x28], 0
jne 0x100315b0
test ecx, ecx
jne 0x100315b0
movaps xmm0, xmmword [esp + 0x50]
lea edx, [esp + 0x50]
mov ecx, edx
movaps xmmword [esp + 0x60], xmm0
call fcn.100312f0
mov eax, dword [esp + 8]
lea ecx, [esp + 0x40]
xor edx, edx
cmp ecx, dword [esp + 0x10]
ja 0x100315db
lea ecx, [esp + 0x4f]
cmp ecx, eax
jb 0x100315db
lea eax, [esp + 0x50]
add eax, edx
mov cl, byte [eax + edi]
xor cl, byte [eax]
mov byte [esp + edx + 0x40], cl
inc edx
cmp edx, 0x10
jb 0x100315c4
jmp 0x100315eb
movups xmm0, xmmword [eax]
movaps xmm1, xmmword [esp + 0x50]
xorps xmm1, xmm0
movups xmmword [esp + 0x40], xmm1
cmp dword [esp + 0x28], 1
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, eax
push eax
jne 0x10031604
call fcn.10030650
jmp 0x10031609
call fcn.10030be0
add esp, 4
test eax, eax
jne 0x10031afd
lea ecx, [esp + 0x5f]
cmp esi, ecx
ja 0x10031627
lea ecx, [esi + 0xf]
lea edx, [esp + 0x50]
cmp ecx, edx
jae 0x10031640
lea ecx, [esp + 0x4f]
cmp esi, ecx
ja 0x10031653
lea ecx, [esi + 0xf]
lea edx, [esp + 0x40]
cmp ecx, edx
jb 0x10031653
nop word [eax + eax]
mov cl, byte [esp + eax + 0x40]
xor cl, byte [esp + eax + 0x50]
mov byte [esi + eax], cl
inc eax
cmp eax, 0x10
jb 0x10031640
jmp 0x10031660
movups xmm0, xmmword [esp + 0x40]
xorps xmm0, xmmword [esp + 0x50]
movups xmmword [esi], xmm0
lea edx, [esp + 0x50]
mov ecx, edx
call fcn.100312f0
mov eax, dword [esp + 8]
add esi, 0x10
add dword [esp + 0x10], 0x10
add eax, 0x10
mov ecx, dword [esp + 0x20]
add edi, 0x10
mov dword [esp + 8], eax
test ecx, ecx
jne 0x10031580
cmp dword [esp + 0xc], 0
je 0x10031ae5
cmp dword [esp + 0x28], 0
lea eax, [esp + 0x50]
lea edi, [esp + 0x60]
cmovne edi, eax
lea edx, [esi - 0x10]
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
cmp dword [esp + 0xc], ecx
jbe 0x10031860
cmp dword [esp + 0xc], 8
jb 0x10031803
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x40]
lea edx, [esp + edx + 0x3f]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
dec edx
add edx, eax
cmp edi, edx
mov dword [esp + 0x24], edx
mov edi, dword [esp + 0x1c]
ja 0x100316fb
cmp dword [esp + 0x10], eax
jae 0x10031803
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x40]
dec eax
add eax, edi
cmp edx, eax
lea edx, [esi - 0x10]
ja 0x10031717
cmp dword [esp + 0x10], edi
jae 0x10031803
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x40]
dec edi
add edi, edx
mov dword [esp + 0x18], edi
cmp eax, edi
mov edi, dword [esp + 0x1c]
ja 0x10031738
cmp dword [esp + 0x10], edx
jae 0x10031803
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x40]
dec eax
add eax, esi
cmp edi, eax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 8]
ja 0x1003175d
cmp dword [esp + 0x10], esi
jae 0x10031803
cmp esi, dword [esp + 0x24]
ja 0x1003176d
cmp dword [esp + 0x14], eax
jae 0x10031803
mov eax, dword [esp + 0xc]
lea edx, [esi - 0x10]
dec eax
add eax, edi
cmp esi, eax
mov eax, dword [esp + 0x14]
ja 0x10031787
cmp eax, edi
jae 0x10031803
cmp esi, dword [esp + 0x18]
ja 0x10031791
cmp eax, edx
jae 0x10031803
mov eax, dword [esp + 0xc]
mov edx, edi
sub edx, esi
and eax, 0xfffffff8
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x18]
sub edx, esi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
sub edx, esi
mov dword [esp + 0x10], eax
mov eax, esi
mov dword [esp + 0x14], edx
nop
mov edx, dword [esp + 0x24]
lea eax, [eax + 8]
movq xmm0, qword [eax - 0x18]
add ecx, 8
movq qword [eax - 8], xmm0
movq xmm0, qword [edi + eax - 8]
movq xmm1, qword [edx + eax - 8]
xorps xmm1, xmm0
mov edx, dword [esp + 0x14]
movq qword [edx + eax - 8], xmm1
cmp ecx, dword [esp + 0x10]
jb 0x100317c0
mov edi, dword [esp + 0x1c]
mov eax, ecx
mov dword [esp + 0x18], ecx
cmp eax, dword [esp + 0xc]
jae 0x10031860
sub dword [esp + 8], esi
lea eax, [esp + 0x40]
sub edi, esi
lea edx, [esi + ecx]
sub eax, esi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
mov ecx, eax
mov dword [esp + 0x18], eax
movzx eax, byte [edx - 0x10]
lea edx, [edx + 1]
mov byte [edx - 1], al
movzx eax, byte [edi + edx - 1]
mov edi, dword [esp + 0x24]
xor al, byte [edi + edx - 1]
mov edi, dword [esp + 0x14]
mov byte [edi + edx - 1], al
mov edi, dword [esp + 8]
sub ecx, 1
jne 0x10031830
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, 0x10
sub eax, ecx
mov dword [esp + 8], eax
cmp ecx, 0x10
jae 0x10031a46
cmp eax, 8
jb 0x10031a06
lea eax, [esp + 0x40]
add eax, ecx
lea edx, [esp + 0x5f]
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x6f]
cmovne eax, edx
lea edx, [esi - 0x10]
cmp dword [esp + 0x14], eax
ja 0x100318b5
lea eax, [esp + 0x4f]
mov dword [esp + 0x18], eax
lea eax, [ecx + edi]
cmp dword [esp + 0x18], eax
jae 0x10031a06
lea eax, [edx + 0xf]
cmp dword [esp + 0x14], eax
ja 0x100318d3
lea eax, [esp + 0x4f]
mov dword [esp + 0x18], eax
lea eax, [ecx + edx]
cmp dword [esp + 0x18], eax
jae 0x10031a06
mov eax, dword [esp + 8]
cmp eax, 0x40
jb 0x100319b7
and eax, 0x3f
mov dword [esp + 0x10], eax
mov eax, 0x10
sub eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esi + ecx]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x20]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, edx
sub eax, edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x50]
sub eax, edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x40]
sub eax, esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
movups xmm0, xmmword [esi - 0x10]
mov edi, dword [esp + 0xc]
add ecx, 0x40
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
xorps xmm1, xmm0
movups xmm0, xmmword [esi - 0x40]
movups xmmword [esi + edi - 0x40], xmm1
mov edi, dword [esp + 0x38]
movups xmm1, xmmword [eax - 0x50]
xorps xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [esi + edi - 0x40], xmm1
mov edi, dword [esp + 0x3c]
movups xmm1, xmmword [edx + eax - 0x40]
mov edx, dword [esp + 0x30]
xorps xmm1, xmm0
movups xmm0, xmmword [esi - 0x20]
movups xmmword [edi + eax - 0x40], xmm1
movups xmm1, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [eax + edx - 0x40], xmm1
mov edx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jb 0x10031940
cmp dword [esp + 0x10], 8
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jb 0x10031a01
mov eax, dword [esp + 8]
and eax, 7
mov esi, 0x10
sub esi, eax
sub edx, edi
mov dword [esp + 0x2c], esi
lea eax, [ecx + edi]
lea esi, [esp + 0x40]
sub esi, edi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
nop dword [eax]
movq xmm1, qword [eax + edx]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [edi + eax - 8], xmm1
cmp ecx, esi
jb 0x100319e0
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
jae 0x10031a46
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x40]
sub esi, edi
lea edx, [ecx + edi]
mov dword [esp + 0x2c], esi
sub eax, edi
mov edi, dword [esp + 0x2c]
mov esi, 0x10
sub esi, ecx
mov dword [esp + 0x30], eax
mov ecx, eax
nop word [eax + eax]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, byte [edx - 1]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x10031a30
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x28], 1
lea eax, [esp + 0x40]
mov esi, dword [esp + 0x20]
mov edx, eax
mov ecx, dword [esp + 0x34]
push eax
jne 0x10031a63
call fcn.10030650
jmp 0x10031a68
call fcn.10030be0
add esp, 4
test eax, eax
jne 0x10031afd
lea eax, [esp + 0x4f]
xor edx, edx
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x10031a88
lea eax, [esp + 0x40]
cmp ecx, eax
jae 0x10031aa3
cmp dword [esp + 0x28], edx
lea edi, [esp + 0x5f]
lea eax, [esp + 0x6f]
cmovne eax, edi
mov edi, dword [esp + 0x1c]
cmp esi, eax
ja 0x10031ad7
cmp ecx, edi
jb 0x10031ad7
lea eax, [esp + 0x40]
sub edi, eax
sub esi, eax
nop dword [eax + eax]
lea ecx, [esp + 0x40]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + esi], al
cmp edx, 0x10
jb 0x10031ab0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10045387
mov esp, ebp
pop ebp
ret
movups xmm1, xmmword [edi]
movups xmm0, xmmword [esp + 0x40]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10045387
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffde
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.10045387
mov esp, ebp
pop ebp
ret