Function at 0x45ff84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi], ebx
je 0x45ff9d
push 0xfffffffffffffffb
pop eax
jmp 0x460254
push esi
mov esi, dword [edi + 4]
cmp esi, 2
je 0x45ffb3
cmp dword [edi + 8], ebx
jne 0x45ffb3
push 0xfffffffffffffffa
pop eax
jmp 0x460253
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x460251
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jle 0x460251
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov edx, esi
sub edx, ebx
mov dword [ebp - 4], eax
je 0x460224
dec edx
je 0x460183
dec edx
je 0x45fff1
or eax, 0xffffffff
jmp 0x460253
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
cmp eax, ebx
jle 0x46024c
xor esi, esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push eax
push edi
call fcn.00458565
mov al, byte [ebp - 0x17]
mov cl, byte [ebp - 0x18]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x17]
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x16]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x16]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x15]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x15]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0x14]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x13]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x12]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x11]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x10]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0xf]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xf]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xe]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xd]
shr al, 7
add cl, cl
add esp, 0xc
or al, cl
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
mov cl, byte [ebp - 0xd]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xb]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xb]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xa]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 9]
shr al, 7
add cl, cl
or al, cl
mov byte [ebp - 0xa], al
mov eax, esi
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp + 0xc]
mov ebx, esi
and ebx, 7
sar eax, 3
mov dl, byte [eax + edx]
add eax, dword [ebp + 0x14]
mov cl, 7
sub cl, bl
shr dl, cl
mov cl, byte [ebp - 9]
add cl, cl
and dl, 1
or dl, cl
mov byte [ebp - 9], dl
mov dl, byte [ebp - 0x28]
and dl, 0x80
mov cl, bl
shr dl, cl
xor byte [eax], dl
inc esi
cmp esi, 0x80
jl 0x460016
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x460014
jmp 0x460249
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp + 8], eax
cmp eax, ebx
jle 0x46024c
mov eax, dword [ebp + 0x14]
lea ebx, [ecx + 8]
sub ecx, eax
add ecx, 0xfffffff8
lea esi, [eax + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x28]
push ecx
add eax, esi
push eax
push edi
call fcn.00458927
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [esi - 8], eax
mov eax, dword [ebx - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esi - 4], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [esi + 4], eax
add ebx, 0x10
add esi, 0x10
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x4601b7
jmp 0x460249
mov esi, eax
cmp eax, ebx
jle 0x46024c
jmp 0x46022f
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push ecx
push edi
call fcn.00458927
add dword [ebp + 0xc], 0x10
add dword [ebp + 0x14], 0x10
add esp, 0xc
dec esi
test esi, esi
jg 0x46022c
mov eax, dword [ebp - 4]
shl eax, 7
jmp 0x460253
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret