Function at 0x45a889
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x45a973
cmp esi, ecx
je 0x45a8c9
cmp dword [ebp + 0xc], ecx
je 0x45a8c9
mov eax, dword [ebp + 8]
mov al, byte [eax]
xor byte [esi + edi], al
mov al, byte [esi + edi]
mov byte [ebx], al
inc ebx
inc dword [ebp + 8]
dec dword [ebp + 0xc]
inc esi
and esi, 0xf
jne 0x45a8aa
cmp dword [ebp + 0xc], 0x10
jb 0x45a936
mov eax, ebx
sub eax, edi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 8], eax
shl eax, 4
add ebx, eax
add dword [ebp + 8], eax
push dword [ebp + 0x10]
push edi
push edi
call fcn.00459b2d
add esp, 0xc
cmp esi, 0x10
jae 0x45a923
push 0xf
pop ecx
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax]
xor dword [eax], edx
mov edx, dword [eax]
mov esi, dword [ebp + 0x18]
mov dword [esi + eax], edx
add eax, 4
dec ecx
jne 0x45a90d
sub dword [ebp + 0xc], 0x10
add dword [ebp + 0x18], 0x10
add dword [ebp - 4], 0x10
xor esi, esi
dec dword [ebp - 8]
jne 0x45a8ef
cmp dword [ebp + 0xc], 0
je 0x45aa4e
push dword [ebp + 0x10]
push edi
push edi
call fcn.00459b2d
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [esi + edi]
sub edx, edi
sub ebx, edi
add esi, dword [ebp + 0xc]
mov cl, byte [eax + edx]
xor byte [eax], cl
mov cl, byte [eax]
dec dword [ebp + 0xc]
mov byte [eax + ebx], cl
inc eax
cmp dword [ebp + 0xc], 0
jne 0x45a95a
jmp 0x45aa4e
cmp esi, ecx
je 0x45a998
cmp dword [ebp + 0xc], ecx
je 0x45a998
mov dl, byte [esi + edi]
mov eax, dword [ebp + 8]
mov al, byte [eax]
xor dl, al
mov byte [ebx], dl
inc ebx
inc dword [ebp + 8]
dec dword [ebp + 0xc]
mov byte [esi + edi], al
inc esi
and esi, 0xf
jne 0x45a977
cmp dword [ebp + 0xc], 0x10
jb 0x45aa0f
mov eax, ebx
sub eax, edi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
push edi
push edi
call fcn.00459b2d
add esp, 0xc
cmp esi, 0x10
jae 0x45a9fa
mov edx, dword [ebp + 8]
push 0xf
pop ecx
sub ecx, esi
sub edx, ebx
shr ecx, 2
lea eax, [esi + edi]
mov dword [ebp - 4], edx
inc ecx
jmp 0x45a9d9
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
add esi, eax
mov edx, dword [esi + edx]
mov esi, dword [eax]
xor esi, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x18]
add edx, eax
mov dword [edx], esi
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x45a9d6
push 0x10
pop eax
sub dword [ebp + 0xc], eax
add dword [ebp + 0x18], eax
add dword [ebp + 8], eax
add ebx, eax
xor esi, esi
dec dword [ebp - 8]
jne 0x45a9ae
cmp dword [ebp + 0xc], 0
je 0x45aa4e
push dword [ebp + 0x10]
push edi
push edi
call fcn.00459b2d
mov edx, dword [ebp + 8]
mov dword [ebp + 0x18], ebx
sub dword [ebp + 0x18], edi
add esp, 0xc
lea eax, [esi + edi]
sub edx, ebx
add esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov bl, byte [eax]
dec dword [ebp + 0xc]
lea edi, [eax + ecx]
mov cl, byte [edi + edx]
xor bl, cl
mov byte [edi], bl
mov byte [eax], cl
inc eax
cmp dword [ebp + 0xc], 0
jne 0x45aa33
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret