Function at 0xb97549
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 1
mov ebx, dword [ebp + 0x18]
jne 0xb97628
cmp dword [ebp - 4], 0x10
jb 0xb975af
xor eax, eax
mov edx, esi
mov dword [ebp - 8], edx
mov ecx, ebx
mov edx, dword [ebp + 8]
mov bl, byte [edx]
mov edi, dword [ebp - 8]
xor bl, byte [ecx]
inc ecx
mov byte [edi], bl
inc edx
inc dword [ebp - 8]
inc eax
cmp eax, 0x10
jb 0xb9757a
mov eax, dword [ebp + 0x14]
push eax
push esi
push esi
call fcn.00b96ae1
add esp, 0xc
mov ebx, esi
sub dword [ebp - 4], 0x10
add dword [ebp + 8], 0x10
add esi, 0x10
cmp dword [ebp - 4], 0x10
jae 0xb9756e
cmp dword [ebp - 4], 0
je 0xb97614
mov edx, esi
mov ecx, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor eax, eax
mov edx, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jae 0xb975e2
mov cl, byte [edx]
mov edi, dword [ebp - 0xc]
xor cl, byte [edi]
mov edi, dword [ebp - 0x10]
mov byte [edi], cl
inc eax
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
inc edx
cmp eax, dword [ebp - 4]
jb 0xb975c9
mov eax, dword [ebp - 4]
lea edx, [esi + eax]
mov dword [ebp - 0x14], edx
lea edx, [ebx + eax]
cmp eax, 0x10
jae 0xb97604
mov cl, byte [edx]
mov ebx, dword [ebp - 0x14]
mov byte [ebx], cl
inc eax
inc dword [ebp - 0x14]
inc edx
cmp eax, 0x10
jb 0xb975f3
mov eax, dword [ebp + 0x14]
push eax
push esi
push esi
call fcn.00b96ae1
add esp, 0xc
mov ebx, esi
push 0x10
push ebx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00cbbfb1
add esp, 0xc
jmp 0xb97791
cmp esi, dword [ebp + 8]
je 0xb976c4
cmp dword [ebp - 4], 0x10
jb 0xb9766e
mov edx, dword [ebp + 0x14]
push edx
push esi
mov ecx, dword [ebp + 8]
push ecx
call fcn.00b97031
add esp, 0xc
xor eax, eax
mov ecx, esi
mov edx, ebx
mov bl, byte [edx]
xor byte [ecx], bl
inc eax
inc ecx
inc edx
cmp eax, 0x10
jb 0xb9764e
mov ebx, dword [ebp + 8]
sub dword [ebp - 4], 0x10
add dword [ebp + 8], 0x10
add esi, 0x10
cmp dword [ebp - 4], 0x10
jae 0xb97637
cmp dword [ebp - 4], 0
je 0xb976b0
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x28]
push eax
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00b97031
mov edx, esi
add esp, 0xc
mov dword [ebp - 0x18], edx
xor eax, eax
cmp eax, dword [ebp - 4]
lea edx, [ebp - 0x28]
mov ecx, ebx
jae 0xb976ad
mov bl, byte [edx]
mov esi, dword [ebp - 0x18]
xor bl, byte [ecx]
inc ecx
mov byte [esi], bl
inc edx
inc dword [ebp - 0x18]
inc eax
cmp eax, dword [ebp - 4]
jb 0xb97699
mov ebx, dword [ebp + 8]
push 0x10
push ebx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00cbbfb1
add esp, 0xc
jmp 0xb97791
cmp dword [ebp - 4], 0x10
jb 0xb97723
push 0x10
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
push ecx
call fcn.00cbbfb1
add esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.00b97031
add esp, 0xc
xor eax, eax
mov ecx, esi
mov edx, dword [ebp + 0x18]
mov bl, byte [edx]
xor byte [ecx], bl
inc eax
inc ecx
inc edx
cmp eax, 0x10
jb 0xb976f4
push 0x10
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.00cbbfb1
sub dword [ebp - 4], 0x10
add dword [ebp + 8], 0x10
add esp, 0xc
add esi, 0x10
cmp dword [ebp - 4], 0x10
jae 0xb976ca
cmp dword [ebp - 4], 0
je 0xb97791
push 0x10
mov ecx, dword [ebp + 8]
push ecx
lea edi, [ebp - 0x28]
push edi
call fcn.00cbbfb1
add esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
push esi
lea edx, [ebp - 0x28]
push edx
call fcn.00b97031
add esp, 0xc
xor eax, eax
mov ecx, esi
mov edx, dword [ebp + 0x18]
cmp eax, dword [ebp - 4]
jae 0xb97764
mov bl, byte [edx]
xor byte [ecx], bl
inc eax
inc ecx
inc edx
cmp eax, dword [ebp - 4]
jb 0xb97758
mov eax, dword [ebp - 4]
lea ecx, [esi + eax]
lea edx, [ebp + eax - 0x28]
cmp eax, 0x10
jae 0xb9777f
mov bl, byte [edx]
mov byte [ecx], bl
inc eax
inc ecx
inc edx
cmp eax, 0x10
jb 0xb97773
push 0x10
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.00cbbfb1
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret