Function at 0x551810
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 0x55183d
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 0x551a52
mov ecx, dword [ebx + 0x3cc]
mov eax, edi
xor edx, edx
div ecx
test edx, edx
jne 0x551a52
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x551939
mov edx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], edx
xor edx, edx
div ecx
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], esi
test eax, eax
jbe 0x551915
jmp 0x55188c
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push esi
push eax
mov ecx, ebx
call fcn.005512d0
mov cl, byte [ebx + 4]
mov eax, esi
test cl, cl
je 0x55191e
mov ecx, dword [ebx + 0x3cc]
xor edi, edi
test ecx, ecx
jle 0x5518cc
mov ecx, ebx
sub ecx, esi
lea esi, [ecx + 0x3f4]
mov dl, byte [esi + eax]
mov cl, byte [eax]
xor cl, dl
mov byte [eax], cl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc edi
cmp edi, ecx
jl 0x5518b7
mov ecx, dword [ebx + 0x3cc]
mov esi, dword [ebp - 4]
mov eax, ecx
lea edi, [ebx + 0x3f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
xor edx, edx
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 0x551889
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
cmp eax, 2
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 8]
jne 0x551a07
mov edx, dword [ebp + 0xc]
mov eax, edi
mov dword [ebp + 8], edx
xor edx, edx
div ecx
mov dword [ebp - 4], esi
test eax, eax
jbe 0x551915
jmp 0x551960
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
lea eax, [ebx + 0x3f4]
push eax
call fcn.00550ff0
mov cl, byte [ebx + 4]
mov eax, dword [ebp + 8]
test cl, cl
je 0x5519ec
mov ecx, dword [ebx + 0x3cc]
xor edi, edi
test ecx, ecx
jle 0x55199d
mov cl, byte [edi + esi]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc edi
cmp edi, ecx
jl 0x551988
mov ecx, dword [ebx + 0x3cc]
lea edi, [ebx + 0x3f4]
mov edx, ecx
mov eax, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
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 0x55195d
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
mov edx, dword [ebp + 0xc]
mov eax, edi
mov dword [ebp + 8], edx
xor edx, edx
div ecx
test eax, eax
jbe 0x551915
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push esi
call fcn.005512d0
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 0x551a1b
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