Function at 0x100bff60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.1011fc40
mov eax, dword [0x101b2070]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], esi
cmp edi, esi
jne 0x100bffa1
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1011bab4
add esp, 0x34
ret
push ebp
call fcn.10082a70
mov ebp, eax
cmp ebp, esi
je 0x100c02d0
push 0x100bff10
push 0x101b71d8
call fcn.10078220
add esp, 8
neg eax
sbb eax, eax
test dword [0x101b71e0], eax
je 0x100c02d0
push ebx
cmp dword [0x101b71dc], esi
je 0x100c00ae
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x101b71d4]
push ecx
mov esi, eax
call fcn.100781b0
mov edx, dword [0x101b6d88]
push esi
push edx
call fcn.10078310
mov ebx, eax
mov eax, dword [0x101b71d4]
push eax
mov dword [esp + 0x28], ebx
call fcn.100781d0
add esp, 0x10
test ebx, ebx
jne 0x100c0027
mov ecx, dword [0x101b71d0]
push ecx
call fcn.100781b0
add esp, 4
mov edx, dword [0x101b71bc]
mov eax, dword [0x101b71c0]
mov ecx, dword [0x101b71b8]
mov dword [esp + 0x24], edx
mov edx, dword [0x101b6d8c]
mov dword [esp + 0x28], eax
mov eax, dword [0x101b6d90]
mov dword [esp + 0x2c], edx
mov edx, dword [0x101b6d94]
mov esi, ecx
add ecx, edi
mov dword [esp + 0x30], eax
mov eax, dword [0x101b6d98]
mov dword [esp + 0x34], edx
mov edx, dword [0x101b6d9c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [0x101b71b8], ecx
cmp ecx, 0x3ff
jb 0x100c00b9
mov eax, 0x401005
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0xfffffc01
add ecx, eax
mov dword [0x101b71b8], ecx
mov dword [0x101b71b4], 0x3ff
jmp 0x100c00cf
mov dword [esp + 0x18], esi
mov ebx, esi
jmp 0x100c0018
mov eax, dword [0x101b71b4]
cmp eax, 0x3ff
jae 0x100c00cf
cmp ecx, eax
jbe 0x100c00cf
mov dword [0x101b71b4], ecx
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
mov edx, edi
sub edx, ecx
xor ecx, ecx
test edx, edx
setg cl
add ecx, eax
add dword [0x101b71c0], ecx
test ebx, ebx
jne 0x100c010d
mov edx, dword [0x101b71d0]
push edx
call fcn.100781d0
add esp, 4
mov dword [esp + 0x1c], 0
test edi, edi
jle 0x100c0238
mov dword [esp + 0x10], edi
jmp 0x100c0127
mov edi, dword [esp + 0x10]
cmp edi, 0x14
jle 0x100c0131
mov edi, 0x14
push 0
call fcn.10072090
push eax
push ebp
call fcn.10082ab0
add esp, 0xc
test eax, eax
je 0x100c02cf
push 0x14
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.10082c60
add esp, 0xc
test eax, eax
je 0x100c02cf
lea ebx, [edi + esi - 0x3ff]
test ebx, ebx
jle 0x100c0192
mov ecx, edi
sub ecx, ebx
push ecx
lea edx, [esi + 0x101b6da0]
push edx
push ebp
call fcn.10082c60
add esp, 0xc
test eax, eax
je 0x100c02cf
push ebx
push 0x101b6da0
jmp 0x100c019a
push edi
lea eax, [esi + 0x101b6da0]
push eax
push ebp
call fcn.10082c60
add esp, 0xc
test eax, eax
je 0x100c02cf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push ebp
call fcn.10082c60
add esp, 0xc
test eax, eax
je 0x100c02cf
push 8
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.10082c60
add esp, 0xc
test eax, eax
je 0x100c02cf
push 0
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.10082c70
add esp, 0xc
test eax, eax
je 0x100c02cf
inc dword [esp + 0x28]
add dword [esp + 0x14], edi
xor eax, eax
test edi, edi
jle 0x100c021a
mov cl, byte [esp + eax + 0x2c]
xor byte [esi + 0x101b6da0], cl
inc esi
cmp esi, 0x3ff
jl 0x100c0215
xor esi, esi
inc eax
cmp eax, edi
jl 0x100c0200
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x10], 0x14
add eax, 0x14
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x4c]
jl 0x100c0123
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x100c024b
mov edx, dword [0x101b71d0]
push edx
call fcn.100781b0
add esp, 4
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [esp + eax + 0x2c]
xor byte [eax + 0x101b6d8c], cl
movzx edx, byte [esp + eax + 0x2d]
movzx ecx, byte [esp + eax + 0x2e]
xor byte [eax + 0x101b6d8d], dl
xor byte [eax + 0x101b6d8e], cl
movzx edx, byte [esp + eax + 0x2f]
movzx ecx, byte [esp + eax + 0x30]
xor byte [eax + 0x101b6d8f], dl
xor byte [eax + 0x101b6d90], cl
add eax, 5
cmp eax, 0x14
jl 0x100c0250
fld qword [0x10165330]
fld qword [0x101b71c8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100c02b2
fadd qword [esp + 0x50]
fstp qword [0x101b71c8]
jmp 0x100c02b4
fstp st(0)
test ebx, ebx
jne 0x100c02c7
mov edx, dword [0x101b71d0]
push edx
call fcn.100781d0
add esp, 4
mov dword [esp + 0x20], 1
pop ebx
push ebp
call fcn.10082a90
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
add esp, 4
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.1011bab4
add esp, 0x34
ret