Function at 0x415680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6c3740
call fcn.00401920
mov edi, eax
push esi
mov dword [ebp - 0x18], edi
call fcn.00417f50
mov esi, eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x10], esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f1be2
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f1be2
add esp, 0x10
mov dword [ebp - 4], eax
push section..data
push 0x6c3740
call fcn.00401910
add esp, 4
push eax
push esi
call fcn.00413ce0
push dword [ebp - 0x14]
push esi
push 0x6c3740
call fcn.00401630
add esp, 0x18
xor esi, esi
fstp st(0)
test edi, edi
jle 0x4158a1
mov edi, dword [ebp - 4]
nop word [eax + eax]
mov eax, dword [ebp - 0x14]
mov dword [edi], esi
movsd xmm0, qword [eax + esi*8]
xorps xmm0, xmmword [0x540fc0]
call fcn.004f2d81
movsd xmm1, qword [0x540fb0]
inc esi
addsd xmm0, xmm1
mov eax, dword [ebp - 0x18]
divsd xmm1, xmm0
movsd qword [edi + 8], xmm1
add edi, 0x10
cmp esi, eax
jl 0x415720
mov esi, dword [ebp - 4]
push 0x416310
push 0x10
push eax
push esi
call dword [0x4f8528]
mov ecx, dword [ebp + 8]
add esp, 0x10
mov edi, esi
xor esi, esi
lea edx, [ecx + 8]
lea eax, [ecx + 0x128]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x24
jge 0x415830
mov eax, dword [edi]
inc esi
lea ecx, [eax + eax*2]
mov eax, dword [0x6c7234]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
movsd xmm0, qword [edi + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movsd qword [edx], xmm0
mov dword [ecx + 0x1bc], esi
movsd xmm1, qword [eax + 8]
mulsd xmm1, qword [0x4f9e50]
movsd xmm0, qword [edi + 8]
comisd xmm0, xmm1
jb 0x4157d0
mov dword [ecx + 0x1b8], esi
cmp byte [0x6c71cd], 2
jbe 0x41581a
mov eax, dword [ebp - 8]
mov ecx, dword [edi]
mov eax, dword [eax]
push dword [eax + 8]
push ecx
push ecx
push dword [ebp - 0x10]
call fcn.004164a0
mov eax, dword [ebp - 0xc]
fstp qword [esp]
sub esp, 8
movsd xmm0, qword [eax]
mulsd xmm0, qword [0x4f9e60]
movsd qword [esp], xmm0
push str._7.4f__7.4f__3u__s_n
call fcn.0040bb30
mov edx, dword [ebp - 0xc]
add esp, 0x1c
mov ecx, dword [ebp + 8]
add dword [ebp - 8], 4
add edx, 8
add edi, 0x10
mov dword [ebp - 0xc], edx
cmp esi, dword [ebp - 0x18]
jl 0x415781
mov esi, dword [ebp - 4]
mov eax, dword [ecx + 0x1b8]
test eax, eax
je 0x4158ef
cmp eax, 1
jne 0x4158e5
push dword [esi]
push dword [ebp - 0x10]
call fcn.004164a0
mov al, byte [0x6c71cd]
add esp, 8
fstp qword [ebp - 0x1c]
cmp al, 1
jbe 0x415887
movsd xmm0, qword [ebp - 0x1c]
sub esp, 8
movsd qword [esp], xmm0
push str.Novelty_of_closest_match_is__.3f._n
push 0x405
call fcn.00456c00
mov al, byte [0x6c71cd]
add esp, 0x10
movsd xmm1, qword [0x4f9e58]
movsd xmm0, qword [ebp - 0x1c]
comisd xmm1, xmm0
jbe 0x4158be
mov ecx, dword [ebp + 8]
xor eax, eax
jmp 0x4158f2
mov esi, dword [ebp - 4]
push 0x416310
push 0x10
push edi
push esi
call dword [0x4f8528]
mov ecx, dword [ebp + 8]
add esp, 0x10
jmp 0x415833
test al, al
je 0x4158e2
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push str.Novelty_of_closest_match_is__.3f____.3f__ignoring._n
push 0x405
call fcn.00456c00
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1b8], 0
or eax, 0xffffffff
push dword [ebp - 0x10]
mov dword [ecx + 0x1c0], eax
call fcn.004f1beb
push dword [ebp - 0x14]
call fcn.004f1beb
push esi
call fcn.004f1beb
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret