Function at 0x100dc5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
xor ecx, ecx
movsd qword [esp + 0x2c], xmm0
mov esi, dword [eax + 0x14]
imul esi, dword [eax + 0x10]
mov ebx, dword [eax]
push edi
mov dword [esp + 0x18], 0
test esi, esi
je 0x100dc630
mov edi, dword [eax + 8]
mov eax, dword [edi]
lea edi, [edi + 4]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
cmovg eax, ecx
mov ecx, eax
sub esi, 1
jne 0x100dc602
test ecx, ecx
je 0x100dc630
xor eax, eax
cmp ecx, 1
jle 0x100dc62b
sar ecx, 1
inc eax
cmp ecx, 1
jg 0x100dc623
lea esi, [eax - 5]
jmp 0x100dc632
xor esi, esi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x10], 2
mov dword [edi + 0x1c], esi
call fcn.100de4c0
push 0x2e
push 0
push 0x12
push ebx
call fcn.100de550
push 3
push 0
push 0x11
push ebx
call fcn.100de550
push 4
push 0
push 0
push ebx
call fcn.100de550
push dword [edi]
push ebx
call fcn.100de580
mov edx, dword [ebp + 0x28]
add esp, 0x3c
add esi, 0xffffffff
mov dword [esp + 0x20], 0
js 0x100dc876
mov eax, edx
and eax, 4
mov dword [esp + 0x28], eax
mov eax, edx
and eax, 2
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 8]
add ecx, eax
mov dword [esp + 0x1c], 3
mov eax, dword [edi + 0x1c]
sub eax, 4
mov dword [esp + 0x10], ecx
cmp esi, eax
mov eax, dword [esp + 0xc]
jge 0x100dc6cf
cmp eax, 2
jae 0x100dc6cf
mov byte [esp + 0x14], 1
test dl, 1
jne 0x100dc6d4
mov byte [esp + 0x14], 0
sub eax, 0
je 0x100dc722
sub eax, 1
je 0x100dc70a
sub eax, 1
jne 0x100dc73c
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
call fcn.100dbec0
add esp, 0x14
test byte [ebp + 0x28], 0x20
je 0x100dc73c
push ebx
call fcn.100de7f0
add esp, 4
jmp 0x100dc73c
push edx
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.100dc210
add esp, 0x14
jmp 0x100dc73c
push edx
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
call fcn.100dc3c0
add esp, 0x18
push dword [ebp + 0x34]
movsd xmm0, qword [ebp + 0x20]
push dword [ebp + 0x2c]
sub esp, 8
movsd qword [esp], xmm0
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esp + 0x3c]
call fcn.100dc9b0
mov eax, dword [ebp + 0x30]
add esp, 0x28
cmp dword [esp + 0x28], 0
mov ecx, dword [esp + 0xc]
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
addsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [eax + 0x20]
addsd xmm0, qword [esp + 0x38]
movsd qword [eax + 0x20], xmm0
je 0x100dc7a5
cmp ecx, 2
jne 0x100dc7c2
test esi, esi
jg 0x100dc7c2
mov eax, dword [edi + 0x1c]
add eax, 0xfffffffc
cmp esi, eax
jge 0x100dc7b5
test ecx, ecx
jne 0x100dc7bc
cmp esi, eax
jne 0x100dc7dd
cmp ecx, 2
jne 0x100dc7dd
test byte [ebp + 0x28], 1
je 0x100dc7dd
push ebx
call fcn.100de5f0
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x1c], 1
or dword [eax + 0x14], 1
jmp 0x100dc7e5
mov eax, dword [esp + 0x10]
and dword [eax + 0x14], 0xfffffffe
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, 3
jne 0x100dc7fa
xor ecx, ecx
dec esi
mov dword [esp + 0xc], ecx
test byte [eax + 0x14], 1
je 0x100dc82e
test esi, esi
jle 0x100dc82e
mov eax, dword [edi + 0x1c]
sub eax, 4
cmp esi, eax
jge 0x100dc821
cmp ecx, 2
jae 0x100dc821
test byte [ebp + 0x28], 1
je 0x100dc821
push ebx
call fcn.100de630
jmp 0x100dc827
push ebx
call fcn.100de760
mov eax, dword [esp + 0x14]
add esp, 4
movsd xmm0, qword [esp + 0x30]
push ebx
movsd qword [eax + 8], xmm0
call fcn.100de4b0
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, dword [esp + 0x1c]
cmp dword [esp + 0x2c], 0
mov dword [ecx], eax
je 0x100dc85c
push ebx
call fcn.100de6e0
add esp, 4
mov eax, dword [esp + 0x24]
inc dword [esp + 0x20]
add eax, 0x18
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x24], eax
test esi, esi
jns 0x100dc6a1
test dl, 0x10
je 0x100dc883
push ebx
call fcn.100de7a0
jmp 0x100dc88e
test dl, 1
jne 0x100dc891
push ebx
call fcn.100de5f0
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [edi + 0x2c], eax
xor edi, edi
cmp dword [edx + 0x2c], edi
jbe 0x100dc901
mov esi, dword [edx + 8]
lea eax, [edi + edi*2]
shl eax, 3
push ebx
mov dword [esp + 0x30], eax
add esi, eax
call fcn.100de4b0
add esp, 4
cmp dword [esi], eax
jbe 0x100dc8c9
push ebx
call fcn.100de4b0
add esp, 4
mov dword [esi], eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
cmp ecx, 1
jbe 0x100dc8e1
mov eax, dword [edx]
cmp byte [ecx + eax - 1], 0xff
jne 0x100dc8e1
lea eax, [ecx - 1]
mov dword [esi], eax
test edi, edi
jne 0x100dc8e9
xor ecx, ecx
jmp 0x100dc8f4
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [eax + ecx - 0x18]
mov eax, dword [esi]
inc edi
sub eax, ecx
mov dword [esi + 0x10], eax
cmp edi, dword [edx + 0x2c]
jb 0x100dc8a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret