Function at 0x456030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x456368
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x456368
cmp byte [ebx], 1
je 0x456368
mov eax, dword [ebp + 0x14]
shl eax, 3
cdq
and edx, 0x7f
lea esi, [edx + eax]
movzx eax, byte [ecx]
sar esi, 7
mov dword [ebp - 0x18], esi
sub eax, 1
je 0x45632a
sub eax, 1
je 0x4562a5
sub eax, 1
jne 0x456368
mov eax, dword [ecx + 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 5]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 9]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0xd]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
test esi, esi
jle 0x45635c
mov al, byte [ebp - 0x21]
lea esi, [ebx + 0x30]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0x24]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 0x25]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0x26]
mov byte [ebp - 9], al
mov al, byte [ebp - 0x27]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 7], al
mov al, byte [ebp - 0x29]
mov byte [ebp - 6], al
mov al, byte [ebp - 0x2a]
mov byte [ebp - 5], al
mov al, byte [ebp - 0x2b]
mov byte [ebp - 4], al
mov al, byte [ebp - 0x2c]
mov byte [ebp - 3], al
mov al, byte [ebp - 0x2d]
mov byte [ebp - 2], al
mov al, byte [ebp - 0x2e]
mov byte [ebp - 1], al
mov al, byte [ebp - 0x2f]
mov byte [ebp + 0x17], al
mov al, byte [ebp - 0x30]
mov byte [ebp + 0xb], al
nop
mov edi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
movups xmm0, xmmword [ebp - 0x30]
lea eax, [ebp - 0x40]
push esi
push eax
push eax
movups xmmword [ebp - 0x40], xmm0
call fcn.004568f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
and bl, 7
mov eax, eax
test eax, eax
jns 0x45613d
add eax, 7
sar eax, 3
lea edx, [eax + edi]
mov cl, bl
mov al, byte [ebp - 0x40]
mov ah, byte [ebp + 0x17]
and al, 0x80
shr al, cl
xor byte [edx], al
mov al, ah
mov cl, byte [ebp + 0xb]
add ah, ah
shr al, 7
add cl, cl
or cl, al
mov dl, byte [edx]
mov byte [ebp + 0xb], cl
mov byte [ebp - 0x30], cl
mov cl, byte [ebp - 1]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp + 0x17], ah
mov byte [ebp - 0x2f], ah
mov ah, byte [ebp - 2]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 1], cl
mov byte [ebp - 0x2e], cl
mov cl, byte [ebp - 3]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 2], ah
mov byte [ebp - 0x2d], ah
mov ah, byte [ebp - 4]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 3], cl
mov byte [ebp - 0x2c], cl
mov cl, byte [ebp - 5]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 4], ah
mov byte [ebp - 0x2b], ah
mov ah, byte [ebp - 6]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 5], cl
mov byte [ebp - 0x2a], cl
mov cl, byte [ebp - 7]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 6], ah
mov byte [ebp - 0x29], ah
mov ah, byte [ebp - 8]
mov al, ah
shr al, 7
or cl, al
mov byte [ebp - 7], cl
mov dh, byte [ebp - 0xc]
add ah, ah
mov byte [ebp - 0x28], cl
mov cl, byte [ebp - 9]
mov al, cl
mov ch, byte [ebp - 0xd]
shr al, 7
add cl, cl
or ah, al
mov byte [ebp - 8], ah
mov byte [ebp - 0x27], ah
mov ah, byte [ebp - 0xa]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 9], cl
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 0xb]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov al, dh
shr al, 7
add dh, dh
or cl, al
mov byte [ebp - 0xa], ah
mov al, ch
mov byte [ebp - 0xb], cl
mov byte [ebp - 0x24], cl
add ch, ch
shr al, 7
mov cl, 7
mov byte [ebp - 0x25], ah
or dh, al
mov ah, byte [ebp - 0xe]
sub cl, bl
mov ebx, dword [ebp - 0x14]
mov al, ah
shr dl, cl
add ah, ah
shr al, 7
and dl, 1
or ch, al
mov byte [ebp - 0xc], dh
or ah, dl
mov byte [ebp - 0x23], dh
inc ebx
mov byte [ebp - 0xd], ch
mov byte [ebp - 0x22], ch
mov byte [ebp - 0xe], ah
mov byte [ebp - 0x21], ah
mov dword [ebp - 0x14], ebx
cmp ebx, 0x80
jl 0x456118
mov edi, dword [ebp - 0x1c]
dec edi
mov dword [ebp - 0x1c], edi
test edi, edi
jg 0x456110
mov esi, dword [ebp - 0x18]
shl esi, 7
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 1]
mov ebx, dword [ecx + 5]
mov eax, dword [ecx + 9]
mov ecx, dword [ecx + 0xd]
mov dword [ebp + 0x14], esi
test esi, esi
jle 0x45635c
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
add edx, 0x30
mov dword [ebp - 0x1c], edx
add esi, 8
mov edx, dword [ebp + 0x18]
mov dword [ebp + 8], edx
xor eax, dword [esi]
push dword [ebp - 0x1c]
xor ecx, dword [esi + 4]
xor edi, dword [esi - 8]
xor ebx, dword [esi - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push edx
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], ecx
call fcn.004568f0
mov eax, dword [ebp + 0x14]
lea esi, [esi + 0x10]
mov edx, dword [ebp + 8]
dec eax
mov ecx, dword [ebp - 0x20]
add edx, 0x10
add esp, 0xc
mov dword [ebp + 0x14], eax
test eax, eax
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x14]
jg 0x4562d1
mov esi, dword [ebp - 0x18]
shl esi, 7
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
test esi, esi
jle 0x45635c
mov esi, dword [ebp + 0x18]
lea eax, [ebx + 0x30]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sub ebx, esi
nop
push eax
lea eax, [ebx + esi]
push esi
push eax
call fcn.004568f0
mov eax, dword [ebp + 8]
dec edi
add esp, 0xc
add esi, 0x10
test edi, edi
jg 0x456340
mov esi, dword [ebp - 0x18]
shl esi, 7
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret