Function at 0x100f2630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 0x20], 0x10
mov eax, ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
lea edi, [ebp + 0xc]
jb 0x100f264e
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100f269a
cmp byte [edi], 0
je 0x100f269a
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f2658
sub esi, ecx
lea eax, [esi + 0x11]
push eax
call fcn.10450898
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100f2695
push esi
lea ecx, [ebx + 0xc]
mov dword [ebx + 4], esi
lea eax, [esi + 1]
push edi
push ecx
mov dword [ebx + 8], eax
call fcn.10425d60
mov byte [ebx + esi + 0xc], 0
add esp, 0xc
mov dword [ebx], 1
mov eax, dword [ebp - 8]
jmp 0x100f269c
xor ebx, ebx
mov edi, dword [eax + 0x2030]
lea ecx, [eax + 0x202c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x100f26c7
mov edi, dword [ebp - 8]
add eax, 0x2038
mov esi, eax
or esi, 1
jmp 0x100f2755
lea eax, [ebx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x100f26ff
mov esi, dword [ebx + 4]
xor edx, edx
test esi, esi
je 0x100f26ff
nop dword [eax]
movzx eax, byte [ebx + edx + 0xc]
inc edx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp edx, esi
jb 0x100f26e0
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + 0xc]
lea edx, [ecx + ecx*8]
mov esi, 1
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x203c]
shl esi, cl
mov ecx, edx
shr ecx, 0xb
dec esi
xor ecx, edx
imul ecx, ecx, 0x8001
and esi, ecx
mov esi, dword [edi + esi*4]
test esi, esi
jne 0x100f2740
mov edi, dword [ebp - 8]
lea eax, [edi + 0x2038]
mov esi, eax
or esi, 1
jmp 0x100f2755
test ebx, ebx
je 0x100f2767
test eax, eax
jne 0x100f276c
cmp dword [esi], eax
jne 0x100f276c
mov edi, dword [ebp - 8]
lea eax, [edi + 0x2038]
or eax, 1
cmp esi, eax
je 0x100f27d7
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
jmp 0x100f2875
mov eax, 0x10469160
mov ecx, dword [esi]
test ecx, ecx
jne 0x100f2780
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100f2775
sub eax, edx
jmp 0x100f27b7
test eax, eax
jne 0x100f2789
cmp dword [ecx + 4], eax
jmp 0x100f27b7
add ecx, 0xc
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100f27b0
test dl, dl
je 0x100f27ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100f27b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x100f2790
xor eax, eax
jmp 0x100f27b5
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x100f274c
mov eax, dword [esi + 0x10]
shr eax, 0x1f
test al, al
jne 0x100f2729
mov esi, dword [esi + 0x18]
mov eax, dword [ebp - 0x18]
jmp 0x100f2740
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
cmp byte [esi + 8], 0
jne 0x100f27f4
call fcn.10450c0b
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 8]
push edx
push 0
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x100f2816
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
jmp 0x100f2850
cmp byte [esi + 8], 0
jne 0x100f2824
call fcn.10450c0b
mov ecx, dword [esi + 0x18]
push dword [ebp - 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
lea ecx, [edi + 0x2008]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100f2e60
mov eax, dword [ebp - 0x10]
sub esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100f3290
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test ebx, ebx
je 0x100f288b
or eax, 0xffffffff
lock xadd dword [ebx], eax
jne 0x100f288b
push ebx
call fcn.10450877
add esp, 4
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x100f28bb
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100f28b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100f28c8
push ecx
push edx
call fcn.1045088a
add esp, 8
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1043a1e8
int3