Function at 0x100963b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100965f5
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100965f5
cmp byte [edi], 1
je 0x100965f5
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100965ec
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x100965ec
movzx ecx, byte [esi]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov dword [ebp - 8], eax
dec ecx
je 0x100965aa
dec ecx
je 0x1009653a
dec ecx
je 0x1009641a
pop ebx
pop edi
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], eax
lea ecx, [esi + 1]
test eax, eax
jle 0x100965e2
mov esi, dword [ebp + 0x18]
lea edx, [ecx + 1]
lea eax, [edi + 0x140]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], esi
lea ebx, [ebx]
movdqu xmm0, xmmword [ebx]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
movdqu xmmword [esi], xmm0
lea ecx, [ecx]
lea edx, [ebp - 0x24]
push edx
push ecx
push dword [edi + 0x4c]
push eax
call fcn.10098490
mov eax, ebx
mov ch, bl
sar eax, 3
and ch, 7
add esi, eax
mov cl, ch
mov al, byte [ebp - 0x24]
add esp, 0x10
and al, 0x80
mov edi, 3
shr al, cl
xor byte [esi], al
mov eax, dword [ebp - 0x14]
mov bl, byte [eax]
lea eax, [eax + 5]
mov cl, byte [eax - 6]
mov dl, bl
add cl, cl
shr dl, 7
or dl, cl
add bl, bl
mov byte [eax - 6], dl
mov dl, byte [eax - 4]
mov cl, dl
add dl, dl
shr cl, 7
or cl, bl
mov bl, byte [eax - 3]
mov byte [eax - 5], cl
mov cl, bl
shr cl, 7
add bl, bl
or cl, dl
mov dl, byte [eax - 2]
mov byte [eax - 4], cl
mov cl, dl
shr cl, 7
add dl, dl
or cl, bl
mov byte [eax - 3], cl
mov cl, byte [eax - 1]
shr cl, 7
or cl, dl
mov byte [eax - 2], cl
dec edi
jne 0x10096480
mov dl, byte [esi]
mov cl, 7
mov ebx, dword [ebp - 0xc]
sub cl, ch
mov edi, dword [ebp + 0xc]
inc ebx
mov esi, dword [ebp - 4]
shr dl, cl
mov ecx, dword [ebp + 8]
and dl, 1
inc ecx
mov dword [ebp - 0xc], ebx
mov al, byte [ecx + 0xf]
add al, al
or dl, al
lea eax, [edi + 0x140]
mov byte [ecx + 0xf], dl
cmp ebx, 0x80
jl 0x10096450
mov eax, dword [ebp - 0x10]
add esi, 0x10
mov ebx, dword [ebp + 0x10]
dec eax
add ebx, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], ebx
lea eax, [edi + 0x140]
jg 0x10096440
mov eax, dword [ebp - 8]
pop ebx
pop edi
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], eax
lea ecx, [esi + 1]
test eax, eax
jle 0x100965e2
lea edx, [edi + 0x50]
mov edi, dword [ebp + 0x18]
lea esi, [ebx + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi - 8]
xor eax, dword [ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [esi - 4]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
xor eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
xor eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push edi
push eax
push dword [ebx + 0x4c]
push edx
call fcn.10098490
mov eax, dword [ebp + 8]
lea esi, [esi + 0x10]
dec eax
lea edx, [ebx + 0x50]
mov ecx, edi
mov dword [ebp + 8], eax
add esp, 0x10
add edi, 0x10
test eax, eax
jg 0x10096554
mov eax, dword [ebp - 8]
pop ebx
pop edi
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret
mov esi, eax
test eax, eax
jle 0x100965e2
lea ecx, [edi + 0x50]
mov edi, dword [ebp + 0x18]
mov dword [ebp + 8], ecx
lea esp, [esp]
mov eax, dword [ebp + 0xc]
push edi
push ebx
push dword [eax + 0x4c]
push ecx
call fcn.10098490
mov ecx, dword [ebp + 8]
dec esi
add esp, 0x10
add ebx, 0x10
add edi, 0x10
test esi, esi
jg 0x100965c0
mov eax, dword [ebp - 8]
pop ebx
pop edi
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret