Function at 0x455cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x3c
push ebx
push esi
push edi
test ecx, ecx
je 0x456018
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
shl eax, 3
test esi, esi
je 0x456018
mov bl, byte [esi]
cmp bl, 3
je 0x455ce5
cmp byte [ecx], 0
je 0x456018
cdq
and edx, 0x7f
lea edi, [edx + eax]
movzx eax, bl
sar edi, 7
mov dword [ebp - 0x18], edi
sub eax, 1
je 0x455fda
sub eax, 1
je 0x455f30
sub eax, 1
jne 0x456018
mov eax, dword [esi + 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 5]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 9]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xd]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
test edi, edi
jle 0x45600c
mov al, byte [ebp - 0x1d]
lea edi, [ecx + 0x30]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x1e]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x1f]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0x20]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 9], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x24]
mov byte [ebp - 7], al
mov al, byte [ebp - 0x25]
mov byte [ebp - 6], al
mov al, byte [ebp - 0x26]
mov byte [ebp - 5], al
mov al, byte [ebp - 0x27]
mov byte [ebp - 4], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 3], al
mov al, byte [ebp - 0x29]
mov byte [ebp - 2], al
mov al, byte [ebp - 0x2a]
mov byte [ebp - 1], al
mov al, byte [ebp - 0x2b]
mov byte [ebp + 0xb], al
mov al, byte [ebp - 0x2c]
mov byte [ebp + 0x17], al
mov esi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
nop
movups xmm0, xmmword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
push edi
push eax
push eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.004568f0
mov dl, byte [ebp + 0xb]
add esp, 0xc
mov cl, byte [ebp + 0x17]
mov al, dl
shr al, 7
add cl, cl
or cl, al
add dl, dl
mov byte [ebp + 0x17], cl
mov byte [ebp - 0x2c], cl
mov cl, byte [ebp - 1]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [ebp + 0xb], dl
mov byte [ebp - 0x2b], dl
mov dl, byte [ebp - 2]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [ebp - 1], cl
mov byte [ebp - 0x2a], cl
mov cl, byte [ebp - 3]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [ebp - 2], dl
mov byte [ebp - 0x29], dl
mov dl, byte [ebp - 4]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [ebp - 3], cl
mov byte [ebp - 0x28], cl
mov cl, byte [ebp - 5]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [ebp - 4], dl
mov byte [ebp - 0x27], dl
mov dl, byte [ebp - 6]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [ebp - 5], cl
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 7]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [ebp - 6], dl
mov byte [ebp - 0x25], dl
mov dl, byte [ebp - 8]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [ebp - 7], cl
mov byte [ebp - 0x24], cl
mov cl, byte [ebp - 9]
mov al, cl
shr al, 7
or dl, al
mov byte [ebp - 8], dl
mov byte [ebp - 0x23], dl
mov dl, byte [ebp - 0xa]
mov al, dl
shr al, 7
add cl, cl
or cl, al
mov ch, byte [ebp - 0xe]
mov byte [ebp - 9], cl
add dl, dl
mov byte [ebp - 0x22], cl
and bl, 7
mov cl, byte [ebp - 0xb]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [ebp - 0xa], dl
mov byte [ebp - 0x21], dl
mov dl, byte [ebp - 0xc]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [ebp - 0xb], cl
mov byte [ebp - 0x20], cl
mov cl, byte [ebp - 0xd]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov al, ch
shr al, 7
or cl, al
mov byte [ebp - 0xc], dl
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0x1f], dl
mov byte [ebp - 0xd], cl
mov byte [ebp - 0x1e], cl
mov edx, eax
test edx, edx
jns 0x455ed6
add edx, 7
sar edx, 3
mov eax, dword [ebp + 0x10]
mov cl, 7
sub cl, bl
add ch, ch
movzx eax, byte [edx + eax]
shr al, cl
mov cl, bl
mov ebx, dword [ebp - 0x14]
and al, 1
or ch, al
inc ebx
movzx eax, byte [ebp - 0x3c]
and al, 0x80
mov byte [ebp - 0xe], ch
shr al, cl
xor byte [edx + esi], al
mov byte [ebp - 0x1d], ch
mov dword [ebp - 0x14], ebx
cmp ebx, 0x80
jl 0x455da0
mov esi, dword [ebp - 0x1c]
dec esi
mov dword [ebp - 0x1c], esi
test esi, esi
jg 0x455d96
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 0x30]
push eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
call fcn.00456540
mov eax, dword [esi + 1]
lea ebx, [edi - 1]
xor eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 5]
xor eax, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esi + 9]
xor eax, dword [ebp - 0x34]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xd]
xor eax, dword [ebp - 0x30]
mov dword [ecx + 0xc], eax
test ebx, ebx
jle 0x45600c
mov eax, dword [ebp + 0x10]
lea esi, [ecx + 0x14]
lea edi, [eax - 0xc]
sub eax, ecx
add eax, 0xffffffec
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x3c]
add eax, esi
push ecx
push eax
call fcn.00456540
mov eax, dword [edi - 4]
lea edi, [edi + 0x10]
xor eax, dword [ebp - 0x3c]
dec ebx
mov dword [esi - 4], eax
add esp, 0xc
mov eax, dword [edi - 0x10]
xor eax, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [edi - 0xc]
xor eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [edi - 8]
xor eax, dword [ebp - 0x30]
mov dword [esi + 8], eax
add esi, 0x10
mov eax, dword [ebp + 8]
test ebx, ebx
jg 0x455f88
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, edi
test edi, edi
jle 0x45600c
mov edi, dword [ebp + 0x18]
lea eax, [ecx + 0x30]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
nop dword [eax]
push eax
push edi
push ebx
call fcn.00456540
mov eax, dword [ebp + 0x14]
dec esi
add esp, 0xc
add ebx, 0x10
add edi, 0x10
test esi, esi
jg 0x455ff0
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
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