Function at 0x100dddf0
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 0x100dde50
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 0x100dde22
test ecx, ecx
je 0x100dde50
xor eax, eax
cmp ecx, 1
jle 0x100dde4b
sar ecx, 1
inc eax
cmp ecx, 1
jg 0x100dde43
lea esi, [eax - 5]
jmp 0x100dde52
xor esi, esi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x10], 2
mov dword [edi + 0x1c], esi
call fcn.100dfce0
push 0x2e
push 0
push 0x12
push ebx
call fcn.100dfd70
push 3
push 0
push 0x11
push ebx
call fcn.100dfd70
push 4
push 0
push 0
push ebx
call fcn.100dfd70
push dword [edi]
push ebx
call fcn.100dfda0
mov edx, dword [ebp + 0x28]
add esp, 0x3c
add esi, 0xffffffff
mov dword [esp + 0x20], 0
js 0x100de096
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 0x100ddeef
cmp eax, 2
jae 0x100ddeef
mov byte [esp + 0x14], 1
test dl, 1
jne 0x100ddef4
mov byte [esp + 0x14], 0
sub eax, 0
je 0x100ddf42
sub eax, 1
je 0x100ddf2a
sub eax, 1
jne 0x100ddf5c
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
call fcn.100dd6e0
add esp, 0x14
test byte [ebp + 0x28], 0x20
je 0x100ddf5c
push ebx
call fcn.100e0010
add esp, 4
jmp 0x100ddf5c
push edx
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.100dda30
add esp, 0x14
jmp 0x100ddf5c
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.100ddbe0
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.100de1d0
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 0x100ddfc5
cmp ecx, 2
jne 0x100ddfe2
test esi, esi
jg 0x100ddfe2
mov eax, dword [edi + 0x1c]
add eax, 0xfffffffc
cmp esi, eax
jge 0x100ddfd5
test ecx, ecx
jne 0x100ddfdc
cmp esi, eax
jne 0x100ddffd
cmp ecx, 2
jne 0x100ddffd
test byte [ebp + 0x28], 1
je 0x100ddffd
push ebx
call fcn.100dfe10
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x1c], 1
or dword [eax + 0x14], 1
jmp 0x100de005
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 0x100de01a
xor ecx, ecx
dec esi
mov dword [esp + 0xc], ecx
test byte [eax + 0x14], 1
je 0x100de04e
test esi, esi
jle 0x100de04e
mov eax, dword [edi + 0x1c]
sub eax, 4
cmp esi, eax
jge 0x100de041
cmp ecx, 2
jae 0x100de041
test byte [ebp + 0x28], 1
je 0x100de041
push ebx
call fcn.100dfe50
jmp 0x100de047
push ebx
call fcn.100dff80
mov eax, dword [esp + 0x14]
add esp, 4
movsd xmm0, qword [esp + 0x30]
push ebx
movsd qword [eax + 8], xmm0
call fcn.100dfcd0
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, dword [esp + 0x1c]
cmp dword [esp + 0x2c], 0
mov dword [ecx], eax
je 0x100de07c
push ebx
call fcn.100dff00
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 0x100ddec1
test dl, 0x10
je 0x100de0a3
push ebx
call fcn.100dffc0
jmp 0x100de0ae
test dl, 1
jne 0x100de0b1
push ebx
call fcn.100dfe10
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 0x100de121
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.100dfcd0
add esp, 4
cmp dword [esi], eax
jbe 0x100de0e9
push ebx
call fcn.100dfcd0
add esp, 4
mov dword [esi], eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
cmp ecx, 1
jbe 0x100de101
mov eax, dword [edx]
cmp byte [ecx + eax - 1], 0xff
jne 0x100de101
lea eax, [ecx - 1]
mov dword [esi], eax
test edi, edi
jne 0x100de109
xor ecx, ecx
jmp 0x100de114
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 0x100de0c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret