Function at 0x100bf2a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov byte [ebp - 1], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 0x8cd4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 2], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
lea ecx, [ecx*8 + 8]
sub ecx, dword [eax + 4]
cmp dword [ebp + 0x10], 1
mov al, byte [eax + 8]
mov dword [ebp - 8], ecx
mov byte [ebp - 3], al
jbe 0x100bf38c
cmp esi, 0x400
jb 0x100bf38c
mov edx, dword [ebp + 8]
mov edi, esi
shr edi, 1
mov al, byte [edi + edx - 1]
lea ecx, [edi + edx]
cmp byte [ecx], al
je 0x100bf312
cmp al, byte [edi + edx - 2]
jne 0x100bf319
cmp edi, esi
jae 0x100bf38c
inc edi
jmp 0x100bf301
cmp edi, esi
jae 0x100bf38c
mov esi, dword [ebp + 0x10]
mov ecx, ebx
dec esi
push esi
push edi
push edx
call fcn.100bf2a0
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub eax, edi
push esi
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call fcn.100bf2a0
mov edx, dword [ebx + 0x10]
mov eax, dword [edx]
mov cl, byte [edx + 8]
mov byte [ebp - 2], cl
lea eax, [eax*8 + 8]
sub eax, dword [edx + 4]
mov ecx, eax
mov dword [ebp - 0xc], eax
and ecx, 7
jbe 0x100bf372
mov eax, 8
sub eax, ecx
mov ecx, edx
push eax
push 0
call fcn.100c0c10
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 8]
mov eax, 8
and ecx, 7
mov byte [ebp - 1], 1
sub eax, ecx
mov dword [edx + 4], eax
mov al, byte [ebp - 3]
mov byte [edx + 8], al
mov ecx, dword [ebx + 0x10]
push 8
push 0x31
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
shl eax, 3
sub eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
call fcn.100c0c10
mov ecx, dword [ebx + 0x10]
push 8
push 0x41
call fcn.100c0c10
mov ecx, dword [ebx + 0x10]
push 8
push 0x59
call fcn.100c0c10
mov ecx, dword [ebx + 0x10]
push 8
push 0x26
call fcn.100c0c10
mov ecx, dword [ebx + 0x10]
push 8
push 0x53
call fcn.100c0c10
mov ecx, dword [ebx + 0x10]
push 8
push 0x59
call fcn.100c0c10
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
xor edi, edi
xor eax, eax
mov dword [ebp + 0x10], eax
mov dh, byte [ebx]
mov dl, byte [eax + ebx]
cmp edi, 4
jne 0x100bf41d
test dl, dl
je 0x100bf419
movzx ecx, dh
mov eax, esi
shl esi, 8
shr eax, 0x18
xor eax, ecx
xor esi, dword [eax*4 + 0x10167e38]
add dl, 0xff
jne 0x100bf400
mov eax, dword [ebp + 0x10]
xor edi, edi
jmp 0x100bf44a
mov ecx, esi
movzx eax, dl
shr ecx, 0x18
inc edi
xor ecx, eax
shl esi, 8
mov eax, 1
xor esi, dword [ecx*4 + 0x10167e38]
cmp dh, dl
movzx ecx, dh
cmovne edi, eax
movzx eax, dl
cmovne ecx, eax
mov eax, dword [ebp + 0x10]
mov dh, cl
inc eax
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp + 0xc]
jb 0x100bf3f1
mov ebx, dword [ebp - 0x14]
not esi
xor edi, edi
nop word [eax + eax]
mov ecx, 3
mov eax, esi
sub ecx, edi
shl ecx, 3
shr eax, cl
mov ecx, dword [ebx + 0x10]
push 8
movzx eax, al
push eax
call fcn.100c0c10
inc edi
cmp edi, 4
jb 0x100bf460
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.100bf7a0
mov edi, dword [ebx + 0x10]
mov edx, dword [edi]
lea ecx, [edx*8]
sub ecx, dword [edi + 4]
cmp byte [ebp - 1], 0
je 0x100bf4fe
mov eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
sub eax, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp ecx, eax
jae 0x100bf51d
mov eax, dword [edi + 0xc]
sub edx, dword [ebp - 0x10]
je 0x100bf4e7
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x10]
sub ebx, edi
lea ecx, [eax + edi]
nop dword [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x100bf4d0
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebx + 0x10]
add ecx, dword [ebp - 8]
mov eax, ecx
and ecx, 7
shr eax, 3
mov dword [edi], eax
mov eax, 8
sub eax, ecx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x8cd4], eax
pop edi
mov dword [ebx + eax*4 + 0x7cd4], esi
inc dword [ebx + 0x8cd4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0xc]
mov ecx, 8
mov eax, edx
and edx, 7
shr eax, 3
sub ecx, edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax + 4], ecx
mov cl, byte [ebp - 2]
mov byte [eax + 8], cl
mov esp, ebp
pop ebp
ret 0xc