Function at 0x456a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push 4
mov dword [ebp - 0x10], esi
call fcn.004a9ba9
mov edi, eax
push 4
mov dword [ebp - 0xc], edi
call fcn.004a9ba9
mov ebx, eax
add esp, 8
mov eax, dword [esi + 4]
xor edx, edx
mov dword [ebp - 8], ebx
lea ecx, [eax*4]
test ecx, ecx
jle 0x456ae2
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
mov ebx, dword [esi + 4]
lea eax, [ebx*4]
cmp edx, eax
jl 0x456ac1
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 4]
lea ecx, [eax*4]
mov eax, dword [esi + 8]
inc eax
mov dword [ebp - 8], ecx
imul eax, dword [esi]
shl eax, 2
cmp ecx, eax
jge 0x456c57
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffd
add edx, ecx
mov dword [ebp - 0xc], edx
nop dword [eax]
mov al, byte [edx - 1]
mov byte [edi], al
mov byte [ebp - 3], al
mov al, byte [edx]
mov byte [edi + 1], al
mov byte [ebp + 0xb], al
mov al, byte [edx + 1]
mov byte [edi + 2], al
mov byte [ebp - 1], al
mov al, byte [edx + 2]
mov byte [edi + 3], al
mov byte [ebp - 2], al
mov eax, ecx
mov ecx, dword [esi + 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
idiv ecx
test edx, edx
jne 0x456bbc
mov al, byte [ebp + 0xb]
mov byte [edi], al
mov al, byte [ebp - 1]
mov byte [edi + 1], al
mov al, byte [ebp - 2]
mov byte [edi + 2], al
mov al, byte [ebp - 3]
push edi
mov byte [edi + 3], al
call fcn.004569f0
mov esi, dword [esi + 4]
mov cl, 1
mov eax, dword [ebp - 8]
shl esi, 2
cdq
idiv esi
lea edx, [eax - 1]
test edx, edx
jle 0x456b94
nop dword [eax]
mov al, cl
add cl, cl
shr al, 7
movzx eax, al
imul eax, eax, 0x1b
xor cl, al
sub edx, 1
jne 0x456b80
mov esi, dword [ebp - 0x10]
mov byte [ebx], cl
mov word [ebx + 2], 0
mov byte [ebx + 1], 0
xor byte [edi], cl
movzx eax, byte [ebx + 1]
xor byte [edi + 1], al
movzx eax, byte [ebx + 2]
xor byte [edi + 2], al
movzx eax, byte [ebx + 3]
xor byte [edi + 3], al
jmp 0x456bcc
cmp ecx, 6
jle 0x456bcc
cmp edx, 4
jne 0x456bcc
push edi
call fcn.004569f0
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 8]
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx]
xor al, byte [edi]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + 4]
mov byte [ecx + 3], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 8]
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 1]
xor al, byte [edi + 1]
mov byte [edx], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 8]
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 2]
xor al, byte [edi + 2]
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 5], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 8]
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 3]
xor al, byte [edi + 3]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov byte [ecx + 6], al
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 8]
inc eax
imul eax, dword [esi]
add ecx, 4
mov dword [ebp - 8], ecx
shl eax, 2
cmp ecx, eax
jl 0x456b10
push ebx
call fcn.004a9ba4
push edi
call fcn.004a9ba4
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8