Function at 0x5515c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 4]
test al, al
jne 0x5515ed
push 0x76db40
lea ecx, [ebp - 0x10]
call fcn.00710a10
lea eax, [ebp - 0x10]
push 0x759bd0
push eax
call fcn.00710828
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x5517ed
mov ecx, dword [ebx + 0x3cc]
mov eax, edi
xor edx, edx
div ecx
test edx, edx
jne 0x5517ed
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x5516d2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp + 8], eax
mov eax, edi
xor edx, edx
div ecx
mov dword [ebp + 0x14], esi
test eax, eax
jbe 0x5516ae
mov dl, byte [ebx + 4]
lea eax, [ebx + 0x3f4]
test dl, dl
je 0x5516b7
xor edi, edi
test ecx, ecx
jle 0x551660
mov esi, dword [ebp - 4]
sub esi, eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc edi
cmp edi, ecx
jl 0x55164b
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x3f4]
push esi
push edi
mov ecx, ebx
call fcn.00550ff0
mov ecx, dword [ebx + 0x3cc]
mov eax, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov esi, dword [ebp + 0x14]
add edx, ecx
add eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
inc esi
mov dword [ebp + 0x14], esi
cmp esi, eax
jb 0x551633
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x76db40
lea ecx, [ebp - 0x10]
call fcn.00710a10
lea eax, [ebp - 0x10]
push 0x759bd0
push eax
call fcn.00710828
cmp eax, 2
mov dword [ebp + 0x14], esi
jne 0x55179f
mov edx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], edx
xor edx, edx
div ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], esi
test eax, eax
jbe 0x5516ae
jmp 0x5516f9
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x3f4]
push esi
push eax
mov ecx, ebx
call fcn.00550ff0
mov cl, byte [ebx + 4]
mov eax, esi
test cl, cl
je 0x551784
mov ecx, dword [ebx + 0x3cc]
xor edi, edi
test ecx, ecx
jle 0x551735
mov ecx, dword [ebp - 4]
mov dl, byte [edi + ecx]
mov cl, byte [eax]
xor cl, dl
mov byte [eax], cl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc edi
cmp edi, ecx
jl 0x55171d
mov ecx, dword [ebx + 0x3cc]
lea edi, [ebx + 0x3f4]
mov eax, ecx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov esi, dword [ebp + 8]
div ecx
mov edi, dword [ebp - 4]
add esi, ecx
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0x14]
add edi, ecx
inc esi
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], esi
cmp esi, eax
jb 0x5516f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x76db40
lea ecx, [ebp - 0x10]
call fcn.00710a10
lea ecx, [ebp - 0x10]
push 0x759bd0
push ecx
call fcn.00710828
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 8], edx
mov eax, edi
xor edx, edx
div ecx
test eax, eax
jbe 0x5516ae
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push esi
call fcn.00550ff0
mov ecx, dword [ebx + 0x3cc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add esi, ecx
add eax, ecx
inc edx
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], edx
mov eax, edi
xor edx, edx
div ecx
cmp dword [ebp + 0x14], eax
jb 0x5517b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x76db44
lea ecx, [ebp - 0x10]
call fcn.00710a10
lea ecx, [ebp - 0x10]
push 0x759bd0
push ecx
call fcn.00710828
nop
nop
nop
nop
nop
nop
nop
nop