Function at 0x100d3a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov esi, dword [edx + 8]
mov dword [ebp - 8], edx
lea ecx, [eax + edi]
cmp ecx, esi
jle 0x100d3a7b
pop edi
mov byte [edx + 0x10], 1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
test bl, 3
je 0x100d3b34
mov ecx, eax
mov dword [ebp - 0xc], ecx
nop dword [eax]
mov eax, ecx
cmp edi, 8
jl 0x100d3b34
movzx eax, byte [ebx]
mov dword [ebp - 4], eax
mov eax, esi
sub eax, ecx
cmp eax, 8
jge 0x100d3ab5
mov dword [edx + 0xc], esi
mov eax, esi
mov byte [edx + 0x10], 1
jmp 0x100d3b1c
mov esi, dword [ebp - 0xc]
and ecx, 0x1f
rol dword [ebp - 4], cl
mov dword [ebp - 0x10], ecx
lea eax, [esi + 8]
sar esi, 5
mov dword [edx + 0xc], eax
mov eax, dword [edx]
mov edi, dword [eax + esi*4]
lea ebx, [eax + esi*4]
mov eax, 0x1f
sub eax, ecx
mov ecx, 0x7f
shrx esi, ecx, eax
mov eax, esi
and eax, 1
mov ecx, dword [ebx + eax*4]
lea edx, [ebx + eax*4]
xor ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
and ecx, esi
xor dword [edx], ecx
mov ecx, edi
xor ecx, dword [ebp - 4]
mov edx, 0xff
shlx eax, edx, eax
mov edx, dword [ebp - 8]
and ecx, eax
xor ecx, edi
mov edi, dword [ebp + 0xc]
mov dword [ebx], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [edx + 8]
mov eax, dword [edx + 0xc]
inc ebx
mov dword [ebp - 0xc], eax
sub edi, 8
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edi
mov ecx, eax
test bl, 3
jne 0x100d3a90
mov esi, eax
cmp edi, 0x20
jl 0x100d3c45
test al, 7
jne 0x100d3ba9
sar eax, 3
mov esi, edi
add eax, dword [edx]
sar esi, 3
mov ecx, eax
or ecx, esi
mov dword [ebp + 8], esi
or ecx, ebx
test cl, 3
jne 0x100d3b79
sar esi, 2
test esi, esi
jle 0x100d3b92
mov edx, ebx
sub edx, eax
mov ecx, dword [edx + eax]
lea eax, [eax + 4]
mov dword [eax - 4], ecx
sub esi, 1
jne 0x100d3b66
mov edx, dword [ebp - 8]
jmp 0x100d3b92
test esi, esi
jle 0x100d3b95
mov edi, ebx
sub edi, eax
mov cl, byte [eax + edi]
lea eax, [eax + 1]
mov byte [eax - 1], cl
sub esi, 1
jne 0x100d3b81
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [esi*8]
add ebx, esi
sub edi, eax
mov dword [ebp + 8], ebx
add dword [edx + 0xc], eax
mov esi, dword [edx + 0xc]
cmp edi, 0x20
jl 0x100d3c45
mov ecx, esi
mov eax, 0x20
and ecx, 0x1f
sar esi, 5
sub eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
imul eax, ecx, 0x84
mov eax, dword [eax + 0x10118498]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx*4 + 0x10118418]
mov dword [ebp - 0x18], eax
mov eax, dword [edx]
lea eax, [eax + esi*4]
mov dword [ebp - 0x10], eax
mov eax, edi
shr eax, 5
mov dword [ebp + 8], eax
neg eax
shl eax, 5
add edi, eax
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 0x10]
nop dword [eax]
mov ecx, dword [edi]
lea edi, [edi + 4]
mov esi, dword [ebx]
add ebx, 4
mov eax, dword [ebp - 4]
and ecx, dword [ebp - 0xc]
shlx eax, esi, eax
or ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [edi - 4], ecx
cmp eax, 0x20
jae 0x100d3c30
mov ecx, dword [edi]
and ecx, dword [ebp - 0x18]
shrx eax, esi, eax
or ecx, eax
mov dword [edi], ecx
mov esi, dword [edx + 0xc]
add esi, 0x20
sub dword [ebp + 8], 1
mov dword [edx + 0xc], esi
jne 0x100d3c00
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
cmp edi, 8
jl 0x100d3cec
mov eax, edi
shr eax, 3
mov dword [ebp - 4], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp + 0xc], edi
nop
mov ecx, dword [edx + 8]
mov eax, ecx
movzx edi, byte [ebx]
sub eax, esi
cmp eax, 8
jge 0x100d3c7a
mov dword [edx + 0xc], ecx
mov esi, ecx
mov byte [edx + 0x10], 1
jmp 0x100d3cdb
lea eax, [esi + 8]
mov ecx, esi
mov dword [edx + 0xc], eax
and ecx, 0x1f
mov eax, dword [edx]
sar esi, 5
lea ebx, [eax + esi*4]
rol edi, cl
mov dword [ebp - 0x18], ecx
mov eax, 0x1f
sub eax, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [ebx]
mov ecx, 0x7f
shrx esi, ecx, eax
mov eax, esi
and eax, 1
mov ecx, dword [ebx + eax*4]
lea edx, [ebx + eax*4]
xor ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
and ecx, esi
xor dword [edx], ecx
mov edx, 0xff
mov ecx, edi
xor ecx, dword [ebp - 0xc]
shlx eax, edx, eax
mov edx, dword [ebp - 8]
and ecx, eax
xor ecx, edi
mov dword [ebx], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [edx + 0xc]
inc ebx
sub dword [ebp - 4], 1
mov dword [ebp + 8], ebx
jne 0x100d3c60
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100d3d87
mov ecx, dword [edx + 8]
mov eax, ecx
movzx ebx, byte [ebx]
sub eax, esi
cmp eax, edi
jge 0x100d3d1c
mov eax, dword [ebp - 8]
pop ebx
mov byte [edx + 0x10], 1
pop edi
cmp byte [eax + 0x10], 0
mov dword [edx + 0xc], ecx
sete al
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + edi]
mov ecx, esi
mov dword [edx + 0xc], eax
and ecx, 0x1f
mov eax, dword [edx]
sar esi, 5
lea edx, [eax + esi*4]
rol ebx, cl
lea eax, [edi - 1]
mov dword [ebp + 0xc], ebx
mov edi, dword [edx]
mov esi, 1
shlx ebx, esi, eax
mov esi, 0x1f
mov dword [ebp + 8], ecx
sub esi, ecx
mov dword [ebp - 0x18], edx
lea eax, [ebx - 1]
shrx esi, eax, esi
mov eax, esi
and eax, 1
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ecx, dword [ebp + 0xc]
lea eax, [ebx*2 - 1]
and ecx, esi
xor dword [edx], ecx
mov ecx, dword [ebp + 8]
shlx ecx, eax, ecx
mov eax, edi
xor eax, dword [ebp + 0xc]
and ecx, eax
mov eax, dword [ebp - 0x18]
xor ecx, edi
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
cmp byte [eax + 0x10], 0
sete al
mov esp, ebp
pop ebp
ret 8