Function at 0x100bf550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, ecx
mov dword [ebp - 0x30], 0
push esi
push edi
mov dword [ebp - 0x2c], 8
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x8ce0]
mov byte [ebp - 0x28], 0
mov dword [ebx + 0x8cd4], 0
mov dword [ebp - 0x18], ebx
push dword [eax + 0x174]
push dword [ebp + 8]
push dword [ebx]
call fcn.100bf2a0
mov edx, dword [ebx + 0x8ce0]
mov dword [ebp - 4], edx
cmp byte [edx + 0x1a0], 0
je 0x100bf5d3
imul eax, dword [ebx + 0x8cd8], 0x8e00
mov ecx, dword [edx + 0x17c]
mov ecx, dword [eax + ecx + 0x8cf0]
call fcn.10019b74
mov edx, dword [ebx + 0x8ce0]
mov dword [ebp - 4], edx
xor esi, esi
cmp dword [ebx + 0x8cd4], esi
jbe 0x100bf60f
lea edx, [ebx + 0x7cd4]
mov ecx, dword [ebx + 0x8ce0]
lea edx, [edx + 4]
inc esi
mov eax, dword [ecx + 0x178]
rol eax, 1
xor eax, dword [edx - 4]
mov dword [ecx + 0x178], eax
cmp esi, dword [ebx + 0x8cd4]
jb 0x100bf5e3
mov edx, dword [ebx + 0x8ce0]
mov dword [ebp - 4], edx
mov al, byte [ebp - 0x28]
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x30]
lea esi, [eax*8 + 8]
mov eax, dword [ebx + 8]
sub esi, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x10], eax
shr ecx, 3
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x100bf6e2
mov ecx, dword [edx + 0x140]
nop word [eax + eax]
mov ebx, dword [ebp - 0x10]
mov edi, 8
movzx eax, byte [eax + ebx]
mov dword [ebp - 8], eax
nop
cmp edi, ecx
jb 0x100bf6bc
mov esi, dword [edx + 0x14c]
sub edi, ecx
mov ebx, eax
mov ecx, edi
shr ebx, cl
mov eax, ebx
shl eax, cl
lea ecx, [edx + 0x148]
sub dword [ebp - 8], eax
mov dl, byte [edx + 0x144]
mov eax, dword [ecx]
or dl, bl
mov byte [esi + eax], dl
inc esi
mov dword [ecx + 4], esi
cmp esi, dword [ecx + 8]
jne 0x100bf69a
call fcn.100b8d71
mov edx, dword [ebp - 4]
mov ecx, 8
mov eax, dword [ebp - 8]
mov dword [edx + 0x140], 8
mov byte [edx + 0x144], 0
test edi, edi
jne 0x100bf660
jmp 0x100bf6cc
sub ecx, edi
shl al, cl
or byte [edx + 0x144], al
mov dword [edx + 0x140], ecx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x14]
jb 0x100bf650
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [ebp + 0xb]
lea ecx, [edx + 0x140]
and esi, 7
push esi
push eax
call fcn.100c0b80
mov esi, dword [ebx + 0x8ce0]
xor eax, eax
mov dword [ebp + 8], eax
cmp byte [esi + 0x1a0], al
je 0x100bf790
mov eax, dword [ebx + 0x8cd8]
xor edi, edi
inc eax
cmp eax, dword [esi + 0x19c]
cmovne edi, eax
cmp dword [esi + 0x1b4], 0
je 0x100bf774
lea ecx, [esi + 0x148]
call fcn.100b8da7
mov ecx, eax
mov eax, 0xf
sub eax, dword [esi + 0x140]
shr eax, 3
add ecx, eax
mov eax, dword [ebx + 0x8ce0]
mov dword [ebp - 0x20], ecx
adc edx, 0
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0x1b4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebx + 0x8cf8]
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
mov esi, dword [ebx + 0x8ce0]
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x17c]
imul edx, edi, 0x8e00
add edx, 0x8cf0
add ecx, edx
call fcn.10019b2e
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4