Function at 0x1008d130
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2068
call fcn.10153fd0
fldz
push ebx
fst qword [esp + 0x1c]
push ebp
fstp qword [esp + 0x28]
mov ebp, dword [esp + 0x2078]
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
xor edi, edi
mov dword [esp + 0x1c], ebx
lea ecx, [ecx]
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x2088]
jne 0x1008d175
mov eax, dword [esp + 0x2084]
mov ecx, dword [esi + 0x409b0]
mov ecx, dword [ecx]
cdq
push 0
push edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x409b0]
push eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
call eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
cmp cx, word [esi + 0xae]
jae 0x1008d270
mov edx, dword [esp + 0x1c]
mov eax, 0x40
sub eax, dword [esp + 0x207c]
imul edx, edx, 0x1020
mov dword [esp + 0x10], eax
lea eax, [esp + edx + 0x38]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x207c]
sub dword [esp + 0x18], ecx
jns 0x1008d228
lea ecx, [ecx]
mov eax, edi
mov edx, ebx
mov ecx, ebp
call fcn.10154180
xor esi, esi
mov edi, eax
mov ebx, edx
test ebp, ebp
jle 0x1008d21e
jmp 0x1008d200
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x409b0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov ecx, esi
shl eax, cl
add esi, 8
or edi, eax
cmp esi, ebp
jl 0x1008d200
add dword [esp + 0x18], ebp
js 0x1008d1e0
mov esi, dword [esp + 0x24]
mov ecx, 0x40
sub ecx, dword [esp + 0x18]
mov eax, edi
sub ecx, dword [esp + 0x207c]
mov edx, ebx
call fcn.10154180
mov ecx, dword [esp + 0x10]
call fcn.10154160
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov eax, dword [esp + 0x20]
add ecx, 2
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0xae]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x1008d1d0
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x1008d160
movzx edx, word [esi + 0xae]
dec edx
xor eax, eax
cmp edx, 4
mov dword [esp + 0x14], edx
jl 0x1008d412
lea esp, [esp]
movzx edx, word [esp + eax*2 + 0x105a]
movzx ecx, word [esp + eax*2 + 0x38]
movzx ebx, word [esp + eax*2 + 0x3a]
sub ecx, edx
mov esi, ecx
sar esi, 0x1f
mov edi, esi
xor edi, ecx
movzx ecx, word [esp + eax*2 + 0x1058]
sub ecx, ebx
sub edi, esi
mov dword [esp + 0x10], edi
mov edi, ecx
sar edi, 0x1f
fild dword [esp + 0x10]
mov ebp, edi
xor ebp, ecx
movzx ecx, word [esp + eax*2 + 0x105c]
sub ebp, edi
mov dword [esp + 0x10], ebp
sub ebx, ecx
mov edx, eax
and edx, 1
lea edx, [esp + edx*8 + 0x28]
mov ebp, ebx
sar ebp, 0x1f
fadd qword [edx]
mov esi, eax
not esi
and esi, 1
fstp qword [edx]
lea esi, [esp + esi*8 + 0x28]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ebp
xor ebp, ebx
sub ebp, dword [esp + 0x10]
fadd qword [esi]
movzx ebx, word [esp + eax*2 + 0x105a]
mov dword [esp + 0x10], ebp
fstp qword [esi]
movzx ebp, word [esp + eax*2 + 0x3c]
fild dword [esp + 0x10]
sub ebx, ebp
mov ebp, ebx
sar ebp, 0x1f
mov dword [esp + 0x10], ebp
xor ebp, ebx
sub ebp, dword [esp + 0x10]
movzx ebx, word [esp + eax*2 + 0x3c]
mov dword [esp + 0x10], ebp
movzx ebp, word [esp + eax*2 + 0x105e]
lea ecx, [eax - 1]
mov edi, ecx
sub ebx, ebp
and edi, 1
lea edi, [esp + edi*8 + 0x28]
mov ebp, ebx
sar ebp, 0x1f
fadd qword [edi]
not ecx
and ecx, 1
lea ecx, [esp + ecx*8 + 0x28]
fstp qword [edi]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ebp
xor ebp, ebx
sub ebp, dword [esp + 0x10]
fadd qword [ecx]
movzx ebx, word [esp + eax*2 + 0x3e]
mov dword [esp + 0x10], ebp
fstp qword [ecx]
fild dword [esp + 0x10]
fadd qword [edx]
fstp qword [edx]
movzx edx, word [esp + eax*2 + 0x105c]
sub edx, ebx
mov ebx, edx
sar ebx, 0x1f
mov ebp, ebx
xor ebp, edx
sub ebp, ebx
movzx edx, word [esp + eax*2 + 0x3e]
mov dword [esp + 0x10], ebp
add eax, 4
fild dword [esp + 0x10]
fadd qword [esi]
fstp qword [esi]
movzx esi, word [esp + eax*2 + 0x1058]
sub edx, esi
mov esi, edx
sar esi, 0x1f
mov ebx, esi
xor ebx, edx
movzx edx, word [esp + eax*2 + 0x1056]
sub ebx, esi
movzx esi, word [esp + eax*2 + 0x38]
mov dword [esp + 0x10], ebx
sub edx, esi
mov esi, edx
fild dword [esp + 0x10]
sar esi, 0x1f
fadd qword [edi]
fstp qword [edi]
mov edi, esi
xor edi, edx
mov edx, dword [esp + 0x14]
sub edi, esi
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fadd qword [ecx]
fstp qword [ecx]
lea ecx, [edx - 3]
cmp eax, ecx
jl 0x1008d2a0
cmp eax, edx
jge 0x1008d485
jmp 0x1008d420
movzx esi, word [esp + eax*2 + 0x105a]
movzx ecx, word [esp + eax*2 + 0x38]
sub ecx, esi
mov esi, ecx
sar esi, 0x1f
mov ebx, esi
xor ebx, ecx
movzx ecx, word [esp + eax*2 + 0x1058]
sub ebx, esi
movzx esi, word [esp + eax*2 + 0x3a]
mov dword [esp + 0x10], ebx
sub ecx, esi
mov edi, eax
fild dword [esp + 0x10]
and edi, 1
lea edi, [esp + edi*8 + 0x28]
mov esi, ecx
sar esi, 0x1f
fadd qword [edi]
mov ebx, esi
xor ebx, ecx
sub ebx, esi
fstp qword [edi]
mov edi, eax
not edi
mov dword [esp + 0x10], ebx
and edi, 1
lea edi, [esp + edi*8 + 0x28]
fild dword [esp + 0x10]
inc eax
cmp eax, edx
fadd qword [edi]
fstp qword [edi]
jl 0x1008d420
fld qword [esp + 0x28]
fdiv qword [esp + 0x30]
call fcn.10153210
fmul qword [0x1023a910]
pop edi
pop esi
fstp dword [esp + 8]
pop ebp
fld dword [esp + 4]
pop ebx
add esp, 0x2068
ret 0x10