Function at 0x4565c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, ecx
push 0x10
mov dword [ebp - 0x24], edi
call fcn.004a9926
mov edx, dword [edi]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.004a9926
mov dword [ebx], eax
mov ecx, eax
mov eax, dword [edi]
add esp, 8
add eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [edi]
push esi
lea eax, [ecx + eax*2]
mov dword [ebx + 8], eax
mov eax, dword [edi]
lea ecx, [ecx + eax*2]
add ecx, eax
mov dword [ebx + 0xc], ecx
xor ecx, ecx
mov eax, dword [edi]
mov dword [ebp - 0x10], ecx
nop dword [eax]
xor edx, edx
test eax, eax
jle 0x456635
mov esi, dword [ebp + 8]
add esi, ecx
nop dword [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x456620
mov ecx, dword [ebp - 0x10]
inc ecx
add ebx, 4
mov dword [ebp - 0x10], ecx
cmp ecx, 4
jl 0x456610
mov eax, dword [edi]
xor ecx, ecx
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], ecx
nop dword [eax + eax]
xor edx, edx
test eax, eax
jle 0x456675
mov esi, dword [ebp + 0x10]
add esi, ecx
nop dword [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x456660
mov ecx, dword [ebp + 8]
inc ecx
add ebx, 4
mov dword [ebp + 8], ecx
cmp ecx, 4
jl 0x456650
mov eax, dword [edi + 8]
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], 1
cmp eax, 1
jl 0x45682a
push ebx
mov ecx, edi
call fcn.004568f0
push 1
push 1
push ebx
mov ecx, edi
call fcn.00456960
push 2
push 2
push ebx
mov ecx, edi
call fcn.00456960
push 3
push 3
push ebx
mov ecx, edi
call fcn.00456960
push 4
call fcn.004a9926
mov edi, eax
xor edx, edx
mov ecx, edi
mov dword [ebp - 0x20], edi
neg ecx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 8]
add esp, 4
add eax, ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov eax, dword [ebx]
mov esi, 4
movzx eax, byte [edx + eax]
mov byte [edi], al
mov eax, dword [ebx + 4]
movzx eax, byte [edx + eax]
mov byte [edi + 1], al
mov eax, dword [ebx + 8]
movzx eax, byte [edx + eax]
mov byte [edi + 2], al
mov eax, dword [ebx + 0xc]
movzx eax, byte [edx + eax]
mov edx, edi
mov byte [edi + 3], al
mov edi, dword [ebp - 0x18]
mov cl, byte [edx]
lea edx, [edx + 1]
mov al, cl
mov byte [edi + edx - 1], cl
sar al, 7
add cl, cl
and al, 0x1b
xor al, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + edx - 1], al
sub esi, 1
jne 0x456720
mov ecx, dword [ebp - 8]
mov dl, ch
xor dl, byte [ebp - 6]
mov bh, byte [ebp - 5]
mov edi, dword [ebp - 0x20]
xor dl, bh
mov eax, dword [ebp - 0xc]
xor dl, al
mov dh, byte [ebp - 9]
xor dl, ah
mov byte [ebp + 0xb], dl
xor dh, cl
mov byte [edi], dl
mov dl, cl
xor dl, byte [ebp - 0xa]
xor dl, byte [ebp - 6]
mov cl, byte [ebp + 0xb]
xor dl, bh
xor dl, ah
mov byte [edi + 1], dl
mov dl, dh
xor dl, byte [ebp - 0xa]
xor dh, ch
xor dh, byte [ebp - 6]
xor dl, ch
xor dl, bh
xor dh, al
mov ebx, dword [ebp - 4]
mov byte [edi + 2], dl
mov byte [edi + 3], dh
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov byte [edx + eax], cl
mov ecx, dword [ebx + 4]
movzx eax, byte [edi + 1]
mov byte [edx + ecx], al
mov ecx, dword [ebx + 8]
movzx eax, byte [edi + 2]
mov byte [edx + ecx], al
mov ecx, dword [ebx + 0xc]
movzx eax, byte [edi + 3]
mov byte [edx + ecx], al
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 4
jl 0x4566f0
push edi
call fcn.004a9921
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi]
mov eax, ecx
imul eax, dword [ebp - 0x10]
lea esi, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 8], edx
xor eax, eax
test ecx, ecx
jle 0x456808
add esi, edx
nop dword [eax]
mov edx, dword [ebx]
lea esi, [esi + 4]
mov cl, byte [esi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jl 0x4567f0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
inc edx
add ebx, 4
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x4567e1
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 8]
inc esi
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], esi
cmp esi, eax
jle 0x456698
push ebx
mov ecx, edi
call fcn.004568f0
push 1
push 1
push ebx
mov ecx, edi
call fcn.00456960
push 2
push 2
push ebx
mov ecx, edi
call fcn.00456960
push 3
push 3
push ebx
mov ecx, edi
call fcn.00456960
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ebp + 0x10]
imul eax, ecx
mov dword [ebp + 8], ebx
lea esi, [edx + eax*4]
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp + 0x10], eax
nop
xor edx, edx
test ecx, ecx
jle 0x456890
add esi, eax
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [edi]
cmp edx, ecx
jl 0x456878
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
inc eax
add ebx, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x456870
mov eax, dword [edi]
xor ebx, ebx
mov esi, dword [ebp - 4]
xor ecx, ecx
test eax, eax
jle 0x4568c2
mov edx, dword [ebp + 0xc]
add edx, ebx
nop
mov eax, dword [esi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [edi]
cmp ecx, eax
jl 0x4568b0
inc ebx
add esi, 4
cmp ebx, 4
jl 0x4568a3
mov ebx, dword [ebp - 4]
pop esi
push dword [ebx]
call fcn.004a9921
push ebx
call fcn.004a9921
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc