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.004a9ba9
mov edx, dword [edi]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.004a9ba9
mov dword [ebx], eax
add esp, 8
mov ecx, dword [edi]
add ecx, eax
mov dword [ebx + 4], ecx
mov ecx, dword [edi]
push esi
lea ecx, [eax + ecx*2]
mov dword [ebx + 8], ecx
mov ecx, dword [edi]
lea eax, [eax + ecx*2]
add eax, ecx
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], ecx
nop word [eax + 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 0x456827
mov esi, dword [ebp - 4]
mov ecx, edi
push esi
call fcn.004568f0
push 1
push 1
push esi
mov ecx, edi
call fcn.00456960
push 2
push 2
push esi
mov ecx, edi
call fcn.00456960
push 3
push 3
push esi
mov ecx, edi
call fcn.00456960
push 4
call fcn.004a9ba9
mov edi, eax
lea ebx, [ebp - 8]
xor edx, edx
mov dword [ebp - 0x1c], edi
sub ebx, edi
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], ebx
add esp, 4
sub eax, edi
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
mov eax, dword [esi]
movzx eax, byte [edx + eax]
mov byte [edi], al
mov eax, dword [esi + 4]
movzx eax, byte [edx + eax]
mov byte [edi + 1], al
mov eax, dword [esi + 8]
movzx eax, byte [edx + eax]
mov byte [edi + 2], al
mov eax, dword [esi + 0xc]
mov esi, 4
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 [ebx + edx - 1], cl
sar al, 7
add cl, cl
and al, 0x1b
xor al, cl
mov byte [edi + 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 - 0x1c]
xor dl, bh
mov eax, dword [ebp - 0xc]
xor dl, al
mov dh, byte [ebp - 9]
xor dl, ah
mov esi, dword [ebp - 4]
xor dh, cl
mov byte [edi], dl
mov byte [ebp + 0xb], 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 dh, al
xor dl, bh
mov byte [edi + 2], dl
mov byte [edi + 3], dh
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ebx, dword [ebp - 0x20]
mov byte [edx + eax], cl
mov ecx, dword [esi + 4]
movzx eax, byte [edi + 1]
mov byte [edx + ecx], al
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 2]
mov byte [edx + ecx], al
mov ecx, dword [esi + 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.004a9ba4
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp + 0x10]
mov ebx, esi
mov ecx, dword [edi]
mov eax, ecx
imul eax, dword [ebp - 0x10]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], edx
xor eax, eax
test ecx, ecx
jle 0x456805
mov esi, dword [ebp - 0x20]
add esi, edx
nop
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]
inc edx
add ebx, 4
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x4567e3
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 8]
inc ecx
dec eax
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jle 0x456698
mov ebx, dword [ebp - 4]
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 dword [eax]
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.004a9ba4
push ebx
call fcn.004a9ba4
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc