Function at 0x10086700
Capabilities:
Create thread
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bcc4b
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.1018b4f0
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1030], ecx
mov esi, dword [ebp + 0x10]
xor bl, bl
cmp dword [ebp + 8], 0
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x103c], 0
je 0x10086a8a
cmp dword [ebp + 0xc], 0
jbe 0x10086a8a
cmp dword [esi + 0x10], 0
je 0x10086a8a
cmp dword [edi + 0x10], 0
je 0x10086a8a
cmp dword [esi + 0x14], 0x10
mov edx, esi
mov dword [ebp - 0x1024], 0
jb 0x1008679a
mov edx, dword [esi]
push 0x1022de54
lea ecx, [ebp - 0x1024]
call fcn.10089750
add esp, 4
test eax, eax
jne 0x10086a5a
mov eax, dword [ebp - 0x1024]
test eax, eax
je 0x100867c8
push eax
call fcn.10193392
add esp, 4
mov ecx, esi
call fcn.10088f00
test eax, eax
je 0x10086a5a
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1034], ecx
movss dword [ebp - 0x1038], xmm0
mov byte [ebp - 0x1029], cl
cmp dword [ebp + 0x18], ecx
ja 0x100867fa
cmp dword [ebp + 0x1c], ecx
jbe 0x10086810
lea ecx, [eax + 0xfff]
mov byte [ebp - 0x1029], 1
shr ecx, 0xc
mov dword [ebp - 0x1034], ecx
mov ecx, edi
call fcn.10087ab0
cmp dword [esi + 0x14], 0x10
jb 0x1008681f
mov esi, dword [esi]
push 0x1022de54
mov edx, esi
lea ecx, [ebp - 0x1020]
call fcn.10089750
add esp, 4
cmp dword [edi + 0x14], 0x10
jb 0x1008683c
mov edi, dword [edi]
push 0x102310d0
mov edx, edi
lea ecx, [ebp - 0x1028]
call fcn.10089750
mov eax, dword [ebp - 0x1020]
add esp, 4
test eax, eax
je 0x10086a77
cmp dword [ebp - 0x1028], 0
je 0x10086a60
xor ebx, ebx
xor esi, esi
push eax
mov dword [ebp - 0x1024], ebx
call fcn.10193131
add esp, 4
test eax, eax
jne 0x10086a4d
nop word [eax + eax]
mov eax, dword [ebp - 0x1030]
cmp byte [eax + 0x50], 0
jne 0x10086a57
push dword [ebp - 0x1020]
lea eax, [ebp - 0x1010]
push 0x1000
push 1
push eax
call fcn.101973fd
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x10086905
xor ecx, ecx
test edi, edi
je 0x100868ed
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
inc esi
mov al, byte [edx + ebx]
xor byte [ebp + ecx - 0x1010], al
inc ecx
cmp ecx, edi
jb 0x100868d0
mov ebx, dword [ebp - 0x1024]
push dword [ebp - 0x1028]
lea eax, [ebp - 0x1010]
push edi
push 1
push eax
call fcn.10196fc7
add esp, 0x10
mov eax, dword [ebp - 0x1030]
inc ebx
mov dword [ebp - 0x1024], ebx
cmp byte [eax + 0x50], 0
jne 0x10086a37
cmp byte [ebp - 0x1029], 0
je 0x10086a37
mov eax, dword [ebp - 0x1034]
xorps xmm1, xmm1
test eax, eax
je 0x1008694e
movd xmm1, ebx
movd xmm0, eax
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
subss xmm0, dword [ebp - 0x1038]
cmp ebx, 1
je 0x1008696b
comiss xmm0, dword [0x10231df0]
jb 0x10086a37
mov eax, dword [ebp + 0x1c]
movss dword [ebp - 0x1038], xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10231f10]
mov eax, dword [ebp + 0x18]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x10231f10]
cvtpd2ps xmm1, xmm1
addss xmm0, xmm1
call fcn.1018aea0
mov edi, eax
cmp edi, dword [ebp - 0x103c]
jbe 0x10086a37
push 8
mov dword [ebp - 0x103c], edi
call fcn.1018a730
mov ecx, dword [ebp - 0x1030]
add esp, 4
mov dword [ebp - 0x101c], eax
mov dword [eax], ecx
mov dword [eax + 4], edi
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100866a0
push 0
push 0
call fcn.1019d81f
add esp, 0x18
mov dword [ebp - 0x1018], eax
test eax, eax
je 0x10086aaa
lea ecx, [ebp - 0x1018]
mov dword [ebp - 4], 1
call fcn.10066520
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1014], 0
jne 0x10086abb
push dword [ebp - 0x1020]
call fcn.10193131
add esp, 4
test eax, eax
je 0x10086890
mov eax, dword [ebp - 0x1030]
cmp byte [eax + 0x50], 0
sete bl
mov eax, dword [ebp - 0x1020]
test eax, eax
je 0x10086a77
push eax
call fcn.10193392
add esp, 4
mov dword [ebp - 0x1020], 0
mov ecx, dword [ebp - 0x1028]
test ecx, ecx
je 0x10086a8a
push ecx
call fcn.10193392
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret 0x18
push 6
mov dword [ebp - 0x1014], 0
call fcn.1018ce60
call fcn.1019d8b0
int3