Function at 0x554650
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 0x55467d
push 0x771bd8
lea ecx, [ebp - 0x10]
call fcn.00714ba1
lea eax, [ebp - 0x10]
push 0x75de60
push eax
call fcn.00714a95
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x554892
mov ecx, dword [ebx + 0x3cc]
mov eax, edi
xor edx, edx
div ecx
test edx, edx
jne 0x554892
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x554779
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 0x554755
jmp 0x5546cc
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push esi
push eax
mov ecx, ebx
call fcn.00554110
mov cl, byte [ebx + 4]
mov eax, esi
test cl, cl
je 0x55475e
mov ecx, dword [ebx + 0x3cc]
xor edi, edi
test ecx, ecx
jle 0x55470c
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 0x5546f7
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 0x5546c9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x771bd8
lea ecx, [ebp - 0x10]
call fcn.00714ba1
lea ecx, [ebp - 0x10]
push 0x75de60
push ecx
call fcn.00714a95
cmp eax, 2
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 8]
jne 0x554847
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 0x554755
jmp 0x5547a0
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
lea eax, [ebx + 0x3f4]
push eax
call fcn.00553e30
mov cl, byte [ebx + 4]
mov eax, dword [ebp + 8]
test cl, cl
je 0x55482c
mov ecx, dword [ebx + 0x3cc]
xor edi, edi
test ecx, ecx
jle 0x5547dd
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 0x5547c8
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 0x55479d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x771bd8
lea ecx, [ebp - 0x10]
call fcn.00714ba1
lea eax, [ebp - 0x10]
push 0x75de60
push eax
call fcn.00714a95
mov edx, dword [ebp + 0xc]
mov eax, edi
mov dword [ebp + 8], edx
xor edx, edx
div ecx
test eax, eax
jbe 0x554755
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
push esi
call fcn.00554110
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 0x55485b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x771bdc
lea ecx, [ebp - 0x10]
call fcn.00714ba1
lea ecx, [ebp - 0x10]
push 0x75de60
push ecx
call fcn.00714a95
nop
nop
nop