Function at 0x100f5d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0x10]
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
shl eax, 9
xor ecx, ecx
add eax, 0x10178878
movsd qword [ebp - 0x40], xmm0
push esi
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
push edi
test eax, eax
je 0x100f5da1
mov edi, dword [ebx + 0x80]
mov dword [ebp - 0x18], edi
test edi, edi
je 0x100f5d81
mov eax, dword [ebx + 0x8c]
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x74]
mov ebx, dword [ebp - 0x24]
lea esi, [eax + edx*4]
nop dword [eax]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
cmovg eax, ecx
add esi, ebx
mov ecx, eax
sub edi, 1
jne 0x100f5d60
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x20], edx
cmp edx, eax
jb 0x100f5d43
test ecx, ecx
je 0x100f5da1
xor eax, eax
cmp ecx, 1
jle 0x100f5d9c
sar ecx, 1
inc eax
cmp ecx, 1
jg 0x100f5d94
add eax, 0xfffffffb
jmp 0x100f5da3
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x100f5db7
pop edi
mov dword [esi + 0x30], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
mov dword [ebp - 0x10], 2
push ebx
mov dword [ebp - 8], eax
call fcn.100f7500
push 0x2e
push 0
push 0x12
push ebx
call fcn.100f7650
push 3
push 0
push 0x11
push ebx
call fcn.100f7650
push 4
push 0
push 0
push ebx
call fcn.100f7650
push dword [esi]
push ebx
call fcn.100f7350
mov ecx, dword [ebp - 8]
add esp, 0x3c
xor edi, edi
test ecx, ecx
js 0x100f608e
movsd xmm0, qword [ebp + 0x20]
mov eax, 1
mov edx, dword [ebp + 0x28]
rol eax, cl
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x30]
movsd qword [ebp - 0x50], xmm0
movsd xmm0, qword [0x10119808]
mov dword [ebp - 0x2c], eax
mov eax, edx
movsd qword [ebp - 0x48], xmm0
and eax, 2
movsd xmm0, qword [0x10171d08]
mov dword [ebp - 4], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], edi
movsd qword [ebp - 0x58], xmm0
nop dword [eax]
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
sub eax, 4
cmp ecx, eax
jge 0x100f5e6f
cmp dword [ebp - 0x10], 2
jae 0x100f5e6f
test dl, 1
je 0x100f5e6f
mov al, 1
jmp 0x100f5e71
xor al, al
mov byte [ebp - 0x14], al
test edi, edi
je 0x100f5ea5
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18]
test byte [esi + ebx - 4], 1
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
je 0x100f5ea5
push ebx
cmp al, 1
jne 0x100f5e97
call fcn.100f70e0
jmp 0x100f5e9c
call fcn.100f7590
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub eax, 0
je 0x100f5eea
sub eax, 1
je 0x100f5ed7
sub eax, 1
jne 0x100f5efc
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.100f4b20
add esp, 0x10
test byte [ebp - 4], 0x20
je 0x100f5efc
push ebx
call fcn.100f75c0
add esp, 4
jmp 0x100f5efc
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.100f4f60
add esp, 0x10
jmp 0x100f5efc
push edx
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.100f5430
add esp, 0x14
movsd xmm0, qword [ebp - 0x48]
mov ecx, dword [ebp + 0x34]
movsd qword [ebp - 0x38], xmm0
test ecx, ecx
je 0x100f5f1f
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x38]
jae 0x100f5f1f
movsd xmm0, qword [ecx + eax*8]
movsd qword [ebp - 0x38], xmm0
cmp dword [ebp + 0x1c], 1
push dword [ebp + 0x10]
push dword [ebp + 0x18]
jne 0x100f5f32
call fcn.100f3cc0
jmp 0x100f5f37
call fcn.100f3d00
movd xmm0, dword [ebp - 0x20]
add esp, 8
movd xmm2, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
fstp qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x28]
mulsd xmm1, qword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cvtdq2pd xmm0, xmm0
mov edx, dword [ebp - 0x10]
mulsd xmm1, qword [ebp - 0x50]
cvtdq2pd xmm2, xmm2
mulsd xmm1, xmm0
movsd xmm0, qword [eax + 0x20]
mulsd xmm2, xmm1
mulsd xmm2, qword [ebp - 0x58]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movaps xmm1, xmm2
addsd xmm1, qword [ebp - 0x40]
movsd qword [eax + 0x20], xmm0
mov eax, dword [ebp - 0xc]
movsd qword [ebp - 0x40], xmm1
movsd qword [eax + ecx + 8], xmm1
mov ecx, dword [ebp - 8]
cmp edx, 2
jne 0x100f5fa8
test ecx, ecx
je 0x100f6005
mov eax, dword [ebp - 4]
test al, 4
jne 0x100f6008
test al, 1
je 0x100f5fcd
mov eax, dword [esi + 0x1c]
add eax, 0xfffffffc
cmp ecx, eax
jne 0x100f5fc4
cmp edx, 2
je 0x100f6005
cmp ecx, eax
mov eax, dword [ebp - 4]
jge 0x100f5fcd
test edx, edx
jne 0x100f6008
cmp byte [ebp - 0x14], 1
jne 0x100f5fe5
and eax, 0x10
push eax
push ebx
call fcn.100f70b0
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x100f5fec
mov dword [ebp - 0x24], 3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push ebx
and dword [eax + ecx + 0x14], 0xfffffffe
call fcn.100f7390
add esp, 4
add eax, dword [ebp - 0x24]
jmp 0x100f6045
mov eax, dword [ebp - 4]
and eax, 0x10
cmp byte [ebp - 0x14], 1
jne 0x100f601d
push eax
push ebx
call fcn.100f7020
add esp, 8
jmp 0x100f6031
push ebx
test eax, eax
je 0x100f6029
call fcn.100f7240
jmp 0x100f602e
call fcn.100f7300
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push ebx
or dword [eax + ecx + 0x14], 1
call fcn.100f7390
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + edx], eax
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, 3
jne 0x100f606c
mov eax, dword [ebp - 0x20]
dec dword [ebp - 8]
ror eax, 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x30], 0
je 0x100f607b
push ebx
call fcn.100f7450
add esp, 4
add dword [ebp - 0xc], 0x18
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
test ecx, ecx
jns 0x100f5e50
mov dword [esi + 0x30], edi
test edi, edi
je 0x100f60cf
push ebx
call fcn.100f7390
mov edi, dword [esi + 0x30]
add esp, 4
mov edx, eax
test edi, edi
je 0x100f60cf
lea ecx, [edi + edi*2]
shl ecx, 3
nop dword [eax]
mov eax, dword [esi + 8]
lea ecx, [ecx - 0x18]
dec edi
mov esi, dword [eax + ecx]
cmp esi, edx
jbe 0x100f60c3
mov dword [eax + ecx], edx
jmp 0x100f60c5
mov edx, esi
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x100f60b0
mov edi, dword [esi + 0x30]
xor edx, edx
test edi, edi
je 0x100f610b
mov esi, dword [esi + 8]
lea edi, [edx + edx*2]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + edi*8]
mov eax, dword [ebx]
cmp byte [ecx + eax - 1], 0xff
jne 0x100f60ee
dec ecx
mov dword [esi + edi*8], ecx
test edx, edx
jne 0x100f60f6
xor eax, eax
jmp 0x100f60fd
mov eax, dword [ebx + 8]
mov eax, dword [eax + edi*8 - 0x18]
sub ecx, eax
inc edx
mov dword [esi + edi*8 + 0x10], ecx
mov esi, ebx
cmp edx, dword [esi + 0x30]
jb 0x100f60d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret