Function at 0x100f7ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
xor ecx, ecx
movsd qword [esp + 0x34], xmm0
mov esi, dword [eax + 0x14]
imul esi, dword [eax + 0x10]
mov ebx, dword [eax]
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0
test esi, esi
je 0x100f7f34
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 0x100f7f06
test ecx, ecx
je 0x100f7f34
xor eax, eax
cmp ecx, 1
jle 0x100f7f2f
sar ecx, 1
inc eax
cmp ecx, 1
jg 0x100f7f27
lea edi, [eax - 5]
jmp 0x100f7f36
xor edi, edi
mov esi, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x10], 2
mov dword [esi + 0x1c], edi
call fcn.100f9ca0
push 0x2e
push 0
push 0x12
push ebx
call fcn.100f9d30
push 3
push 0
push 0x11
push ebx
call fcn.100f9d30
push 4
push 0
push 0
push ebx
call fcn.100f9d30
push dword [esi]
push ebx
call fcn.100f9d60
mov edx, dword [ebp + 0x28]
add esp, 0x3c
add edi, 0xffffffff
mov dword [esp + 0x24], 0
js 0x100f81e7
mov eax, 1
mov dword [esp + 0x28], 0
mov ecx, edi
rol eax, cl
mov dword [esp + 0x1c], eax
mov eax, edx
and eax, 4
mov dword [esp + 0x30], eax
mov eax, edx
and eax, 2
mov dword [esp + 0x34], eax
xor eax, eax
nop word [eax + eax]
mov ecx, dword [esi + 8]
add ecx, eax
mov dword [esp + 0x20], 3
mov eax, dword [esi + 0x1c]
sub eax, 4
mov dword [esp + 0x10], ecx
cmp edi, eax
mov eax, dword [esp + 0xc]
jge 0x100f7fee
cmp eax, 2
jae 0x100f7fee
mov byte [esp + 0x14], 1
test dl, 1
jne 0x100f7ff3
mov byte [esp + 0x14], 0
sub eax, 0
je 0x100f8041
sub eax, 1
je 0x100f8029
sub eax, 1
jne 0x100f805b
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
call fcn.100f7710
add esp, 0x14
test byte [ebp + 0x28], 0x20
je 0x100f805b
push ebx
call fcn.100fa110
add esp, 4
jmp 0x100f805b
push edx
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push edi
push dword [ebp + 8]
call fcn.100f7ad0
add esp, 0x14
jmp 0x100f805b
push edx
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
call fcn.100f7c70
add esp, 0x18
movsd xmm0, qword [0x103f94d8]
mov eax, dword [ebp + 0x34]
movsd qword [esp + 0x48], xmm0
test eax, eax
je 0x100f807e
mov ecx, dword [ebp + 0x14]
movsd xmm0, qword [eax + ecx*8]
movsd qword [esp + 0x48], xmm0
cmp dword [ebp + 0x1c], 1
push dword [ebp + 0x10]
push dword [ebp + 0x18]
jne 0x100f8091
call fcn.100f2b80
jmp 0x100f8096
call fcn.100f3180
mov edx, dword [esp + 0x24]
add esp, 8
cmp dword [esp + 0x30], 0
movd xmm2, dword [esp + 0x18]
fstp qword [esp + 0x40]
movsd xmm1, qword [esp + 0x40]
mulsd xmm1, qword [esp + 0x48]
mov eax, dword [ebp + 0x30]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mov ecx, dword [esp + 0xc]
mulsd xmm1, qword [ebp + 0x20]
cvtdq2pd xmm2, xmm2
mulsd xmm1, xmm0
mulsd xmm2, xmm1
mulsd xmm2, qword [0x102ab9c0]
mulsd xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [eax + 0x20]
addsd xmm0, xmm2
movsd qword [eax + 0x20], xmm0
je 0x100f810c
cmp ecx, 2
jne 0x100f8129
test edi, edi
jg 0x100f8129
mov eax, dword [esi + 0x1c]
add eax, 0xfffffffc
cmp edi, eax
jge 0x100f811c
test ecx, ecx
jne 0x100f8123
cmp edi, eax
jne 0x100f8148
cmp ecx, 2
jne 0x100f8148
test byte [ebp + 0x28], 1
je 0x100f8148
push ebx
call fcn.100f9e30
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 1
or dword [eax + 0x14], 1
jmp 0x100f8150
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 0x100f816b
xor ecx, ecx
dec edi
ror edx, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edx
test byte [eax + 0x14], 1
je 0x100f819f
test edi, edi
jle 0x100f819f
mov eax, dword [esi + 0x1c]
sub eax, 4
cmp edi, eax
jge 0x100f8192
cmp ecx, 2
jae 0x100f8192
test byte [ebp + 0x28], 1
je 0x100f8192
push ebx
call fcn.100f9e80
jmp 0x100f8198
push ebx
call fcn.100fa000
mov eax, dword [esp + 0x14]
add esp, 4
movsd xmm0, qword [esp + 0x38]
push ebx
movsd qword [eax + 8], xmm0
call fcn.100f9c90
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, dword [esp + 0x20]
cmp dword [esp + 0x34], 0
mov dword [ecx], eax
je 0x100f81cd
push ebx
call fcn.100f9f30
add esp, 4
mov eax, dword [esp + 0x28]
inc dword [esp + 0x24]
add eax, 0x18
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x28], eax
test edi, edi
jns 0x100f7fc0
test dl, 0x10
je 0x100f81f4
push ebx
call fcn.100fa040
jmp 0x100f81ff
test dl, 1
jne 0x100f8202
push ebx
call fcn.100f9e30
add esp, 4
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esi + 0x2c], eax
test eax, eax
jbe 0x100f8270
nop
mov esi, dword [esi + 8]
lea ebx, [edi + edi*2]
push dword [esp + 0x2c]
shl ebx, 3
add esi, ebx
call fcn.100f9c90
add esp, 4
cmp dword [esi], eax
jbe 0x100f8239
push dword [esp + 0x2c]
call fcn.100f9c90
add esp, 4
mov dword [esi], eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
cmp ecx, 1
jbe 0x100f8251
mov eax, dword [edx]
cmp byte [ecx + eax - 1], 0xff
jne 0x100f8251
lea eax, [ecx - 1]
mov dword [esi], eax
test edi, edi
jne 0x100f8259
xor ecx, ecx
jmp 0x100f8260
mov eax, dword [edx + 8]
mov ecx, dword [eax + ebx - 0x18]
mov eax, dword [esi]
inc edi
sub eax, ecx
mov dword [esi + 0x10], eax
mov esi, dword [ebp + 0xc]
cmp edi, dword [esi + 0x2c]
jb 0x100f8210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret